Skip to main content

NovelAI Image MCP

Languages

Project overview in your language (this page remains in English).

English 简体中文 日本語
English 简体中文 日本語

skills.sh

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 + 1 resource template: prompt templates for drafting and tool sequencing, plus novelai://models, novelai://samplers, novelai://defaults and novelai://outputs/{name}.
  • Transports: stdio (local agents) + HTTP (remote / multi-client), the latter optionally protected by MCP_AUTH_TOKEN.
  • Image return: base64 Image content blocks (the agent sees the image) and PNG saved to disk (path returned as text).
  • Async + sync: async tool handlers + a typer CLI 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.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for novelai-image-mcp 0.7.0
File Size Uploaded Provenance
novelai_image_mcp-0.7.0.tar.gz 66.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for novelai-image-mcp 0.7.0
File Interpreter ABI Platform
novelai_image_mcp-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 143.2 kB

Release files / novelai_image_mcp-0.7.0.tar.gz

Download URL novelai_image_mcp-0.7.0.tar.gz
Size 66.7 kB
Tags Source
SHA-256 checksum
How to use checksums
382b3e107d79900ccd75c7999fd4fef1870684a883ae732694fdfefe26de9efd
BLAKE2b-256 checksum
How to use checksums
1e598a27e1ecf47c2bee0f60f7195e63caaa908cfa31fc2f1a79878038303a01
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 22, 2026.

Transparency log

Release files / novelai_image_mcp-0.7.0-py3-none-any.whl

Download URL novelai_image_mcp-0.7.0-py3-none-any.whl
Size 76.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e09411d9354726165860dfebfda5fcac29f78534ff8e0277151615cceaea50c7
BLAKE2b-256 checksum
How to use checksums
6202a56831327e51704b5336c3b5035fe67f3910a7f967ca78100dbb6ccbb62b
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 22, 2026.

Transparency log

Security for novelai-image-mcp 0.7.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for novelai_image_mcp-0.7.0.tar.gz

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 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page