This MCP server exposes NovelAI image generation capabilities as tools for AI agents. It provides operations including txt2img, img2img, inpaint, upscale, Director, and ControlNet, enabling integration of NovelAI image workflows into MCP-compatible applications.
π οΈ Key Features
Tooling for NovelAI image generation via MCP
Supports: txt2img, img2img, inpaint, upscale
Includes Director and ControlNet-related tools
π Use Cases
Generating images from text with txt2img
Transforming existing images using img2img
Editing images using inpaint
Improving image resolution via upscale
Using Director and ControlNet in image generation pipelines
β‘ Developer Benefits
Standardized access to NovelAI image generation through MCP tools
Designed for AI agent integration (e.g., Claude Desk mentioned in the excerpt)
Repository includes documentation and MIT licensing (per badges in excerpt)
β οΈ Limitations
The provided excerpt lists tool names and scope but does not include usage details, authentication, or configuration specifics.
An MCP (Model Context Protocol) 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.
# 1. Clone
git clone https://github.com/xinvxueyuan/NovelAI-Image-MCP.git
cd NovelAI-Image-MCP
# 2. Sync the uv workspace (installs server + docs + dev tools)
uv sync# 3. Configure credentialscp .env.example .env# set NOVELAI_TOKEN=... (preferred)# or NOVELAI_USERNAME + NOVELAI_PASSWORD# 4. Run (stdio β for local agents)
uv run python -m novelai_image_mcp serve
# 5. Or over HTTP
MCP_TRANSPORT=streamable-http uv run python -m novelai_image_mcp serve
# β http://127.0.0.1:8000/mcp
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.
Connect an agent
The MCP server supports two transports (stdio + http), all configured under
mcpServers:
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).
CLI (sync, for scripting)
bash
uv run python -m novelai_image_mcp generate --prompt "a cat, masterpiece" --width 832 --height 1216
uv run python -m novelai_image_mcp upscale --image ./in.png --factor 4
uv run python -m novelai_image_mcp info # subscription / Anlas balance
uv run python -m novelai_image_mcp --help
Skills (portable agent instructions)
The project ships three skills.sh packages that teach AI
agents (Claude Code, Codex, GitHub Copilot, Cursor, β¦) how to drive the CLI
and MCP tools without you pasting docs:
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
for details.