# recraft-mcp-server [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/muhammetali/recraft-mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 336  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/recraft-mcp-server

## Description
Recraft AI Image Generation MCP Server for AI coding agents

## Tools
Capabilities this server exposes over MCP:

- **recraft_check_credits** — Check your Recraft account info and remaining API credits
- **recraft_generate_image** — Generate images from text prompt. Supports all Recraft models (V4, V4 Vector/SVG, V4 Pro, V3, V2), 70+ styles, color palette control, text layout, and multiple sizes. V4 Vector models produce SVG output.
- **recraft_image_to_image** — Transform an existing image with a text prompt. Adjustable strength controls how much the original is preserved. V3/V3 Vector models only.
- **recraft_inpaint** — Edit specific regions of an image using a mask. White mask areas are regenerated, black areas are preserved. V3/V3 Vector only.
- **recraft_replace_background** — Replace the background of an image with AI-generated content. Keeps the subject, changes the scene. V3/V3 Vector only.
- **recraft_generate_background** — Fill masked background areas within an image's existing canvas (same size in, same size out). White mask = fill area, black = preserve. For expanding the canvas beyond the original image bounds, use recraft_outpaint instead. V3/V3 Vector only.
- **recraft_variate_image** — Generate variations of an existing image. Produces similar but different versions.
- **recraft_remove_background** — Remove the background from an image, producing a transparent PNG.
- **recraft_vectorize** — Convert a raster image (PNG/JPG/WEBP) to SVG vector format.
- **recraft_crisp_upscale** — Upscale an image with sharp, clean enhancement. Best for graphics, icons, illustrations.
- **recraft_creative_upscale** — Upscale an image with AI-generated detail enhancement and face refinement. Best for photos and realistic images.
- **recraft_erase_region** — Content-aware removal of a region in an image using a mask. White mask areas are erased and filled naturally.
- **recraft_create_style** — Create a custom style from 1-5 reference images. Returns a style_id for use in generation tools. V3/V3 Vector only.
- **recraft_list_styles** — List the custom styles on this account, with their ids and base styles. Free — reads only. Use this before creating a new style to avoid paying for a duplicate.
- **recraft_get_style** — Look up one custom style by its id. Free — reads only.
- **recraft_delete_style** — Delete a custom style permanently. Not reversible — any saved reference to the id stops working. Useful for clearing styles left behind by recraft_generate_themed_set, which creates one per run.
- **recraft_list_basic_styles** — List Recraft's own built-in styles per model, live from the API. Free — reads only. Prefer this over any hardcoded list when you need to know what is actually available.
- **recraft_download_image** — Download an image from a URL and save it to a local file. Useful for saving generated images.
- **recraft_generate_asset** — Full asset pipeline: generate image → download → optionally remove background → save to file. Perfect for game assets, icons, and UI elements.
- **recraft_batch_generate** — Generate multiple assets in sequence with full pipeline (generate → bg remove → save). Each asset failure does not stop others. Includes 300ms rate limit delay between assets.
- **recraft_generate_themed_set** — Generate a complete themed asset set for game design. Creates a hero asset, builds a custom style from it, then generates all remaining symbols with visual consistency. Optionally generates background and outputs a Pixi.js-compatible asset manifest.
- **recraft_generate_sized** — Generate an image at any target size (including small sizes like 64x64, 128x128, 256x256). Generates at API-compatible size, then resizes with Lanczos3 downsampling. Perfect for game sprites, icons, and UI elements.
- **recraft_compare_styles** — Generate the same prompt in multiple styles for side-by-side comparison. Creates individual images and an optional comparison grid. Great for choosing the best style for your project.
- **recraft_texture_swap** — Replace a specific region of an image with AI-generated content. Generates new content matching the region aspect ratio, resizes it, and composites it onto the original. Perfect for Spine atlas texture swaps and spritesheet updates.
- **recraft_outpaint** — Extend an image beyond its original boundaries with AI-generated content (canvas expansion). Different from recraft_generate_background, which only fills masked areas within the existing canvas. Specify a target size, per-side expand amounts, and/or a zoom-out percentage. V3/V3 Vector only.
- **recraft_explore** — Generate a set of images for visual exploration and discovery — diverse results from a prompt, no fine-grained style/color control. Returns image IDs usable with recraft_explore_similar.
- **recraft_explore_similar** — Generate images visually similar to a source image previously created with recraft_explore. similarity controls how closely results resemble the source (1=slightly, 5=extremely similar).
- **recraft_enhance_prompt** — Expand a short prompt into a richer, more detailed description with added visual context, style cues, and composition details. Use the result with any generation tool for more vivid output.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "recraft-mcp-server": {
    "command": "npx",
    "args": ["-y","recraft-mcp-server"],
    "env": {
      "RECRAFT_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `RECRAFT_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What recraft-mcp-server MCP server does

The recraft-mcp-server MCP server gives an AI assistant access to Recraft image operations through MCP. It covers text-to-image generation across Recraft models, image-to-image transformation, inpainting, background changes, outpainting, variations, region erasing, raster-to-SVG conversion, and two types of upscaling. Generation responses can include a reduced inline preview as well as the resulting image URL, allowing an agent to inspect outputs during a conversation.

The tool set also includes workflows beyond individual API calls. An agent can generate and save an asset locally, run multiple assets in sequence, create themed sets with a consistent visual treatment, compare styles, or swap content in a texture or atlas region. Custom Recraft styles can be created from reference images and then listed, inspected, or deleted. Account tools include a check for remaining API credits.

## How it works

The server runs locally and authenticates to Recraft with an API key. MCP-compatible clients invoke its named tools, while the server translates their arguments into Recraft API requests and returns the results. The implementation accepts both Recraft’s broad style families and more specific substyles, routing them to the corresponding fields instead of silently treating a substyle as a broad style.

Image-generation tools can return previews downscaled to fit a context budget. Previews use WebP, have a longest edge of up to 768 pixels, are limited to 700 KB of base64 data, and are capped at four images per call. A `preview: false` option is available when the model does not need to inspect the output. Responses also pass through the stated Recraft credit cost, so an agent can distinguish inexpensive crisp upscaling from more expensive creative upscaling or batch work.

## Setup and configuration

Use Node.js 20.9.0 or newer; Node.js 18 is not supported. Create a Recraft account and obtain an API key from its account settings. The documented Claude CLI setup installs the package with `npx` and supplies the key through `RECRAFT_API_KEY`:

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

The same command and environment variable can be placed in an MCP client’s manual server configuration. Keep the API key out of prompts and source files, and ensure the client can launch the local `npx` process.

## Tools and capabilities

The recraft-mcp-server MCP server provides 28 tools grouped around these tasks:

- Generate images, sized assets, batches, themed sets, and style comparisons.
- Explore variations, find similar results, and enhance prompts.
- Transform images through image-to-image, inpainting, background generation or replacement, outpainting, variation, and texture swaps.
- Remove backgrounds, vectorize raster images, upscale graphics or photos, and erase regions.
- Create, list, inspect, and delete custom styles, or list built-in styles.
- Download images, run the generate-to-file pipeline, and inspect account credits.

## Limitations and notes

This package uses Recraft API units rather than the hosted Recraft service’s subscription credits. Operations can have substantially different costs, so batch and enhancement workflows should be checked before execution. Local file reading and writing are supported by this package, while the hosted Recraft endpoint is described as URL- and base64-based.

_Full upstream README: https://allmcps.com/mcp/recraft-mcp-server/readme_

