NovelAI Image MCP
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.
This package is the server workspace member of the
NovelAI-Image-MCP
monorepo. The Sphinx documentation site lives at apps/docs/. See the
repository root README
for the project overview and the docs site
for full guides and API reference.
Features
- 11 MCP tools covering the full NovelAI image API surface.
- 2 prompts + 3 resources: prompt templates for drafting and tool
sequencing, plus
novelai://models,novelai://samplers,novelai://defaultsandnovelai://outputs/{name}. - Transports: stdio (local agents) + HTTP (remote / multi-client), the
latter optionally protected by
MCP_AUTH_TOKEN. - Image return: base64
Imagecontent blocks (the agent sees the image) and PNG saved to disk (path returned as text). - Async + sync: async tool handlers + a
typerCLI for direct invocation.
Install
pip install novelai-image-mcp
Quick start
# 1. Configure credentials
export NOVELAI_TOKEN=pst-... # from https://novelai.net > Account
# 2. Run (stdio — for local agents)
novelai-image-mcp serve
# 3. Or over HTTP
MCP_TRANSPORT=http novelai-image-mcp serve
# → http://127.0.0.1:8000/mcp
Agent skills
Three skills.sh packages (novelai-cli,
novelai-mcp-tools, novelai-workflows) teach AI agents how to drive the
CLI and MCP tools:
npx skills add --yes --global xinvxueyuan/NovelAI-Image-MCP
License
MIT — see LICENSE. Per-file SPDX annotations live in REUSE.toml.
Metadata
Release files for novelai-image-mcp 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| novelai_image_mcp-0.5.1.tar.gz | 50.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| novelai_image_mcp-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 107.7 kB
Release files / novelai_image_mcp-0.5.1.tar.gz
| Download URL | novelai_image_mcp-0.5.1.tar.gz |
|---|---|
| Size | 50.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70ca0c5a95790748b28acaae0dd80c9bd191a6a902d52f1065a06024fd45bba5
|
|
BLAKE2b-256 checksum How to use checksums |
5e18d8e49db5fdd918eca56702766f6cc60d04809bff9367648247e85de3401a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / novelai_image_mcp-0.5.1-py3-none-any.whl
| Download URL | novelai_image_mcp-0.5.1-py3-none-any.whl |
|---|---|
| Size | 57.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c907e0c7e3390277a9336567cc7ffa03adbce856a51c36bec635ab170c4d21b9
|
|
BLAKE2b-256 checksum How to use checksums |
743d11b5dd41a496ca7d5210a1c47e011a37df270bece156460a223b576ebaf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency log