mcpField
M
Mcp Recraft Server

Mcp Recraft Server

Local
github.com/recraft-aiMedia & Design60Updated 15w ago

About Mcp Recraft Server

Recraft MCP Server is an MCP server for the Recraft API that lets MCP clients generate, edit and process raster and vector images. The project is deprecated, and the maintainers recommend switching to Recraft's remote MCP server.

Key features

  1. 01Raster and vector image generation and editing
  2. 02Custom style creation and application
  3. 03Raster image vectorization
  4. 04Background removal and replacement
  5. 05Crisp and creative image upscaling
  6. 06User information and remaining balance lookup

Use cases

  1. 01Generating and editing vector icons or illustrations in Claude Desktop
  2. 02Removing or replacing backgrounds in product photos
  3. 03Upscaling low-resolution images for print or display

MCP support

The server exposes Recraft image tools to MCP clients, covering generation, editing, vectorization, background handling and upscaling.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"recraft-server": {
"command": "npx",
"args": [
"-y",
"@recraft-ai/mcp-recraft-server"
],
"env": {
"RECRAFT_API_KEY": "<RECRAFT_API_KEY>",
"IMAGE_STORAGE_DIRECTORY": "<IMAGE_STORAGE_DIRECTORY>",
"RECRAFT_REMOTE_RESULTS_STORAGE": "<RECRAFT_REMOTE_RESULTS_STORAGE>"
}
}
}
}
Run commandnpx -y @recraft-ai/mcp-recraft-server
Environment variables to set
RECRAFT_API_KEYSecret
IMAGE_STORAGE_DIRECTORY
RECRAFT_REMOTE_RESULTS_STORAGE

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@recraft-ai/mcp-recraft-server

Tools

