novelai-mcp
You can generate and edit NovelAI images through MCP tools.
Generate text-to-image art with V5/V4.5 models, custom sizes, multi-character prompts, transparent backgrounds, text rendering, comic panels, and furry/background modes.
Redraw existing images with img2img or inpaint masked regions.
Use Director Tools for background removal, lineart, sketch, colorize, emotion changes, and declutter.
Upscale images and perform Vibe Transfer using a reference image’s style and palette.
Suggest Danbooru/NovelAI tags for autocomplete.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@novelai-mcp Generate a portrait of a girl with silver hair and blue eyes in a sunflower field."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NovelAI MCP Server
Русская версия · Українська версія
An MCP server that lets Claude, Cursor and other MCP clients generate and edit images with NovelAI.
Supports NovelAI Diffusion V5 (Full and Curated) and V4.5: text-to-image, img2img, inpainting, Director Tools, Vibe Transfer, upscaling and tag suggestions.
This is an unofficial project. It is not affiliated with or endorsed by NovelAI / Anlatan.
Tools
Tool | What it does |
| Text-to-image. Size presets or custom size, multi-character prompts with positions, in-image text, transparent background, comic panels, furry and background modes. |
| Redraws an existing image from a new prompt. |
| Redraws the masked area of an image. White in the mask = repaint, black = keep. |
| Director Tools: |
| Neural upscale. NovelAI chooses the factor. |
| Generates a new image in the style and palette of a reference image. |
| Danbooru/NovelAI tag autocomplete. |
Generated images are saved to disk and also returned to the client, so the model can see them.
Related MCP server: Artifex MCP
Requirements
A NovelAI subscription and a Persistent API Token: NovelAI → Settings → Account → Persistent API Tokens.
uv. It runs the server without a manual install.
Cost
Requests spend your Anlas the same way the NovelAI website does. Large sizes, more steps, upscale and Vibe Transfer cost more. Check your Anlas balance before running many generations. The server does not limit spending.
Setup
Claude Code
claude mcp add novelai -e NOVELAI_API_KEY=your_token -- uvx mcp-server-novelaiClaude Desktop
Edit claude_desktop_config.json:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"novelai": {
"command": "uvx",
"args": ["mcp-server-novelai"],
"env": {
"NOVELAI_API_KEY": "your_token"
}
}
}
}Restart Claude Desktop after editing.
Cursor
Add the same mcpServers block to .cursor/mcp.json or to Settings → MCP.
Install from GitHub instead of PyPI
Replace "args": ["mcp-server-novelai"] with:
"args": ["--from", "git+https://github.com/DesmondFox/novelai-mcp", "mcp-server-novelai"]Configuration
Variable | Required | Default | Meaning |
| yes | — | Persistent API Token. |
| no |
| Where images are saved. Each tool also accepts |
Usage
Ask the model in plain language. It picks the tool and parameters. Examples:
"Generate a portrait of a girl with silver hair and blue eyes in a sunflower field."
"Make a chibi cat girl holding a coffee mug, transparent background."
"Draw a tavern scene: a knight girl on the left, a mage boy on the right."
"Cyberpunk storefront at night with a neon sign that says NEON DREAMS."
"Take
~/Pictures/NovelAI/t2i_20260101_120000_abc123.pngand change her expression to smug.""Remove the background from that image, then upscale it."
"Suggest tags for 'kimono'."
Useful parameters of novelai_generate_image:
Parameter | Default | Notes |
|
| Also |
|
|
|
| — | Custom size, rounded to a multiple of 64. Both must be set. |
| 23 | Same default as the NovelAI website. |
| 5.0 | Prompt guidance. |
| random | Set it to reproduce an image. The used seed is returned. |
|
|
|
| — | List of |
| — | Text to draw inside the image. |
| false | Transparent background. |
| false | Adds comic/manga panel tags. |
Development
git clone https://github.com/DesmondFox/novelai-mcp
cd novelai-mcp
pip install -e ".[dev]"
pytest
ruff check .For local development you can put the key in a .env file (see .env.example) instead of the client config.
License
Available Tools
7 toolsnovelai_augmentB
NovelAI Director Tools for image manipulations: remove background ('bg-removal'), extract line art ('lineart'), convert to sketch ('sketch'), colorize sketch ('colorize'), change facial expressions/emotions ('emotion'), or declutter ('declutter').
Inputs: tool (required), image_path (required), defry, prompt, +2 more.
novelai_generate_imageB
Generate anime/art images with NovelAI Diffusion models (prioritizing V5 Full/Curated, V4.5). Supports natural language, Danbooru tags, multilingual prompts, transparent background, and custom dimensions.
Inputs: prompt (required), seed, size, model, +18 more.
novelai_img2imgA
Modify or restyle an existing image using NovelAI Image-to-Image. Applies new prompt with adjustable change strength (0.0 to 1.0) and optional noise.
Inputs: prompt (required), image_path (required), seed, size, +8 more.
novelai_inpaintB
Inpaint / redraw specific parts of an image using a mask. Allows replacing clothes, faces, hair, background or fixing anatomy.
Inputs: prompt (required), mask_path (required), image_path (required), seed, +7 more.
novelai_suggest_tagsB
Search and suggest valid Danbooru/NovelAI tags matching a query string.
Inputs: query (required), lang, model. Returns: result
novelai_upscaleB
Upscale an image with NovelAI's neural upscaler.
Inputs: image_path (required), model, output_dir.
novelai_vibe_transferC
Generate a new image influenced by the style, colors, and atmosphere of a reference image (Vibe Transfer).
Inputs: prompt (required), reference_image_path (required), seed, size, +8 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a distinct purpose: upscaling, tag suggestion, generation, img2img, inpainting, augmentations, and vibe transfer. However, novelai_img2img and novelai_vibe_transfer both involve modifying or generating from an existing image, which could cause some confusion. The descriptions clarify the difference (strength vs style influence), but a user might initially hesitate.
All tools follow a consistent 'novelai_' prefix followed by a clear verb or action (generate, img2img, inpaint, augment, vibe_transfer). The naming is uniform and predictable, making it easy to understand the tool's function from its name.
7 tools is an appropriate scope for an image generation and editing MCP server. Each tool covers a distinct aspect of the workflow: generation, editing (img2img, inpaint), augmentation, style transfer, and utilities (upscale, tag suggestions). This is neither too thin nor too heavy.
The tool set covers the core image generation and editing workflows: generating new images, refining them, inpainting, style transfer, and enhancements. A notable gap is the lack of explicit image-to-image with mask (which is partially covered by inpaint) and perhaps batch processing, but the provided tools are sufficient for most common use cases. Minor gap: no explicit 'delete' or 'get' tools, but those are not typical for generation servers.
Maintenance
Related MCP Connectors
Generate, edit and upscale images with references, batch jobs, cost previews and original downloads.
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to generate images using NovelAI, supporting text-to-image, image-to-image, and tag suggestions.23 PyPI3MIT
- AlicenseAqualityDmaintenanceEnables AI image generation via Antigravity (Google Gemini) and OpenAI DALL-E 3, supporting text-to-image, image editing, multiple outputs, and character consistency.520 npm9MIT
- AlicenseAqualityDmaintenanceGives AI assistants image generation and editing capabilities through OpenRouter, supporting multiple models, style presets, variations, and batch operations.575 npm2MIT
- AlicenseNot gradedqualityAmaintenanceEnables assistants in any MCP client to generate new images or edit existing ones, automatically enriching short requests with composition, lighting, and camera details before sending them to Gemini, OpenAI, or BytePlus Seedream. Supports quality presets, aspect ratios, image sizes, character consistency, blended inputs, and Google Search grounding for current information.1,781 npmMIT