Recraft MCP Server
MCP Server implementation for recraft.ai using the Model Context Protocol SDK
Overview
Recraft MCP Server is an implementation of the Model Context Protocol (MCP) designed to integrate with Recraft.ai services, enabling AI assistants to generate images through Recraft's API.
To use the Recraft MCP Server, clone the repository, install the dependencies, configure your Recraft API key, and start the server using the provided commands.
- Implements MCP tools for image generation services. - Provides type-safe schemas using Zod for validation. - Supports various image generation options (styles, sizes, etc.). - Easy integration with LLM assistants that support MCP.
- Generating images from text prompts.
- Transforming existing images based on text prompts.
- Editing parts of images using masks.
- Upscaling images with enhanced detail and clarity.
Add to your AI client
Use these steps to connect Recraft MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"recraft-mcp-server-bartwaardenburg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-recraft-mcp-server-bartwaardenburg"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"recraft-mcp-server-bartwaardenburg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-recraft-mcp-server-bartwaardenburg"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"recraft-mcp-server-bartwaardenburg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-recraft-mcp-server-bartwaardenburg"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"recraft-mcp-server-bartwaardenburg": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-recraft-mcp-server-bartwaardenburg"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"recraft-mcp-server-bartwaardenburg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-recraft-mcp-server-bartwaardenburg"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"recraft-mcp-server-bartwaardenburg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-recraft-mcp-server-bartwaardenburg"
]
}
}
}FAQ
What is the prerequisite to run the server?
You need Node.js (v18 or later) and a Recraft API key.
How do I start the server?
You can start the server using the command `npm start` or the provided shell script.
What tools does the server implement?
The server implements various tools for image generation, transformation, and editing.