9

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
promptstringYesText prompt of the image you want to generate. Its length should be from 1 to 1024 characters.
sizeenumNoImage dimensions. Default is 1024x1024.1024x1024 | 1365x1024 | 1024x1365 | 1536x1024 | 1024x1536 | 1820x1024 | 1024x1820 | 1024x2048 | 2048x1024 | 1434x1024 | 1024x1434 | 1024x1280 | 1280x1024 | 1024x1707 | 1707x1024
styleenumNoVisual style to apply. Default is realistic_image. Use this parameter only if you want to refine the image generation. Mutually exclusive with styleID, you can't specify both of them. realistic_image, digital_illustration, vector_illustration are available in both models, but icon is available only for recraftv2, and logo_raster is available only for recraftv3. If you will provide a style that is not available for the specified model, generation will fail. Styles use-cases: - realistic_image: for realistic images, photos, portraits, landscapes, etc. Raster is generated. - digital_illustration: for digital illustrations, concept art, fantasy art, etc. Raster is generated. - vector_illustration: for vector illustrations, logos, icons, etc. Vector is generated. - icon: for icons, small graphics (only in recraftv2). Vector is generated - logo_raster: for graphic design, raster logos, posters, emblems, and badges (only in recraftv3). Raster is generated.digital_illustration | icon | realistic_image | vector_illustration | logo_raster
substyleenumNoVisual substyle to apply. Can be specified only with style to refine more specifically. If this parameter is not specified, model will decide on the final style. Use this parameter only if you want to refine the image generation more. No need to specify if you don't have any specific requirements. Note that each combination of model and style has their own list of available substyles: - recraftv3 with style realistic_image: b_and_w, enterprise, evening_light, faded_nostalgia, forest_life, hard_flash, hdr, motion_blur, mystic_naturalism, natural_light, natural_tones, organic_calm, real_life_glow, retro_realism, retro_snapshot, studio_portrait, urban_drama, village_realism, warm_folk - recraftv2 with style realistic_image: b_and_w, enterprise, hard_flash, hdr, motion_blur, natural_light, studio_portrait - recraftv3 with style digital_illustration: 2d_art_poster, 2d_art_poster_2, antiquarian, bold_fantasy, child_book, cover, crosshatch, digital_engraving, engraving_color, expressionism, freehand_details, grain, grain_20, graphic_intensity, hand_drawn, hand_drawn_outline, handmade_3d, hard_comics, infantile_sketch, long_shadow, modern_folk, multicolor, neon_calm, noir, nostalgic_pastel, outline_details, pastel_gradient, pastel_sketch, pixel_art, plastic, pop_art, pop_renaissance, seamless, street_art, tablet_sketch, urban_glow, urban_sketching, young_adult_book, young_adult_book_2 - recraftv2 with style digital_illustration: 2d_art_poster, 2d_art_poster_2, 3d, 80s, engraving_color, glow, grain, hand_drawn, hand_drawn_outline, handmade_3d, infantile_sketch, kawaii, pixel_art, plastic, psychedelic, seamless, voxel, watercolor - recraftv3 with style vector_illustration: bold_stroke, chemistry, colored_stencil, cosmics, cutout, depressive, editorial, emotional_flat, engraving, line_art, line_circuit, linocut, marker_outline, mosaic, naivector, roundish_flat, seamless, segmented_colors, sharp_contrast, thin, vector_photo, vivid_shapes - recraftv2 with style vector_illustration: cartoon, doodle_line_art, engraving, flat_2, kawaii, line_art, line_circuit, linocut, seamless - recraftv2 with style icon: broken_line, colored_outline, colored_shapes, colored_shapes_gradient, doodle_fill, doodle_offset_fill, offset_fill, outline, outline_gradient, pictogram - recraftv3 with style logo_raster: emblem_graffiti, emblem_pop_art, emblem_punk, emblem_stamp, emblem_vintage If you will provide a substyle that is not available for the specified model and style, generation will fail.2d_art_poster | 3d | 80s | glow | grain | hand_drawn | infantile_sketch | kawaii | pixel_art | psychedelic | seamless | voxel | watercolor | broken_line | colored_outline | colored_shapes | colored_shapes_gradient | doodle_fill | doodle_offset_fill | offset_fill | outline | outline_gradient | cartoon | doodle_line_art | engraving | flat_2 | line_art | linocut | b_and_w | enterprise | hard_flash | hdr | motion_blur | natural_light | studio_portrait | line_circuit | 2d_art_poster_2 | engraving_color | hand_drawn_outline | handmade_3d | plastic | pictogram | antiquarian | bold_fantasy | child_book | cover | crosshatch | digital_engraving | expressionism | freehand_details | grain_20 | graphic_intensity | hard_comics | long_shadow | modern_folk | multicolor | neon_calm | noir | nostalgic_pastel | outline_details | pastel_gradient | pastel_sketch | pop_art | pop_renaissance | street_art | tablet_sketch | urban_glow | urban_sketching | young_adult_book | young_adult_book_2 | evening_light | faded_nostalgia | forest_life | mystic_naturalism | natural_tones | organic_calm | real_life_glow | retro_realism | retro_snapshot | urban_drama | village_realism | warm_folk | bold_stroke | chemistry | colored_stencil | cosmics | cutout | depressive | editorial | emotional_flat | marker_outline | mosaic | naivector | roundish_flat | segmented_colors | sharp_contrast | thin | vector_photo | vivid_shapes | emblem_graffiti | emblem_pop_art | emblem_punk | emblem_stamp | emblem_vintage
styleIDstringNoID of the style to apply. Mutually exclusive with style, you can't specify both of them. This ID can be the style ID from recraft.ai or some previously created custom style.
modelenumNoModel version to use. Default is recraftv3. - recraftv3 is the latest model and should be used in most cases. - recraftv2 is the previous state model, it has a bit cheaper generation. Be accurate with compatibility of model with style if it is specified, otherwise generation will fail.recraftv3 | recraftv2
numberOfImagesintegerNoNumber of images to generate. Should be from 1 to 6. Default is 1.

Details

From the project README

README image
Recraft MCP Server

MCP Server npm version npm downloads smithery badge

Caution

Deprecated

