# Recraft

> Recraft is an open-source MCP server for design and media. Community MCP server giving AI clients Recraft image generation, editing and vector tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, VS Code, macOS, Windows, Linux, Web
- **Website:** https://www.recraft.ai
- **Repository:** https://github.com/bartwaardenburg/recraft-mcp-server
- **MCP Registry name:** io.github.BartWaardenburg/recraft-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-11-28

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add recraft-mcp --env RECRAFT_API_TOKEN='<RECRAFT_API_TOKEN>' -- npx -y recraft-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "recraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "recraft-mcp"
      ],
      "env": {
        "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add recraft-mcp --env RECRAFT_API_TOKEN='<RECRAFT_API_TOKEN>' -- npx -y recraft-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.recraft-mcp]
command = "npx"
args = ["-y", "recraft-mcp"]
env = { RECRAFT_API_TOKEN = "<RECRAFT_API_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "recraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "recraft-mcp"
      ],
      "env": {
        "RECRAFT_API_TOKEN": "<RECRAFT_API_TOKEN>"
      }
    }
  }
}
```

## Tools

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_background` (name suggests: deletes): Remove the background, leaving transparency
- `erase_region` (name 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_style` (name suggests: changes): Create a custom style from 1-5 reference images
- `get_style` (name suggests: reads): Get details of a custom style by ID
- `list_styles` (name suggests: reads): List all custom styles
- `list_basic_styles` (name suggests: reads): List available curated styles
- `delete_style` (name suggests: deletes): Delete a custom style
- `get_current_user` (name suggests: reads): Get user info and remaining credits

## 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.

## Alternatives

- [Recraft MCP Server](https://ai-powered.com/mcp/recraft-mcp-server): Recraft MCP Server is an open-source MCP server for design and media.
- [AI Image Editor MCP](https://ai-powered.com/mcp/ai-image-editor-mcp): AI Image Editor MCP is a freemium MCP server for design and media.
- [SVG AI](https://ai-powered.com/mcp/svg-ai): SVG AI is a paid MCP server for design and media.
- [Design Assets (apimodels)](https://ai-powered.com/mcp/design-assets-apimodels): Design Assets (apimodels) is an open-source MCP server for design and media.
- [Pruna](https://ai-powered.com/mcp/pruna): Pruna is an open-source MCP server for design and media.
- [Mediamcp](https://ai-powered.com/mcp/mediamcp-2): Mediamcp is an open-source MCP server for design and media.
- [ArtCraft · VectorCraft](https://ai-powered.com/mcp/artcraft-vectorcraft): ArtCraft · VectorCraft is an open-source MCP server for design and media.
- [Photoshop MCP](https://ai-powered.com/mcp/photoshop-mcp): Photoshop MCP is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/recraft
