Recraft

v0.2.1
io.github.BartWaardenburg/recraft-mcp Checked 2 days ago Published 5 days ago

AI image generation, transformation, and style management via the Recraft API

Values you need

VariableWhat it is
RECRAFT_API_TOKENrequired secret Recraft API token
RECRAFT_TOOLSETSoptional Comma-separated toolsets to enable: generation, processing, styles. Default: all
RECRAFT_CACHE_TTLoptional Cache TTL in seconds. Use 0 to disable. Default: 120
RECRAFT_MAX_RETRIESoptional Maximum retry attempts on rate limit (429). Default: 3

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add recraft-mcp -e 'RECRAFT_API_TOKEN=<RECRAFT_API_TOKEN>' -- npx -y recraft-mcp@0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "recraft-mcp": {
      "args": [
        "-y",
        "recraft-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "recraft-mcp": {
      "args": [
        "-y",
        "recraft-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "RECRAFT_API_TOKEN",
      "id": "recraft-api-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "recraft-mcp": {
      "args": [
        "-y",
        "recraft-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "RECRAFT_API_TOKEN": "${input:recraft-api-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.recraft-mcp]
command = "npx"
args = ["-y", "recraft-mcp@0.2.1"]
env = { "RECRAFT_API_TOKEN" = "<RECRAFT_API_TOKEN>" }

For AI agents

  1. Ask the user for: RECRAFT_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: generate_image, image_to_image, inpaint_image, replace_background, generate_background, remove_background, erase_region, vectorize_image, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json