This project is deprecated. No further updates, bug fixes, or security patches will be published.

Please use the Recraft remote MCP server instead, available at https://mcp.recraft.ai/mcp, following the remote server documentation. It requires no local installation or API key — authentication is handled via OAuth in your browser. Please keep in mind that the remote MCP server uses a different credits model.

To migrate in Claude Code:

claude mcp add --transport http recraft https://mcp.recraft.ai/mcp

To migrate in Claude Desktop, replace this server's entry in your claude_desktop_config.json with:

{
  "mcpServers": {
    "recraft": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.recraft.ai/mcp"]
    }
  }
}

For Cursor, VS Code, and other MCP clients, see the remote server documentation.

This is an MCP (Model Context Protocol) server integrating MCP clients with Recraft's raster- and vector-image operations:

  • raster and vector image generation
  • raster and vector image editing
  • creating custom styles and generating images in them
  • vectorization of raster images
  • background removal and replacement
  • upscaling of raster images

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.

Table of Contents

Setup

Prerequisites

  • First of all, you will need a Recraft API key. To obtain it, register your account on Recraft; then go to your profile API page. Here you can buy API units (credits) and generate an API key.

  • You will need to have an MCP client installed, for example Claude Desktop.

Claude Desktop Extensions

If you are using Claude Desktop you can set up this server using Claude Desktop Extensions.

  • Download mcp-recraft-server.dxt from the latest release
  • Double-click the file to open it with Claude Desktop
  • Click Install
  • Fill out the form
  • Enable the server

In the form you need to paste your Recraft API key obtained on your profile API page. You can also specify a local path for generated image storage or indicate that all results should be stored remotely.

In case of installation issues, check that you have the latest version of Claude Desktop.

Smithery

You can find this MCP server on Smithery. If this MCP is installed from Smithery, all generation results will be stored remotely. Use Desktop Extensions or Manual Setup to store generation results on your local device.

Manual Setup

You're going to need Node running on your machine so you can run npx or node commands in your terminal. If you don't have Node, you can install it from nodejs.org.

From NPM

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": "<YOUR_RECRAFT_API_KEY>",
        "IMAGE_STORAGE_DIRECTORY": "<YOUR_IMAGE_STORAGE_DIRECTORY>",
        "RECRAFT_REMOTE_RESULTS_STORAGE": "<YOUR_REMOTE_RESULTS_STORAGE_INDICATOR>"
      }
    }
  }
}
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": ["<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>"
      }
    }
  }
}

You can specify these parameters:

  • RECRAFT_API_KEY: mandatory parameter, your Recraft API key.
  • IMAGE_STORAGE_DIRECTORY: optional parameter, you can specify the directory in which all generated images will be stored. By default this directory is $HOME_DIR/.mcp-recraft-server. If RECRAFT_REMOTE_RESULTS_STORAGE="1", the value of this parameter is ignored.
  • RECRAFT_REMOTE_RESULTS_STORAGE: optional parameter, you can set the value to "1", in this case all generated images will be stored remotely and their URLs will be returned. Also, IMAGE_STORAGE_DIRECTORY will be ignored in this case.

Tools

In this MCP you can use the following tools:

Tool NameDescriptionParametersPrice
generate_imageGenerates raster/vector images from prompt- prompt
- style
- size
- model
- number of images
$0.04/$0.08 per raster/vector image
create_styleCreates a style from the list of images- list of images
- basic style
$0.04
vectorize_imageVectorizes raster image- image$0.01
image_to_imageGenerates raster/vector images from image and prompt- image
- prompt
- similarity strength
- style
- size
- model
- number of images
$0.04/$0.08 per raster/vector image
remove_backgroundRemoves background in image- image$0.01
replace_backgroundGenerates new background in image from prompt- image
- prompt for background
- style
- size
- model
- number of images
$0.04/$0.08 per raster/vector image
crisp_upscaleCrisp upscale of image- image$0.004
creative_upscaleCreative upscale of image- image$0.25
get_userGet information about the user and left balance

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.