Recraft
Community MCP server giving AI clients Recraft image generation, editing and vector tools
Recraft is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- API, CLI, VS Code
- Runs
- Locally
- What it can do
- Can delete data (3 tools)
- Access
- Needs a secret key or token
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add recraft-mcp --env RECRAFT_API_TOKEN='<RECRAFT_API_TOKEN>' -- npx -y recraft-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"recraft-mcp": {
"command": "npx",
"args": [
"-y",
"recraft-mcp"
],
"env": {
"RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"recraft-mcp": {
"command": "npx",
"args": [
"-y",
"recraft-mcp"
],
"env": {
"RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"recraft-mcp": {
"command": "npx",
"args": [
"-y",
"recraft-mcp"
],
"env": {
"RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"recraft-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"recraft-mcp"
],
"env": {
"RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add recraft-mcp --env RECRAFT_API_TOKEN='<RECRAFT_API_TOKEN>' -- npx -y recraft-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.recraft-mcp]
command = "npx"
args = ["-y", "recraft-mcp"]
env = { RECRAFT_API_TOKEN = "<RECRAFT_API_TOKEN>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"recraft-mcp": {
"command": "npx",
"args": [
"-y",
"recraft-mcp"
],
"env": {
"RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }Or run: gemini mcp add -s user -e RECRAFT_API_TOKEN='<RECRAFT_API_TOKEN>' recraft-mcp npx -- -y recraft-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "recraft-mcp": { "command": "npx", "args": [ "-y", "recraft-mcp" ], "env": { "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
RECRAFT_API_TOKENRecraft API tokenRequiredRECRAFT_TOOLSETSComma-separated toolsets to enable: generation, processing, styles. Default: allRECRAFT_CACHE_TTLCache TTL in seconds. Use 0 to disable. Default: 120RECRAFT_MAX_RETRIESMaximum retry attempts on rate limit (429). Default: 3
About Recraft
This open-source bridge connects AI assistants such as Claude, Cursor and VS Code to the Recraft image API. Once configured with an API token, a client can call tools for text-to-image generation, image-to-image transformation, inpainting, background replacement, and vectorizing raster images into SVG.
The server exposes 16 tools grouped into generation, processing and styles toolsets, and each toolset can be switched on or off through environment variables. Response caching and automatic retries on rate limits are configurable as well, so heavier pipelines can be tuned without code changes.
It suits developers and designers who already work inside an AI-enabled editor and want image creation or asset cleanup without leaving it. Because it is an unofficial community project, it is not affiliated with Recraft, and using it requires a separate Recraft API account.
Tools this server provides (16)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 3 of 16 tools delete data and 1 changes data; 8 names don't say.
From the server's own tool labels and tool names; not verified by us.
- generate_image
- Generate images from a text prompt with style, size, and artistic controls
- image_to_image
- Transform an existing image based on a text prompt with adjustable strength
- inpaint_image
- Fill in masked regions of an image based on a text prompt
- replace_background
- Replace the background while preserving the foreground subject
- generate_background
- Generate a background for masked areas of an image
- remove_backgroundName suggests: deletes
- Remove the background, leaving transparency
- erase_regionName suggests: deletes
- Seamlessly erase a masked region from an image
- vectorize_image
- Convert raster images to scalable SVG vectors
- crisp_upscale
- Upscale with sharp detail preservation
- creative_upscale
- Upscale with creative enhancement and added detail
- create_styleName suggests: changes
- Create a custom style from 1-5 reference images
- get_styleName suggests: reads
- Get details of a custom style by ID
- list_stylesName suggests: reads
- List all custom styles
- list_basic_stylesName suggests: reads
- List available curated styles
- delete_styleName suggests: deletes
- Delete a custom style
- get_current_userName suggests: reads
- Get user info and remaining credits
What it does
- Text-to-image generation
- Creates images from prompts with selectable models, styles, sizes and seeds.
- Image editing tools
- Supports image-to-image changes, masked inpainting and background replacement.
- SVG vectorization
- Converts raster images into scalable vector graphics.
- Background removal and upscaling
- Removes backgrounds to transparency and upscales with crisp or creative modes.
- Custom style management
- Builds reusable styles from 1-5 reference images and lists or deletes them.
- Toolset filtering
- Limits which tool groups are exposed to the model to reduce clutter.
Good for
- Generate illustrations or icons from a prompt inside an AI coding assistant
- Remove backgrounds from product photos in an automated pipeline
- Convert raster artwork into SVG files for editing
- Apply a consistent house style across batches of generated images
- Upscale low-resolution assets for print or web use
Pricing
Open source
Server is MIT-licensed and free; image generation requires a Recraft API account and is billed by Recraft per API Unit.
Prices change. Check recraft.ai before you buy.
Recraft FAQ
What do I need to run Recraft?
Node.js 20 or later, or Docker, plus a Recraft API token set as RECRAFT_API_TOKEN.
Which AI clients are supported?
Setup instructions are provided for Claude Desktop, Claude Code, VS Code, Cursor, Windsurf and Docker-based MCP clients.
Is it an official Recraft product?
No. It is an unofficial, community-maintained project and is not affiliated with or endorsed by Recraft.
Where are images processed?
Images are sent to Recraft's servers for processing, and no image data is cached on disk.
Is Recraft free?
Yes. Recraft is open source, so you can use and self-host it for free.
How do I add Recraft to Claude Code?
Run this command in your terminal: claude mcp add recraft-mcp --env RECRAFT_API_TOKEN='<RECRAFT_API_TOKEN>' -- npx -y recraft-mcp
What are the best alternatives to Recraft?
The closest alternatives to Recraft are Recraft MCP Server, AI Image Editor MCP, SVG AI, Design Assets (apimodels) and Pruna.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.