NovelAI Image MCP logo

NovelAI Image MCP

Exposes NovelAI image generation, editing, annotation, account, and cost tools to MCP-compatible agents.

Install NovelAI Image MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "novelai-image-mcp": {
      "command": "uvx",
      "args": [
        "novelai-image-mcp"
      ],
      "env": {
        "NOVELAI_TOKEN": "YOUR_VALUE_HERE",
        "NOVELAI_USERNAME": "YOUR_VALUE_HERE",
        "NOVELAI_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env NOVELAI_TOKEN=YOUR_VALUE_HERE --env NOVELAI_USERNAME=YOUR_VALUE_HERE --env NOVELAI_PASSWORD=YOUR_VALUE_HERE --transport stdio novelai-image-mcp -- uvx novelai-image-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx novelai-image-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

NovelAI Image MCP connects MCP-compatible agents to NovelAI's image-generation API through tools for creating, editing, annotating, and inspecting images. It supports stdio for local hosts and HTTP for remote or multi-client deployments, with optional bearer-token protection for HTTP. Generated images are returned as base64 MCP image content and saved as PNG files. Reach for it when an agent needs NovelAI workflows such as text-to-image, inpainting, ControlNet annotation, image upscaling, or account-cost checks.

Use cases

  • Generate NovelAI images from agent-written prompts
  • Transform and inpaint reference images
  • Upscale generated images four times
  • Create ControlNet annotations from source images
  • Check Anlas balances and estimate generation costs

Key features

  • 11 MCP tools for NovelAI image workflows
  • Text-to-image, image-to-image, and masked inpainting
  • 4× V5 image upscaling
  • Director and ControlNet image processing
  • Stdio and HTTP transports
  • Base64 image responses with PNG file output

Tools11

What NovelAI Image MCP lets your agent do. Expand a tool for its parameters.

Self-reported~155 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 88d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · novelai-image-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars14Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed11Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How NovelAI Image MCP works

What NovelAI Image MCP does

NovelAI Image MCP exposes NovelAI image operations through the Model Context Protocol. Agents can generate images from text, transform an input image, apply masked inpainting, upscale an image by 4×, and run Director operations such as line-art extraction, sketch conversion, background removal, decluttering, colorization, and emotion editing.

The tool set also covers supporting tasks. Agents can request prompt tag suggestions, encode a reference image as a vibe token, annotate images for ControlNet workflows, inspect subscription and Anlas balance data, retrieve user information, and calculate an estimated Anlas cost without making a generation request.

Generated results are available in two forms: an MCP Image content block containing base64 data and a PNG written to disk with its path returned as text. The project also includes prompts for prompt writing and workflow sequencing, plus resources for model, sampler, default, and generated-output information.

How it works

The server is built with FastMCP and uses an asynchronous NovelAI client underneath its MCP interface. Local agents communicate through stdio. Remote or shared deployments can use HTTP at the server's /mcp endpoint, optionally requiring a bearer token through MCP_AUTH_TOKEN.

Calls use structured, enum-validated tool schemas. Routing and audit behavior is enabled by default: requests receive route-specific output directories and loggers, while an append-only JSONL audit trail records activity without writing prompts or credentials verbatim. The X-MCP-Insiders: false header can restore the flatter, unaudited behavior for a client, and the behavior can also be changed server-wide.

A synchronous command-line interface wraps the same image operations for shell scripts, CI jobs, and one-off commands. It saves PNG files and prints their paths instead of returning MCP image blocks.

Setup and configuration

Install the published package with pip install novelai-image-mcp, or install the source workspace with uv sync. Start a local server with novelai-image-mcp serve or uv run python -m novelai_image_mcp serve. Set MCP_TRANSPORT=http before starting to use HTTP instead of the default stdio transport.

Authentication uses a NovelAI token through NOVELAI_TOKEN, or a NovelAI username and password through NOVELAI_USERNAME and NOVELAI_PASSWORD. Image-producing commands write to outputs by default; NOVELAI_OUTPUT_DIR or the CLI's --output-dir option can change that location.

MCP hosts configure the server under mcpServers. The repository includes examples for Claude Desktop and Cline, and the package can also be run through uvx novelai-image-mcp serve. Docker Compose is available for HTTP deployment.

Tools and capabilities

  • generate_image: text-to-image generation with V3, V4, V4.5, and V5 models; character prompts and V4/V4.5 vibes are supported.
  • image_to_image: transform an existing image with strength and noise controls.
  • inpaint: edit masked areas using an inpaint model and mask.
  • upscale_image: perform 4× upscaling with a V5 model.
  • director_tool: run line-art, sketch, background-removal, declutter, colorize, or emotion operations.
  • annotate_image: produce ControlNet annotations using HED, MiDaS, scribble, MLSD, or Uniformer options.
  • suggest_tags, encode_vibe, get_subscription, get_user_data, and estimate_anlas_cost provide prompt, reference-image, account, and cost utilities.

Limitations and notes

Upscaling requires a V5 model. Inpainting requires both an inpaint model and a mask. Vibe support is limited to V4 and V4.5 models. The server depends on NovelAI credentials for account-backed operations and image generation, while Anlas estimation can run without an API call. Node tooling is used for repository development; the MCP server itself has no Node runtime dependencies.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about NovelAI Image MCP

NovelAI Image MCP is an MCP server that connects AI agents to NovelAI's image-generation API through tools for text-to-image, image-to-image, inpainting, upscaling, Director operations, ControlNet annotation, tag suggestions, vibe encoding, and account or cost information.

Install it with `pip install novelai-image-mcp`, then start it with `novelai-image-mcp serve`. From the source repository, run `uv sync` and start `uv run python -m novelai_image_mcp serve`. Configure `NOVELAI_TOKEN`, or provide NovelAI username and password variables.

Add the server under Claude Desktop's `mcpServers` configuration using a stdio command such as `uv run python -m novelai_image_mcp serve`, and pass `NOVELAI_TOKEN` in the environment. The repository also shows a `uvx novelai-image-mcp serve` configuration for the published package.

Yes, it supports HTTP deployments at the `/mcp` endpoint. Start the server with `MCP_TRANSPORT=http`; deployments can use a bearer token configured with `MCP_AUTH_TOKEN`, and MCP clients send that token in an `Authorization` header.

The MCP tools cover text-to-image, image-to-image, inpainting, 4× upscaling, Director operations, ControlNet annotation, tag suggestions, vibe encoding, subscription data, user data, and Anlas cost estimation. Generated images are returned as MCP image content and saved as PNG files.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNovelAI Image MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/novelai-image-mcp?style=directory)](https://allmcps.com/mcp/novelai-image-mcp)
HTML Embed
<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>