# An MCP server for your image templates

Source: https://snapsbrew.com/product/mcp-server

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 Desktop and the Claude connector](https://snapsbrew.com/docs/mcp/connect-claude.md)
- [Cursor, Codex CLI and other clients](https://snapsbrew.com/docs/mcp/connect-cursor-and-others.md)
- [Guide: generate images from an AI agent](https://snapsbrew.com/guides/generate-images-with-ai-agent-mcp.md)

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

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

```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](https://snapsbrew.com/docs/mcp/tools-reference.md).

### Read

- `whoami` Who am I
- `list-templates` List templates
- `get-template-details` Get template details
- `get-editor-document` Get a template editor document
- `describe-editor-document` Describe the v2 editor document
- `list-variant-properties` List variant properties
- `list-template-sizes` List canvas size presets

### Preview

- `preview-template` Preview a template
- `preview-snap` Preview a snap
- `preview-design` Preview an inline design

### Render

- `create-snap` Create a snap
- `create-snap-from-design` Create a snap from an inline design
- `create-snaps-batch` Create many snaps in one batch
- `get-snaps-batch` Read a snap batch
- `cancel-snaps-batch` Cancel a running snap batch
- `export-creative-package` Export a creative package
- `get-creative-package` Read a creative package

### Design

- `describe-layers` Describe layer structure
- `design-guide` Template design guide
- `platform-guide` Platform image rules
- `image-purpose-guide` Image purpose guide
- `create-template` Create a template
- `edit-template` Edit a template
- `publish-template` Publish a template
- `put-editor-document` Replace a template editor document
- `apply-editor-operations` Apply validated editor layer operations
- `preflight-editor-document` Inspect 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](https://snapsbrew.com/when-not-to-use-snapsbrew.md)

## Run it on your own server

Docker Compose starts the app, the queue, MySQL, Redis and the renderer together.

[Self-host it](https://snapsbrew.com/docs/getting-started/installation-docker.md) [View on GitHub](https://github.com/amedina068/snapsbrew)

```bash
git clone https://github.com/amedina068/snapsbrew.git
cd snapsbrew
cp .env.docker.example .env   # then fill in .env
docker compose up -d --build
```
