GitHub - recraft-ai/mcp-recraft-server: MCP (modelcontextprotocol) server implementation for Recraft AI API (original) (raw)

This is an MCP (Model Context Protocol) Server integrating MCP Clients with Recraft AI's raster and vector image operations:

By connecting this MCP Server to your MCP Client you will be able to generate high-quality raster and vector images using Recraft, combining different tools.

Tools

In this MCP you can use the following tools:

Tool Name Description Parameters Price
generate_image Generates raster/vector images from prompt - prompt - style - size - model - number of images 0.04/0.04/0.04/0.08 per raster/vector image
image_to_image Generates raster/vector images from image and prompt - image - prompt - similarity strength - style - size - model - number of images 0.04/0.04/0.04/0.08 per raster/vector image
create_style Creates a style from the list of images - list of images - basic style $0.04
vectorize_image Vectorizes raster image - image $0.01
remove_background Removes background in image - image $0.01
replace_background Generates new background in image from prompt - image - prompt for background - style - size - model - number of images 0.04/0.04/0.04/0.08 per raster/vector image
crisp_upscale Crisp upscale of image - image $0.004
creative_upscale Creative upscale of image - image $0.25
get_user Get information about the user and left balance

You can find the detailed explanation of tools, their parameters, and prices in Recraft AI API docs.

Setup

Prerequisites

Manual setup

Modify your 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": "", "IMAGE_STORAGE_DIRECTORY": "" } } } }

Manual setup (from source)

Clone this repository:

git clone https://github.com/recraft-ai/mcp-recraft-server.git

In the directory with cloned repository run:

npm install npm run build

Modify your claude_desktop_config.json file to add the following:

{ "mcpServers": { "recraft": { "command": "node", "args": ["/dist/index.js"], "env": { "RECRAFT_API_KEY": "", "IMAGE_STORAGE_DIRECTORY": "" } } } }

You can specify these parameters: