An MCP server for your image templates
Each Snapsbrew instance has an MCP server. Claude, Cursor, Codex and other agents list your templates, show you a watermarked preview, and render the final image after you approve it. The agent fills your design. It does not invent one.
- Endpoint
https://<your-instance>/mcp- Transport
- Streamable HTTP
- Credential
- An API token, or OAuth 2.0 for the Claude connector
- Rate limit
- 30 requests a minute for each user
Connect in one command
Create an API token in Account > Developers. The REST API and the MCP server accept the same token. Then add the server to your client.
claude mcp add --transport http snapsbrew https://snapsbrew.example/mcp \
--header "Authorization: Bearer <your-token>"{
"mcpServers": {
"snapsbrew": {
"url": "https://snapsbrew.example/mcp",
"headers": { "Authorization": "Bearer <your-token>" }
}
}
}{
"mcpServers": {
"snapsbrew": {
"command": "npx",
"args": ["mcp-remote", "https://snapsbrew.example/mcp",
"--header", "Authorization: Bearer <your-token>"]
}
}
}Preview first, render after you approve
- 1. Find the template.
list-templates, thenget-template-detailsfor the layer keys. - 2. Preview.
preview-snapreturns watermarked HTML and stores no snap. - 3. Render.
create-snapwith the same variants returns the final image URL.
The server sends this workflow to the agent as its instructions. Each instance also serves it as an Agent Skill file at /skill.md. When a tool fails, the error names the next call to make.
27 tools
The tools that change data carry the MCP destructive hint, so a client that asks before such calls asks you. The arguments of each tool are in the tools reference.
Read
whoamiWho am Ilist-templatesList templatesget-template-detailsGet template detailsget-editor-documentGet a template editor documentdescribe-editor-documentDescribe the v2 editor documentlist-variant-propertiesList variant propertieslist-template-sizesList canvas size presets
Preview
preview-templatePreview a templatepreview-snapPreview a snappreview-designPreview an inline design
Render
create-snapCreate a snapcreate-snap-from-designCreate a snap from an inline designcreate-snaps-batchCreate many snaps in one batchget-snaps-batchRead a snap batchcancel-snaps-batchCancel a running snap batchexport-creative-packageExport a creative packageget-creative-packageRead a creative package
Design
describe-layersDescribe layer structuredesign-guideTemplate design guideplatform-guidePlatform image rulesimage-purpose-guideImage purpose guidecreate-templateCreate a templateedit-templateEdit a templatepublish-templatePublish a templateput-editor-documentReplace a template editor documentapply-editor-operationsApply validated editor layer operationspreflight-editor-documentInspect a draft editor document before publishing
What it does not do
- It does not generate pictures with an AI image model. It renders templates with headless Chrome. Put the output of an image model into an image layer if you need new artwork.
- It runs on your instance only. There is no hosted MCP server to sign up for.
- The Claude connector needs OAuth, so the instance must be on the public internet with a trusted certificate.
Run it on your own server
Docker Compose starts the app, the queue, MySQL, Redis and the renderer together.
Terminal
git clone https://github.com/amedina068/snapsbrew.git
cd snapsbrew
cp .env.docker.example .env # then fill in .env
docker compose up -d --build