The Recraft MCP Server integrates MCP clients with Recraft's powerful image operations, allowing you to generate and manipulate both raster and vector images. By connecting this server to your MCP client, you can access features like image generation, editing, custom styles, vectorization, background removal, and upscaling.
Before installing the Recraft MCP Server, you need:
If you're using Claude Desktop, this is the simplest setup method:
If you encounter installation issues, verify you have the latest version of Claude Desktop.
You can also find this MCP server on Smithery. Note that with Smithery installation, all generation results will be stored remotely. For local storage, use Desktop Extensions or manual setup instead.
If you prefer a manual setup:
claude_desktop_config.json
file to add the following:{
"mcpServers": {
"recraft": {
"command": "npx",
"args": [
"-y",
"@recraft-ai/mcp-recraft-server@latest"
],
"env": {
"RECRAFT_API_KEY": "<YOUR_RECRAFT_API_KEY>",
"IMAGE_STORAGE_DIRECTORY": "<YOUR_IMAGE_STORAGE_DIRECTORY>",
"RECRAFT_REMOTE_RESULTS_STORAGE": "<YOUR_REMOTE_RESULTS_STORAGE_INDICATOR>"
}
}
}
}
For installation from source:
git clone https://github.com/recraft-ai/mcp-recraft-server.git
npm install
npm run build
claude_desktop_config.json
file:{
"mcpServers": {
"recraft": {
"command": "node",
"args": ["<ABSOLUTE_PATH_TO_CLONED_DIRECTORY>/dist/index.js"],
"env": {
"RECRAFT_API_KEY": "<YOUR_RECRAFT_API_KEY>",
"IMAGE_STORAGE_DIRECTORY": "<YOUR_IMAGE_STORAGE_DIRECTORY>",
"RECRAFT_REMOTE_RESULTS_STORAGE": "<YOUR_REMOTE_RESULTS_STORAGE_INDICATOR>"
}
}
}
}
For manual installation, you can use these parameters:
RECRAFT_API_KEY
: Required - Your Recraft API keyIMAGE_STORAGE_DIRECTORY
: Optional - Directory for storing generated images (default: $HOME_DIR/.mcp-recraft-server
)RECRAFT_REMOTE_RESULTS_STORAGE
: Optional - Set to "1"
to store images remotely and return URLsThe Recraft MCP Server provides several tools for image generation and manipulation:
For detailed explanations of these tools and their parameters, refer to the Recraft API documentation.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "recraft" '{"command":"npx","args":["-y","@recraft-ai/mcp-recraft-server@latest"],"env":{"RECRAFT_API_KEY":"<YOUR_RECRAFT_API_KEY>","IMAGE_STORAGE_DIRECTORY":"<YOUR_IMAGE_STORAGE_DIRECTORY>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"recraft": {
"command": "npx",
"args": [
"-y",
"@recraft-ai/mcp-recraft-server@latest"
],
"env": {
"RECRAFT_API_KEY": "<YOUR_RECRAFT_API_KEY>",
"IMAGE_STORAGE_DIRECTORY": "<YOUR_IMAGE_STORAGE_DIRECTORY>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"recraft": {
"command": "npx",
"args": [
"-y",
"@recraft-ai/mcp-recraft-server@latest"
],
"env": {
"RECRAFT_API_KEY": "<YOUR_RECRAFT_API_KEY>",
"IMAGE_STORAGE_DIRECTORY": "<YOUR_IMAGE_STORAGE_DIRECTORY>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect