Skip to content

Features

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 Code

claude mcp add --transport http snapsbrew https://snapsbrew.example/mcp \
  --header "Authorization: Bearer <your-token>"

Cursor: ~/.cursor/mcp.json

{
  "mcpServers": {
    "snapsbrew": {
      "url": "https://snapsbrew.example/mcp",
      "headers": { "Authorization": "Bearer <your-token>" }
    }
  }
}

Claude Desktop: claude_desktop_config.json

{
  "mcpServers": {
    "snapsbrew": {
      "command": "npx",
      "args": ["mcp-remote", "https://snapsbrew.example/mcp",
               "--header", "Authorization: Bearer <your-token>"]
    }
  }
}

Preview first, render after you approve

  1. 1. Find the template. list-templates, then get-template-details for the layer keys.
  2. 2. Preview. preview-snap returns watermarked HTML and stores no snap.
  3. 3. Render. create-snap with 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 I
  • list-templatesList templates
  • get-template-detailsGet template details
  • get-editor-documentGet a template editor document
  • describe-editor-documentDescribe the v2 editor document
  • list-variant-propertiesList variant properties
  • list-template-sizesList canvas size presets

Preview

  • preview-templatePreview a template
  • preview-snapPreview a snap
  • preview-designPreview an inline design

Render

  • create-snapCreate a snap
  • create-snap-from-designCreate a snap from an inline design
  • create-snaps-batchCreate many snaps in one batch
  • get-snaps-batchRead a snap batch
  • cancel-snaps-batchCancel a running snap batch
  • export-creative-packageExport a creative package
  • get-creative-packageRead a creative package

Design

  • describe-layersDescribe layer structure
  • design-guideTemplate design guide
  • platform-guidePlatform image rules
  • image-purpose-guideImage purpose guide
  • create-templateCreate a template
  • edit-templateEdit a template
  • publish-templatePublish a template
  • put-editor-documentReplace a template editor document
  • apply-editor-operationsApply validated editor layer operations
  • preflight-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.

When not to use Snapsbrew

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