Recraft
v0.2.1AI image generation, transformation, and style management via the Recraft API
Values you need
| Variable | What it is | |
|---|---|---|
RECRAFT_API_TOKEN | required secret | Recraft API token |
RECRAFT_TOOLSETS | optional | Comma-separated toolsets to enable: generation, processing, styles. Default: all |
RECRAFT_CACHE_TTL | optional | Cache TTL in seconds. Use 0 to disable. Default: 120 |
RECRAFT_MAX_RETRIES | optional | 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.1Add 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
- Ask the user for: RECRAFT_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: generate_image, image_to_image, inpaint_image, replace_background, generate_background, remove_background, erase_region, vectorize_image, ….
- 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