Skip to content
MCP server
Registry

recraft-mcp-server MCP Server

Recraft AI Image Generation MCP Server for AI coding agents

recraft-mcp-server scores 64 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 28 tools. Filed under Design, Media. GitHub shows 0 stars. Package registries report about 62 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by muhammetaliMITTypeScript0 stars
Trust score
64Good
Trust score 64 of 100, Good

Good trust

64 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 64 comes from

22 + 15 + 3 + 10 + 4 + 10 = 64. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance15 / 20

How recently the repository saw a commit or release.

Maintenance: 15 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "muhammetali-recraft-mcp-server": {      "command": "npx",      "args": [        "-y",        "recraft-mcp-server@1.0.0"      ],      "env": {        "RECRAFT_API_KEY": "YOUR_RECRAFT_API_KEY"      }    }  }}

Environment variables

NameRequiredNotes
RECRAFT_API_KEYSecretRequiredYour Recraft AI API key

Tools28Tool docs quality grade D

All capabilities

About

๐ŸŽจ Recraft MCP Server

npm version License: MIT MCP Compatible

A Model Context Protocol (MCP) server that gives AI assistants (Claude, Gemini, or any MCP client) direct access to the Recraft AI image generation API โ€” generate, transform, upscale, and vectorize images without leaving your chat.

"Generate a set of 8 fantasy game icons in the same art style." "Remove the background from this screenshot and upscale it." "Create 5 style variations of this logo and put them in a comparison grid."

Coming from the official server?

Recraft archived @recraft-ai/mcp-recraft-server in July 2026 and now points users at a hosted endpoint, https://mcp.recraft.ai/mcp. Which of the three you want depends on what you are doing:

Recraft hostedThis server
SetupOAuth in a browser, no API keynpm install + API key
Tools928
BillingSubscription creditsAPI units, and every tool reports what its call cost
Local filesNo โ€” URLs and base64 onlyReads and writes files on your machine
Batch / pipelinesNoGenerate โ†’ download โ†’ background-remove โ†’ save, themed sets, comparison grids
Style managementCreate onlyCreate, list, inspect, delete

If you only generate the occasional image, the hosted server is less work and this one has nothing to offer you. If you are producing assets in bulk, working from files already on disk, or need to know what a run costs before it runs, that is what this exists for.

Tool name mapping

The names are the old ones with a recraft_ prefix, except where noted:

Official (archived)Here
generate_imagerecraft_generate_image
image_to_imagerecraft_image_to_image
remove_backgroundrecraft_remove_background
replace_backgroundrecraft_replace_background
crisp_upscalerecraft_crisp_upscale
creative_upscalerecraft_creative_upscale
create_stylerecraft_create_style
vectorize_imagerecraft_vectorize
get_userrecraft_check_credits

One behavioural difference worth knowing: Recraft's style field takes six broad families, and the specific look (pixel_art, kawaii, b_and_wโ€ฆ) is a separate substyle field. Passing a substyle name as style is silently ignored by the API. This server accepts either and routes it correctly, so prompts written against the old servers keep working.

๐ŸŒŸ Key Features

  • ๐Ÿ–ผ๏ธ Text-to-image generation across all Recraft models (V4.1, V4 Styles, V4, V4 Vector/SVG, V4 Pro, V3, V2), with the full style taxonomy โ€” 6 families ร— 104 substyles, generated from Recraft's own API spec rather than transcribed by hand
  • ๐Ÿ” Image transformation โ€” image-to-image, inpaint, background replace/generate, outpaint (canvas expansion), variations
  • โœจ Enhancement โ€” background removal, vectorization, crisp/creative upscale, region erase
  • ๐Ÿ”Ž Discovery โ€” open-ended exploration generation, "more like this," and automatic prompt enhancement
  • ๐Ÿงฉ Asset pipelines โ€” one-call generate โ†’ download โ†’ background-remove โ†’ save, batch generation, themed asset sets with style consistency
  • ๐ŸŽฎ Game-dev extras โ€” sized generation for sprites/icons, style comparison grids, texture/atlas swapping
  • ๐Ÿ‘๏ธ The agent can see what it made โ€” generations come back with an inline preview alongside the URL, downscaled to fit a context budget. Without it a model can produce four variations and judge none of them
  • ๐Ÿ’ฐ Every call reports its price โ€” Recraft states the credit cost of each operation and this passes it through, so an agent can tell a 4-credit crisp upscale from a 250-credit creative one before it runs a batch of them
  • ๐ŸŽจ Style management โ€” create custom styles, then list, inspect and delete them

