
Recraft Mcp Server
io.github.muhammetaliPublished by GitHub account muhammetaliv1.0.0Updated Oct 24, 2026
Recraft AI Image Generation MCP Server for AI coding agents
Overview
Lets an assistant generate, transform, upscale, and vectorize images through the Recraft AI API, with local file handling and per-call cost reporting.
- What you can do
- Exposes 28 tools covering the Recraft image API: text-to-image generation across Recraft models and styles, sized generation for sprites and icons, batch and themed asset sets, style comparison grids, image-to-image, inpaint, background replace or generate, outpaint, variations, texture swap, background removal, vectorization, crisp and creative upscale, region erase, prompt enhancement, and custom style management. Generation tools return a small inline preview so the model can inspect results, and every call reports its credit cost. It can also download images and run a generate-download-background-remove-save pipeline to local files.
- When to use it
- Useful when producing image assets in bulk, working from files already on disk, or needing to know a run's credit cost before spending it. For occasional single images, a hosted Recraft endpoint involves less setup.
- Requirements
- Local process run via npx or Docker; Node.js 20.9.0 or newer. A Recraft account and API key supplied through the RECRAFT_API_KEY environment variable. Network access to the Recraft API. Docker use requires the -i flag and bind mounts for tools that write files.
Installation
In SourceWeft
- Open Recraft Mcp Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
🎨 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:
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:
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
Discovery
Transformation
Enhancement
Style management
Assets & account
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:
Cost. Every Recraft response states the credit cost of the call it served, and every tool here passes it through:
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
Or add it manually to your MCP client config:
Environment Variables
Docker
In an MCP client config:
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
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.
Source: README.md at commit ecea09c
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts