{
  "markdown": "# 🎨 Recraft MCP Server\n\n[![npm version](https://img.shields.io/npm/v/recraft-mcp-server.svg)](https://npmjs.org/package/recraft-mcp-server)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-blue.svg)](https://modelcontextprotocol.io/)\n\nA [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that gives AI assistants\n(Claude, Gemini, or any MCP client) direct access to the [Recraft AI](https://www.recraft.ai/) image\ngeneration API — generate, transform, upscale, and vectorize images without leaving your chat.\n\n> \"Generate a set of 8 fantasy game icons in the same art style.\"\n> \"Remove the background from this screenshot and upscale it.\"\n> \"Create 5 style variations of this logo and put them in a comparison grid.\"\n\n## 🌟 Key Features\n\n- 🖼️ **Text-to-image generation** across all Recraft models (V4.1, V4 Styles, V4, V4 Vector/SVG, V4 Pro, V3, V2), 70+ styles\n- 🔁 **Image transformation** — image-to-image, inpaint, background replace/generate, outpaint (canvas expansion), variations\n- ✨ **Enhancement** — background removal, vectorization, crisp/creative upscale, region erase\n- 🔎 **Discovery** — open-ended exploration generation, \"more like this,\" and automatic prompt enhancement\n- 🧩 **Asset pipelines** — one-call generate → download → background-remove → save, batch generation, themed asset sets with style consistency\n- 🎮 **Game-dev extras** — sized generation for sprites/icons, style comparison grids, texture/atlas swapping\n\n## 🛠️ Provided Tools\n\nThis MCP server exposes 24 tools to your AI agent — full coverage of the Recraft API.\n\n### Generation\n| Tool | Description |\n|---|---|\n| `recraft_generate_image` | Text-to-image across all Recraft models, 70+ styles, color/text-layout control |\n| `recraft_generate_sized` | Generate at any target size (down to 64×64) — ideal for sprites/icons/UI |\n| `recraft_batch_generate` | Generate multiple assets in sequence with full pipeline, resilient to per-asset failure |\n| `recraft_generate_themed_set` | A hero asset + matching style + all remaining symbols, generated with visual consistency |\n| `recraft_compare_styles` | Same prompt across multiple styles, with an optional side-by-side comparison grid |\n\n### Discovery\n| Tool | Description |\n|---|---|\n| `recraft_explore` | Generate a diverse set of images for open-ended exploration of a prompt |\n| `recraft_explore_similar` | Generate more images visually similar to a previous `recraft_explore` result |\n| `recraft_enhance_prompt` | Expand a short prompt into a richer, more detailed one |\n\n### Transformation\n| Tool | Description |\n|---|---|\n| `recraft_image_to_image` | Transform an existing image from a text prompt (strength-adjustable) |\n| `recraft_inpaint` | Regenerate masked regions of an image |\n| `recraft_replace_background` | AI-generate a new background while keeping the subject |\n| `recraft_generate_background` | Fill masked background areas within the existing canvas |\n| `recraft_outpaint` | Expand the canvas beyond the image's original bounds with AI-generated content |\n| `recraft_variate_image` | Generate variations of an existing image |\n| `recraft_texture_swap` | Replace a region with new AI content — built for Spine atlas / spritesheet swaps |\n\n### Enhancement\n| Tool | Description |\n|---|---|\n| `recraft_remove_background` | Transparent-PNG background removal |\n| `recraft_vectorize` | Raster (PNG/JPG/WEBP) → SVG |\n| `recraft_crisp_upscale` | Clean upscale for graphics, icons, illustrations |\n| `recraft_creative_upscale` | AI-detail upscale with face refinement for photos |\n| `recraft_erase_region` | Content-aware removal of a masked region |\n\n### Styles, assets & account\n| Tool | Description |\n|---|---|\n| `recraft_create_style` | Build a custom, reusable style from 1–5 reference images |\n| `recraft_generate_asset` | Full pipeline: generate → download → optional bg-removal → save to file |\n| `recraft_download_image` | Save an image URL to a local file |\n| `recraft_check_credits` | Check account info and remaining API credits |\n\n## ⚙️ Quick Start\n\n### 1. Get a Recraft API key\nSign up at [recraft.ai](https://www.recraft.ai/) and grab an API key from your account settings.\n\n### 2. Install & configure\n\n```bash\nclaude mcp add --scope user recraft \\\n  -e RECRAFT_API_KEY=your-api-key-here \\\n  -- npx -y recraft-mcp-server\n```\n\nOr add it manually to your MCP client config:\n\n```json\n{\n  \"mcpServers\": {\n    \"recraft\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"recraft-mcp-server\"],\n      \"env\": {\n        \"RECRAFT_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\n### Environment Variables\n| Variable | Description |\n|----------|-------------|\n| `RECRAFT_API_KEY` | Your Recraft AI API key |\n\n## 🤖 Example AI Prompts\n\n**Game asset pipeline:**\n> *\"Generate a themed set of 6 fantasy potion icons in the same style, then export a Pixi.js manifest.\"* → `recraft_generate_themed_set`\n\n**Quick sprite generation:**\n> *\"Generate a 64x64 pixel-art coin icon.\"* → `recraft_generate_sized`\n\n**Style exploration:**\n> *\"Show me this logo prompt in 4 different styles side by side.\"* → `recraft_compare_styles`\n\n**Photo cleanup:**\n> *\"Remove the background from this photo and upscale it for print.\"* → `recraft_remove_background` → `recraft_creative_upscale`\n\n**Asset swapping:**\n> *\"Swap the texture in this region of the spritesheet with a new design.\"* → `recraft_texture_swap`\n\n**Canvas expansion:**\n> *\"Widen this image to a 16:9 banner without cropping the subject.\"* → `recraft_outpaint`\n\n**Open-ended exploration:**\n> *\"Explore some ideas for a race car on a track, then give me more like the third one.\"* → `recraft_explore` → `recraft_explore_similar`\n\n**Prompt polishing:**\n> *\"Enhance this rough prompt before generating: 'red panda with a sign.'\"* → `recraft_enhance_prompt`\n\n## Development\n\n```bash\ngit clone https://github.com/muhammetali/recraft-mcp-server.git\ncd recraft-mcp-server\nnpm install\nnpm run build\nnpm test\n```\n\n## 📄 License\nMIT — see [LICENSE](LICENSE).\n",
  "bytes": 6090,
  "sha": "a16d3e48edf086cb47fd8dd64950022ea8da8880a6696b0c294f8d1f3dfb15ae",
  "repo_slug": "muhammetali/recraft-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_muhammetali_recraft_mcp_server_4c3b81b1/readme"
}