๐Ÿ› ๏ธ Provided Tools

This MCP server exposes 28 tools to your AI agent โ€” full coverage of the Recraft API.

Generation

ToolDescription
recraft_generate_imageText-to-image across all Recraft models, 70+ styles, color/text-layout control
recraft_generate_sizedGenerate at any target size (down to 64ร—64) โ€” ideal for sprites/icons/UI
recraft_batch_generateGenerate multiple assets in sequence with full pipeline, resilient to per-asset failure
recraft_generate_themed_setA hero asset + matching style + all remaining symbols, generated with visual consistency
recraft_compare_stylesSame prompt across multiple styles, with an optional side-by-side comparison grid

Discovery

ToolDescription
recraft_exploreGenerate a diverse set of images for open-ended exploration of a prompt
recraft_explore_similarGenerate more images visually similar to a previous recraft_explore result
recraft_enhance_promptExpand a short prompt into a richer, more detailed one

Transformation

ToolDescription
recraft_image_to_imageTransform an existing image from a text prompt (strength-adjustable)
recraft_inpaintRegenerate masked regions of an image
recraft_replace_backgroundAI-generate a new background while keeping the subject
recraft_generate_backgroundFill masked background areas within the existing canvas
recraft_outpaintExpand the canvas beyond the image's original bounds with AI-generated content
recraft_variate_imageGenerate variations of an existing image
recraft_texture_swapReplace a region with new AI content โ€” built for Spine atlas / spritesheet swaps

Enhancement

ToolDescription
recraft_remove_backgroundTransparent-PNG background removal
recraft_vectorizeRaster (PNG/JPG/WEBP) โ†’ SVG
recraft_crisp_upscaleClean upscale for graphics, icons, illustrations
recraft_creative_upscaleAI-detail upscale with face refinement for photos
recraft_erase_regionContent-aware removal of a masked region

Style management

ToolWhat it does
recraft_create_styleCreate a custom style from 1-5 reference images
recraft_list_stylesList the custom styles on the account โ€” free, reads only
recraft_get_styleLook up one style by id โ€” free, reads only
recraft_delete_styleDelete a style permanently
recraft_list_basic_stylesRecraft's built-in styles per model, live from the API

Assets & account

ToolDescription
recraft_create_styleBuild a custom, reusable style from 1โ€“5 reference images
recraft_generate_assetFull pipeline: generate โ†’ download โ†’ optional bg-removal โ†’ save to file
recraft_download_imageSave an image URL to a local file
recraft_check_creditsCheck account info and remaining API credits

Previews and cost

Two behaviours worth knowing about, because they change what the agent can do.

Previews. Generation tools return a small inline image alongside the URL, so the model can actually look at the result โ€” pick the best of four variations, notice that the background removal left a halo, see that the text came out garbled. Previews are downscaled until they fit a context budget (WebP, longest edge โ‰ค768px, โ‰ค700KB of base64) and capped at four per call, because an unbounded base64 blob costs more context than the image is worth.

Turn it off per call when the image is not being judged:

recraft_generate_image(prompt: "...", preview: false)

Cost. Every Recraft response states the credit cost of the call it served, and every tool here passes it through:

Model: recraftv4 | Size: 1024x1024 | Substyle: kawaii | Cost: 40 credits

