NovelAI over MCP: Claude Code, Cursor and VS Code
The AniworldAI MCP server gives agents NovelAI tools: draw an image, check a job, get the file or a link. It connects with a URL and a key in a header, the same key as for the OpenAI SDK and SillyTavern.
No card needed: 3 NovelAI images and 3 on Qwen-Image and FLUX, valid 7 days. The key appears here and in Telegram. API documentation (Swagger)
URL and authorization
https://novelai.api.aniworldai.org/mcp - Transport: Streamable HTTP.
- Authorization — the
Authorization: Bearer YOUR_KEYheader, the key without “api:”. - You need a client that lets you set a header. The server doesn’t support OAuth sign-in yet, so claude.ai and ChatGPT connectors, which require OAuth, won’t connect.
Claude Code
claude mcp add --transport http novelai https://novelai.api.aniworldai.org/mcp --header "Authorization: Bearer YOUR_KEY" By default the server is visible only to you and only in the current project; add --scope user for all projects. Don’t put the key into a shared project .mcp.json: everyone with the repository would see it.
Cursor
The ~/.cursor/mcp.json file (for all projects) or .cursor/mcp.json in a project:
{
"mcpServers": {
"novelai": {
"url": "https://novelai.api.aniworldai.org/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
} To keep the key out of the file, write "Bearer ${env:NOVELAI_KEY}" and set the NOVELAI_KEY environment variable.
VS Code
The .vscode/mcp.json file in a project. VS Code asks for the key when the server starts, so it doesn’t end up in the file:
{
"servers": {
"novelai": {
"type": "http",
"url": "https://novelai.api.aniworldai.org/mcp",
"headers": {
"Authorization": "Bearer ${input:novelai-key}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "novelai-key",
"description": "NovelAI API key",
"password": true
}
]
} Tools
generate_image: draw an image from a prompt;get_job: job status;get_image: the finished image as PNG;get_image_link: a temporary link to the image;cancel_job: cancel a job before it is sent to NovelAI;get_account: remaining quota, images per day on your plan, how many are used and when the whole limit comes back;get_models: the model list.
Check without a client
MCP Inspector in command-line mode lists the tools:
npx @modelcontextprotocol/inspector --cli https://novelai.api.aniworldai.org/mcp --transport http --header "Authorization: Bearer YOUR_KEY" --method tools/list FAQ
Does it work in claude.ai or ChatGPT?
Not yet: their connectors require OAuth sign-in, and our server takes the key in a header. Connect from Claude Code, Cursor, VS Code and other clients that let you set a header.
Is it the same key as for SillyTavern?
Yes, one key for every format. In MCP it goes into the Authorization: Bearer header without the api: prefix.
How does the agent get the image?
generate_image creates a job; the agent fetches the finished image as a PNG file (get_image) or a temporary link (get_image_link).
Every use case, step by step
NovelAI API: Python, JavaScript and curl examples
For those who write code: URLs, examples in Python, JavaScript and curl, and the docs.
NovelAI in SillyTavern: setup with screenshots
Standard method and sillyimages: separate instructions, screenshots and copyable settings.
NovelAI in TAVO
TAVO’s built-in generator: API URL, key, models, your own style, image by link for presets and Smart expand.
NovelAI API pricing
Plus, Duke and Emperor for 30 days: how many NovelAI, Qwen-Image and FLUX images each includes, renewal and plan changes.
NovelAI from Russia: pay by SBP, no VPN
Pay by SBP, crypto or Telegram Stars, works without a VPN, no NovelAI account needed.
Characters’ look from avatars
The “Images by Not_Found” plugin for TAVO: how to take the characters’ look from avatars, one model and five steps.
Images in TAVO: the fastest way
The fastest way: NovelAI images in TAVO in nine steps, with screenshots and arrows.
Setup help
Answer one to three questions and get the guide for your case.
TAVO preset: an image in every reply
A preset in one click: the text model inserts an image into every reply itself, with no plugins.
NovelAI images in your roleplay chats
TAVO and SillyTavern. No VPN and no NovelAI account. Three images are free.