NovelAI image generation as MCP tools: txt2img, img2img, inpaint, upscale, Director, ControlNet.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by NovelAI Image MCP.
generate_imageText-to-image (V3 / V4 / V4.5 / V5 models, character prompts; vibes V4/V4.5 only)
image_to_imageImage-to-image with strength/noise
inpaintInpainting (requires an inpaint model + mask)
upscale_image2Γ / 4Γ upscale
director_toolLine art / sketch / bg-removal / declutter / colorize / emotion
annotate_imageControlNet annotation (hed, midas, scribble, mlsd, uniformer)
[![CI][ci-badge]][ci-workflow] [![Docs][docs-badge]][docs] [![License: MIT][mit-badge]][license] [![Python 3.13+][python-badge]][python] [![uv][uv-badge]][uv] [![REUSE status][reuse-badge]][reuse] [![DeepWiki][deepwiki-badge]][deepwiki] [![skills.sh][skills-badge]][skills-sh]
[![NovelAI Image MCP - MCP server for integrating NovelAI Image generation into AI | Product Hunt][product-hunt-badge]][product-hunt] [![Featured on Lifto][lifto-badge]][lifto]
An [MCP (Model Context Protocol)][mcp] server that exposes NovelAI image generation as tools for AI agents (Claude Desktop, Cline, custom agents, remote clients).
Built on FastMCP 4 (the fastmcp framework over the MCP SDK v2 mcp>=2.0.0), it lets an agent generate
images (txt2img / img2img / inpaint), upscale, run Director tools (line art,
emotion, background removal, β¦), annotate with ControlNet, suggest tags, encode
vibes, and query account subscription β all through the standard MCP tool
interface.
π Documentation: [xinvxueyuan.github.io/NovelAI-Image-MCP][docs]
Image content blocks (the agent sees the image)
and PNG saved to disk (path returned as text).typer CLI for direct invocation.This is a uv + pnpm monorepo:
See [CONTRIBUTING.md][contributing] for the developer guide and
[apps/docs/source/][docs-source] for the full documentation source.
If you plan to contribute, install the cross-cutting Node toolchain (turbo, husky, markdownlint) via pnpm:
This wires the husky pre-commit + commit-msg hooks and gives you turbo /
markdownlint-cli2 for local development. The MCP server has zero Node
runtime dependencies β this step is only for contributors.
The MCP server supports two transports (stdio + http), all configured under
mcpServers:
claude_desktop_config.json:
Set NOVELAI_TOKEN (or NOVELAI_USERNAME + NOVELAI_PASSWORD) in the host
environment before launching β uvx inherits the parent shell env.
After docker compose up --build (server listens on http://HOST:8000/mcp):
Replace http://127.0.0.1:8000/mcp with your self-deployed endpoint (e.g.
https://mcp.example.com/mcp behind a TLS-terminating reverse proxy). Swap
the literal token placeholder for a host-managed secret reference if your
MCP host supports one (Claude Desktop, Cline, etc. expose this via their
own secrets UI).
The project ships three [skills.sh][skills-site] packages that teach AI agents (Claude Code, Codex, GitHub Copilot, Cursor, β¦) how to drive the CLI and MCP tools without you pasting docs:
| Skill | What it teaches |
|---|---|
novelai-cli | Typer CLI commands (serve, generate, upscale, director, annotate, info) for shell scripting |
novelai-mcp-tools | The 11 MCP tools β model selection, parameters, return shape, Anlas cost |
novelai-workflows | Multi-step creative pipelines (txt2imgβupscale, annotateβimg2img, Director edits) |
Skills and the CLI/MCP tools are complementary β install all three and your agent picks the right mode based on context. See the [Agent skills docs][skills-docs] for details.
| Tool | Description |
|---|---|
generate_image | Text-to-image (V3 / V4 / V4.5 / V5 models, character prompts; vibes V4/V4.5 only) |
image_to_image | Image-to-image with strength/noise |
inpaint | Inpainting (requires an inpaint model + mask) |
upscale_image | 2Γ / 4Γ upscale |
director_tool | Line art / sketch / bg-removal / declutter / colorize / emotion |
annotate_image | ControlNet annotation (hed, midas, scribble, mlsd, uniformer) |
suggest_tags | Prompt tag suggestions |
encode_vibe | Encode a reference image into a vibe token |
get_subscription | Account subscription + Anlas balance |
get_user_data | Account user data |
estimate_anlas_cost | Estimate Anlas cost for a generation (no API call) |
See the [tools reference][tools-docs] on the docs site for parameters and examples.
All settings are environment variables (see .env.example). Key ones:
| Variable | Default | Notes |
|---|---|---|
NOVELAI_TOKEN | β | Persistent API token (preferred auth) |
NOVELAI_USERNAME / NOVELAI_PASSWORD | β | Access-key login (argon2id) |
NOVELAI_OUTPUT_DIR | outputs | Where generated PNGs are saved |
MCP_TRANSPORT | stdio | stdio or streamable-http |
MCP_HOST / MCP_PORT | 127.0.0.1 / 8000 | For streamable-http |
NovelAI API reference: [image.novelai.net/docs][nai-docs]
The project is a uv + pnpm monorepo orchestrated by Turbo. See
[CONTRIBUTING.md][contributing] for the full setup; the short version:
Per-member commands (via uv):
The Dockerfile lives at [apps/server/Dockerfile][dockerfile] but
the build context is the repository root (so uv can resolve the workspace
graph). See [docker-compose.yml][docker-compose].
The Sphinx documentation site is built with Furo + MyST Markdown and
auto-deploys to GitHub Pages on every push to main:
apps/docs/source/][docs-source]pnpm docs:serveMIT β see [LICENSE][license]. Per-file SPDX annotations live in
[REUSE.toml][reuse-toml]. Contributions are subject to the
[Developer Certificate of Origin][dco] (the commit-msg hook signs off
commits automatically).
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/novelai-image-mcp)<a href="https://allmcps.com/mcp/novelai-image-mcp"><img src="https://allmcps.com/api/badge/novelai-image-mcp?style=directory" alt="NovelAI Image MCP on AllMCPs" /></a>