This matters more than it sounds. A creative upscale costs 250 credits against a crisp upscale's 4 โ€” 62ร— โ€” and a themed set of 12 symbols runs to roughly 600. recraft_check_credits reads the balance, and the style-management tools are free reads, so an agent can look before it spends.

โš™๏ธ Quick Start

Requires Node.js 20.9.0 or newer. Version 1.1.0 upgrades the native image-processing dependencies to address known libvips vulnerabilities; Node.js 18 is no longer supported.

1. Get a Recraft API key

Sign up at recraft.ai and grab an API key from your account settings.

2. Install & configure

claude mcp add --scope user recraft \
  -e RECRAFT_API_KEY=your-api-key-here \
  -- npx -y recraft-mcp-server

Or add it manually to your MCP client config:

{
  "mcpServers": {
    "recraft": {
      "command": "npx",
      "args": ["-y", "recraft-mcp-server"],
      "env": {
        "RECRAFT_API_KEY": "your-api-key-here"
      }
    }
  }
}

Environment Variables

VariableDescription
RECRAFT_API_KEYYour Recraft AI API key

Docker

docker build -t recraft-mcp-server .
docker run -i --rm -e RECRAFT_API_KEY=your-key recraft-mcp-server

In an MCP client config:

{
  "mcpServers": {
    "recraft": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "RECRAFT_API_KEY", "recraft-mcp-server"],
      "env": { "RECRAFT_API_KEY": "your-key" }
    }
  }
}

The container talks MCP over stdio and never opens a port, so -i is required and -p is not. It runs as an unprivileged user; tools that write files need the target directory bind-mounted (-v /path:/path).

๐Ÿค– Example AI Prompts

Game asset pipeline:

"Generate a themed set of 6 fantasy potion icons in the same style, then export a Pixi.js manifest." โ†’ recraft_generate_themed_set

Quick sprite generation:

"Generate a 64x64 pixel-art coin icon." โ†’ recraft_generate_sized

Style exploration:

"Show me this logo prompt in 4 different styles side by side." โ†’ recraft_compare_styles

Photo cleanup:

"Remove the background from this photo and upscale it for print." โ†’ recraft_remove_background โ†’ recraft_creative_upscale

Asset swapping:

"Swap the texture in this region of the spritesheet with a new design." โ†’ recraft_texture_swap

Canvas expansion:

"Widen this image to a 16:9 banner without cropping the subject." โ†’ recraft_outpaint

Open-ended exploration:

"Explore some ideas for a race car on a track, then give me more like the third one." โ†’ recraft_explore โ†’ recraft_explore_similar

Prompt polishing:

"Enhance this rough prompt before generating: 'red panda with a sign.'" โ†’ recraft_enhance_prompt

Development

git clone https://github.com/muhammetali/recraft-mcp-server.git
cd recraft-mcp-server
npm install
npm run build
npm test
npm run audit:security
npm run verify

Version 1.2.0 uses the official modular MCP SDK v2 while preserving all 24 tools. See security policy and dependency review for release checks, dependency decisions, and necessary runtime capabilities.

๐Ÿ“„ License

MIT โ€” see LICENSE.

Frequently asked questions

What is recraft-mcp-server MCP Server?

Recraft AI Image Generation MCP Server for AI coding agents

How do I install recraft-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. recraft-mcp-server MCP Server runs locally from the npm package recraft-mcp-server with the command npx -y recraft-mcp-server@1.0.0.

Is recraft-mcp-server MCP Server free and open source?

Yes. recraft-mcp-server MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does recraft-mcp-server MCP Server support remote (HTTP) connections?

No remote endpoint is listed for recraft-mcp-server MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does recraft-mcp-server MCP Server provide?

recraft-mcp-server MCP Server provides 28 tools, including recraft_batch_generate, recraft_check_credits, recraft_compare_styles, and recraft_create_style. See the full tool list for descriptions and parameters.

How is recraft-mcp-server MCP Server's trust score calculated?

recraft-mcp-server MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server