Skip to main content

MCP server exposing NovelAI image generation as tools for AI agents

Project description

NovelAI Image MCP

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 the official MCP Python SDK v2 (MCPServer), 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.
  • Transports: stdio (local agents) + streamable-http (remote / multi-client).
  • 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=streamable-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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

novelai_image_mcp-0.3.0.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

novelai_image_mcp-0.3.0-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file novelai_image_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: novelai_image_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for novelai_image_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 211885cfb52c23ab739384aa623cc2901791c5c77c9fc4587dab5b1007ac85e8
MD5 e4782401fea4d7e7221281cc82fd7376
BLAKE2b-256 ddc6c5330a955e15f5f6d1421a8313a8a6461143af0dc263268c441cfbe36b3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for novelai_image_mcp-0.3.0.tar.gz:

Publisher: release.yml on xinvxueyuan/NovelAI-Image-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file novelai_image_mcp-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for novelai_image_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce8f579cadb71663831318b5d6a13d0ed6fd6cec6c4ccb417b7a4d6abee34c74
MD5 daeef85de4082cbf087cda84b7eaf218
BLAKE2b-256 7d4edfe4850a6cd5dcc02d4e6774ac48487a0c03089891337f76732b5e6e2689

See more details on using hashes here.

Provenance

The following attestation bundles were made for novelai_image_mcp-0.3.0-py3-none-any.whl:

Publisher: release.yml on xinvxueyuan/NovelAI-Image-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page