# NovelAI Image MCP

Connects NovelAI image generation to an AI agent through MCP. Use it to create, edit, inpaint, and upscale images from an agent session.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 12
- Author: xinvxueyuan
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/xinvxueyuan/NovelAI-Image-MCP
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/novelai-image-mcp

## What it does

NovelAI Image MCP exposes NovelAI image operations as MCP tools. An agent can create pictures from text, transform an existing image, fill selected areas, and upscale output by 4×. The server also includes Director actions for line art, emotion, and background removal, plus ControlNet annotation, tag suggestions, and vibe encoding.

Results arrive as base64 image content and as PNG files saved on disk. Local agents can use stdio; remote or multi-client setups can use HTTP with optional bearer-token protection. Image generation requires `NOVELAI_TOKEN`, or `NOVELAI_USERNAME` together with `NOVELAI_PASSWORD`.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `NOVELAI_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add novelai-image-mcp -e NOVELAI_TOKEN=<NOVELAI_TOKEN> -- uvx novelai-image-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from novelai-image-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add novelai-image-mcp --env NOVELAI_TOKEN=<NOVELAI_TOKEN> -- uvx novelai-image-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from novelai-image-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "novelai-image-mcp": {
            "command": "uvx",
            "args": [
                "novelai-image-mcp"
            ],
            "env": {
                "NOVELAI_TOKEN": "<NOVELAI_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from novelai-image-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "novelai-image-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "novelai-image-mcp"
            ],
            "env": {
                "NOVELAI_TOKEN": "<NOVELAI_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from novelai-image-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e NOVELAI_TOKEN=<NOVELAI_TOKEN> novelai-image-mcp uvx novelai-image-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from novelai-image-mcp <command>

## When to use it
- create an image from a text prompt
- transform an existing image with img2img
- fill a selected image area with inpaint
- upscale an image by 4×
- apply Director or ControlNet processing

## Example prompts
- Create a rainy night city image with soft lighting and a cinematic composition.
- Edit the existing image while keeping its composition, but replace the background with a snowy forest.
- Upscale this image by 4× and return the resulting PNG file.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [labelhead-artist-momentum](https://affpapa.org/en/nevibecode/mcp/labelhead-artist-momentum.md) — MCP server · ★ 107701
- [Agent Skills Search Server](https://affpapa.org/en/nevibecode/mcp/agent-skills-search-server.md) — MCP server · ★ 26673
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23283
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [PraisonAI](https://affpapa.org/en/nevibecode/mcp/praisonai.md) — MCP server · ★ 9298

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
