recraft-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@recraft-mcp-server generate an image of a sunset over mountains"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Note: This is an unofficial, community-maintained project and is not affiliated with or endorsed by Recraft.
16 tools for image generation, processing, and style management — all accessible through the Model Context Protocol.
Generate — Text-to-image, image-to-image, inpainting, background replacement & generation
Process — Background removal, region erasing, vectorization (SVG), crisp & creative upscaling
Styles — Create custom styles from reference images, list/get/delete styles
Account — Check remaining credits and user info (included in
stylestoolset)Configurable — Filter toolsets, adjust cache TTL, control retries
Prerequisites
Node.js 20+ (or Docker)
Related MCP server: Image MCP Server
Installation
Claude Desktop
Add to your config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"recraft": {
"command": "npx",
"args": ["-y", "recraft-mcp"],
"env": {
"RECRAFT_API_TOKEN": "your-api-token"
}
}
}
}VS Code
Add to .vscode/mcp.json in your workspace (or use the one-click install buttons above):
{
"servers": {
"recraft": {
"command": "npx",
"args": ["-y", "recraft-mcp"],
"env": {
"RECRAFT_API_TOKEN": "your-api-token"
}
}
}
}Claude Code
claude mcp add recraft-mcp -e RECRAFT_API_TOKEN=your-api-token -- npx -y recraft-mcpCursor
Add to Cursor's MCP settings (~/.cursor/mcp.json):
{
"mcpServers": {
"recraft": {
"command": "npx",
"args": ["-y", "recraft-mcp"],
"env": {
"RECRAFT_API_TOKEN": "your-api-token"
}
}
}
}Windsurf
Add to Windsurf's MCP config (~/.codeium/windsurf/mcp_config.json):
{
"mcpServers": {
"recraft": {
"command": "npx",
"args": ["-y", "recraft-mcp"],
"env": {
"RECRAFT_API_TOKEN": "your-api-token"
}
}
}
}Docker
docker run --rm -i -e RECRAFT_API_TOKEN="your-api-token" ghcr.io/bartwaardenburg/recraft-mcp-server:latestUse Docker in any MCP client by replacing the command:
{
"mcpServers": {
"recraft": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "RECRAFT_API_TOKEN=your-api-token",
"ghcr.io/bartwaardenburg/recraft-mcp-server:latest"
]
}
}
}Smithery
npx -y @smithery/cli install recraft-mcp --client claudeTools
Generation
Tool | Description |
| Generate images from a text prompt with style, size, and artistic controls |
| Transform an existing image based on a text prompt with adjustable strength |
| Fill in masked regions of an image based on a text prompt |
| Replace the background while preserving the foreground subject |
| Generate a background for masked areas of an image |
Processing
Tool | Description |
| Remove the background, leaving transparency |
| Seamlessly erase a masked region from an image |
| Convert raster images to scalable SVG vectors |
| Upscale with sharp detail preservation |
| Upscale with creative enhancement and added detail |
Styles & Account
Tool | Description |
| Create a custom style from 1-5 reference images |
| Get details of a custom style by ID |
| List all custom styles |
| List available curated styles |
| Delete a custom style |
| Get user info and remaining credits |
Tool Annotations
All tools include MCP tool annotations to help clients understand their behavior:
Tool | Read-only | Open-world |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | |
| Yes | Yes |
| Yes | Yes |
| Yes | Yes |
| Yes | |
| Yes | Yes |
generate_image
Parameter | Type | Required | Description |
| string | Yes | Text description (max 1000 chars V2/V3, 10000 V4) |
| enum |
| |
| enum |
| |
| string | Substyle refinement (e.g. | |
| uuid | Custom style ID (mutually exclusive with style/substyle) | |
| enum | Image dimensions, e.g. | |
| integer | Number of images to generate (1-6, default 1) | |
| string | What to avoid in the image | |
| integer | 0 (simple) to 5 (dynamic) | |
| boolean | Prevent text in the image | |
| enum |
| |
| integer | Seed for reproducible results |
image_to_image
Parameter | Type | Required | Description |
| string | Yes | Source image (URL or base64). Max 5MB, <16MP, max 4096px per side |
| string | Yes | Description of desired changes |
| number | Yes | Change magnitude: 0.0 (minimal) to 1.0 (maximum) |
| enum | Model to use | |
| enum | Style category (not supported for V4) | |
| string | Substyle refinement | |
| uuid | Custom style ID | |
| integer | Number of outputs (1-6) | |
| string | What to avoid | |
| enum |
| |
| integer | Seed for reproducibility |
inpaint_image
Parameter | Type | Required | Description |
| string | Yes | Source image (URL or base64) |
| string | Yes | Grayscale PNG mask (white = inpaint, black = preserve) |
| string | Yes | What to generate in the masked area |
| Same as generate_image |
replace_background
Parameter | Type | Required | Description |
| string | Yes | Source image (URL or base64) |
| string | Yes | Description of the new background |
| Same as generate_image |
generate_background
Parameter | Type | Required | Description |
| string | Yes | Source image (URL or base64) |
| string | Yes | Mask defining the background area |
| string | Yes | Description of the background to generate |
| Same as generate_image |
remove_background
Parameter | Type | Required | Description |
| string | Yes | Image (URL or base64) |
| enum |
|
erase_region
Parameter | Type | Required | Description |
| string | Yes | Source image (URL or base64) |
| string | Yes | Grayscale mask (white = erase, black = preserve) |
| enum |
|
vectorize_image
Parameter | Type | Required | Description |
| string | Yes | Image to vectorize (URL or base64) |
crisp_upscale
Parameter | Type | Required | Description |
| string | Yes | Image to upscale (URL or base64). Max 5MB, <4MP |
| enum |
|
creative_upscale
Parameter | Type | Required | Description |
| string | Yes | Image to upscale (URL or base64). Max 5MB, <16MP |
| enum |
|
create_style
Parameter | Type | Required | Description |
| string[] | Yes | 1-5 reference images (URLs or base64) |
| enum | Yes | Base style category |
get_style
Parameter | Type | Required | Description |
| uuid | Yes | Style ID to retrieve |
delete_style
Parameter | Type | Required | Description |
| uuid | Yes | Style ID to delete |
list_styles, list_basic_styles, get_current_user
No parameters required.
Configuration
Environment Variable | Description | Default |
| Required. Your Recraft API token | — |
| Comma-separated toolsets to enable: | All |
| Cache TTL in seconds ( |
|
| Max retry attempts on rate limit (429) |
|
Toolset Filtering
Reduce the number of tools exposed to the LLM by enabling only what you need:
# Only image generation
RECRAFT_TOOLSETS=generation
# Generation + processing, no style management
RECRAFT_TOOLSETS=generation,processingSupported Models
Model | Description |
| Recraft V3 (default) |
| Recraft V4 (latest raster) |
| Recraft V4 Vector (SVG output) |
| Recraft V2 |
| Recraft 20B (legacy) |
| RefM1 |
Note: V4 models do not support the
styleparameter — use the prompt to control style.
Supported Styles
Style | Substyles |
|
|
|
|
|
|
|
|
| — |
Image Input
Tools that accept images (image_to_image, inpaint_image, remove_background, etc.) support:
URL — Any publicly accessible HTTP(S) URL
Base64 — Raw base64-encoded image data
Security
API token — Your
RECRAFT_API_TOKENis sent only to the Recraft API (https://external.api.recraft.ai). It is never logged or stored beyond the process lifetime.Image data — Images are sent to Recraft's servers for processing. No image data is cached on disk.
Network access — This server makes outbound HTTPS requests to
external.api.recraft.aiandregistry.npmjs.org(for update checks).
See SECURITY.md for reporting vulnerabilities.
Development
pnpm install # Install dependencies
pnpm dev # Run with tsx (hot reload)
pnpm build # Compile TypeScript
pnpm test # Run tests
pnpm typecheck # Type checkSee CONTRIBUTING.md for guidelines.
License
Available Tools
16 toolscreate_styleCreate Custom StyleA
Create a custom style from 1-5 reference images. The style can be used in subsequent image generation by passing the returned style_id. Reference images define the visual style that will be applied.
Inputs: style (required), images (required).
creative_upscaleCreative UpscaleA
Upscale an image with creative enhancement — adds detail and improves quality beyond simple scaling. Best for artistic images where added creative detail is desirable. Input image must be max 5MB and <16MP.
Inputs: image (required), image_format.
crisp_upscaleCrisp UpscaleA
Upscale an image with crisp, sharp detail preservation. Best for images where sharpness is important. Input image must be max 5MB and <4MP.
Inputs: image (required), image_format.
delete_styleDelete Custom StyleA
Delete a custom style by its ID. This action is irreversible.
Inputs: style_id (required).
erase_regionErase RegionA
Erase a region from an image defined by a mask. The erased area is filled seamlessly. Provide the image and a grayscale mask (white = erase, black = preserve).
Inputs: mask (required), image (required), image_format.
generate_backgroundGenerate BackgroundB
Generate a background for an image using a mask to define the background area. The mask indicates which areas should be filled with the generated background.
Inputs: mask (required), image (required), prompt (required), n, +7 more.
generate_imageGenerate ImageA
Generate images from a text prompt using Recraft AI. Supports multiple styles (realistic, illustration, vector, icon, logo), various sizes, and fine-tuning controls like color palette and artistic level. V4 models do not support style parameters — use the prompt to control style instead.
Inputs: prompt (required), n, size, model, +8 more.
get_current_userGet Current UserARead-only
Retrieve information about the authenticated user, including remaining credits.
Inputs: no named parameters.
get_styleGet Style DetailsBRead-only
Retrieve details of a custom style by its ID.
Inputs: style_id (required).
image_to_imageImage to ImageB
Transform an existing image based on a text prompt. The strength parameter controls how much the image changes (0.0 = minimal change, 1.0 = maximum change). Provide the image as a URL or base64-encoded string.
Inputs: image (required), prompt (required), strength (required), n, +7 more.
inpaint_imageInpaint ImageA
Inpaint (fill in) a masked region of an image based on a text prompt. Requires the original image and a grayscale mask (white = inpaint, black = preserve).
Inputs: mask (required), image (required), prompt (required), n, +7 more.
list_basic_stylesList Basic StylesARead-only
List all available curated/basic styles provided by Recraft. These can be used as the style parameter in generation tools.
Inputs: no named parameters.
list_stylesList Custom StylesARead-only
List all custom styles created by the authenticated user.
Inputs: no named parameters.
remove_backgroundRemove BackgroundA
Remove the background from an image, leaving a transparent background. Provide the image as a URL or base64-encoded string.
Inputs: image (required), image_format.
replace_backgroundReplace BackgroundA
Replace the background of an image while preserving the foreground subject. Provide a text prompt describing the new background.
Inputs: image (required), prompt (required), n, model, +6 more.
vectorize_imageVectorize ImageA
Convert a raster image (PNG/JPG/WEBP) to a scalable vector SVG format. Useful for converting logos, icons, and illustrations to resolution-independent vectors.
Inputs: image (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools have distinct purposes with clear descriptions. However, pairs like erase_region and inpaint_image (both fill regions) or generate_background and replace_background (both background-related) could cause confusion if descriptions are not carefully read.
Names follow a mostly consistent verb_noun pattern in snake_case. The lone exception is 'image_to_image', which is a noun phrase rather than a verb action. The modifiers in 'creative_upscale' and 'crisp_upscale' are acceptable but break the simple verb_noun scheme.
Sixteen tools is slightly above the ideal range for a focused server, but the number is justified by the breadth of image generation and editing operations. Each tool serves a distinct operation, and no tool appears redundant.
The tool set covers core image generation, style management, and common editing tasks. Missing operations include updating a style or batch processing, but these are not essential for the primary use case. The surface is generally well-rounded.
Maintenance
Related MCP Connectors
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
MCP server for Flux AI image generation
Generate AI videos, images, music, and speech from any MCP client
MCP server for Qwen Image 3 AI image generation
Related MCP Servers
AlicenseAqualityFmaintenanceAn MCP server that integrates with Recraft AI to enable generation and manipulation of high-quality raster and vector images through tools like image generation, editing, vectorization, background removal, and upscaling.9288 npm60MIT- AlicenseCqualityNot gradedmaintenanceAn MCP server that provides AI image generation capabilities using OpenAI and Replicate APIs with support for customizable prompts and dimensions. It features specialized tools for generating square, landscape, and portrait images through simple natural language commands.526 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. It allows users to create new images from text, modify existing files, and perform iterative edits through natural language prompts.6MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server for AI-powered image processing (generate, edit, vary, analyze) supporting OpenAI, Gemini, Ideogram, and custom relay endpoints.-