
kusart
io.github.Kazama-Inc/kusart
Remote MCP server for anime art, OCs, style pickers, inpainting, upscaling & anime video.
Documentation
KusArt MCP Server
Official Remote Model Context Protocol (MCP) Server for KusArt
Generate anime illustrations, original characters (OCs), stickers, localized inpainting edits, 4× upscales, and AI anime videos directly inside Claude, ChatGPT / Codex, Gemini, DeepSeek, Grok, Cursor, VS Code, and Windsurf — with zero local GPU or model installation.
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Español · Português · Deutsch
Remote MCP Endpoint (Streamable HTTP):
https://api.kusa.pics/api/go/mcpPrefer interactive one-click setup tabs & live model pricing? Visit kusart.com/mcp (日本語).
Table of Contents
- Core Capabilities & Model Matrix
- Authentication & How to Get an API Key
- Quick Connect by AI Model & Client
- How to Use: Workflow & Prompt Examples
- Complete Tool Reference (18 Tools)
- Discovery Endpoints & Ecosystem
- Security, Spending Controls & FAQ
1. Core Capabilities & Model Matrix
KusArt MCP is built for complete anime & illustration production workflows — not a bare text-to-image wrapper:
- Anime & Illustration Generation (9 Models): Hundreds of curated anime art styles (303 styles in
Kusa-Anima, 159 styles inKusa-XL), personal & community character/style LoRAs, high-aesthetic illustration (Niji Journey v7), weighted style blending (Kusa-Easy), painterly illustration (Kusa-Krea2), crisp poster/UI typography (GPT Image), and fast/flagship editing (Nano Banana/Nano Banana Pro/Kusa-Mix). - AI Video & Character Animation (4 Models): Turn characters and illustrations into fluid anime video with audio (
Seedance 2.0,MiniMax H3), drive characters with dance/motion templates at 720p/1080p (Kusa-Dance), or control first- and last-frame transitions (Kusa-Unlimited). - Character Editing, Stickers, Inpainting & 4× Upscale (4 Models): Change an OC's outfit, pose, expression, or background while preserving identity (
OC Editor), convert any character into 1–3 expression stickers (Emoji Workshop), repaint only brush-masked regions (Inpaint), or enlarge images up to 4× for print (Upscale). - Interactive Visual Pickers Inside Chat: On MCP UI-capable hosts, KusArt renders clickable style galleries, LoRA pickers, video & dance template browsers, your personal KusArt gallery, a brush mask painter for inpainting, and side-by-side multi-model comparisons directly in chat. Text-only hosts automatically receive numbered preview sheets.
- Cost-Safe Pre-Quoting: Every paid workflow calls free
prepare_taskfirst to resolve defaults, recall your last-used OAuth settings, and quote exact credits beforecreate_taskcharges anything.
Live Model Catalog (17 Models)
Query list_models or visit kusart.com/api-for-business/models for live versions, parameter schemas, and real-time credit tiers.
| Category | Model | Slug | Highlights |
|---|---|---|---|
| Image | Kusa-Anima | kusa-anima | Anime illustration, 303 art styles, and custom/featured character LoRAs |
| Image | Kusa-XL | kusa-xl | Classic anime illustration, 159 art styles, and image-to-image |
| Image | Niji Journey v7 | kusa-niji | High-aesthetic anime illustrations, 4 images per run, style references |
| Image | Kusa-Mix | kusa-mix | All-purpose image generation & editing |
| Image | GPT Image | kusa-canvas | Crisp lettering for posters, layouts, character cards, and UI artwork |
| Image | Kusa-Easy | kusa-easy | Weighted style blending, hand-painted aesthetic, natural-language prompts |
| Image | Kusa-Krea2 | kusa-krea2 | Soft, painterly illustration from natural-language descriptions |
| Image | Nano Banana | kusa-flash | Fast image generation, editing, and character merch transformations |
| Image | Nano Banana Pro | image-pro | High-precision flagship image generation & complex editing |
| Video | Seedance 2.0 | kusa-video | Image, video, and audio reference-driven video generation with audio output |
| Video | MiniMax H3 | kusa-motion | Expressive character motion with synchronized audio |
| Video | Kusa-Dance | kusa-dance | Character dance & motion transfer (720p / 1080p; requires OAuth sign-in) |
| Video | Kusa-Unlimited | kusa-unlimited | Specialized image-to-video with first- and last-frame control |
| Edit / Utility | OC Editor | oc-editor | Edit outfit, pose, background, or expression while keeping character identity |
| Edit / Utility | Emoji Workshop | emoji-workshop | Generate expression stickers from a character image + 1–3 emojis |
| Edit / Utility | Inpaint | inpaint | Localized repainting using an interactive brush mask (pick_inpaint_area) |
| Edit / Utility | Upscale | upscale | Enlarge images up to 4× for print, wallpapers, and fine crops |
2. Authentication & How to Get an API Key
KusArt MCP supports two authentication modes — choose whichever fits your client:
| Feature | Method A: OAuth 2.1 Sign-In (Recommended) | Method B: KusArt API Key (X-API-Key) |
|---|---|---|
| Setup | Paste URL → sign in via browser (PKCE + DCR) | Send X-API-Key: <YOUR_KUSART_API_KEY> header |
| Best For | Claude, Cursor, Codex, Gemini CLI, personal creation | Grok API, DeepSeek clients, Gemini/Claude scripts, CI, team automation |
| Pricing | Your account / member pricing | Standard API list pricing (dedicated quota pool or account credits) |
| Spending Controls | Per-task & daily caps at Connected Apps | Manage, disable, or rotate keys at API Keys |
| Personal Library & Dance | Unlocks pick_my_image, personal LoRAs, kusa-dance, free enhance_prompt | Public LoRAs & models (enhance_prompt: 1 credit; pick_my_image & kusa-dance require OAuth) |
Step-by-Step: How to Get a KusArt API Key
- Sign in to KusArt: Go to https://kusart.com and sign in (or create an account).
- Open the API Keys Console: Navigate to https://kusart.com/api-for-business/keys (or open API Portal → API Keys).
- Create a New Key: Click Create API Key, enter a recognizable label (for example
mcp-geminiormcp-deepseek), and submit. - Copy & Save Immediately: Your full API key is displayed once upon creation for security. Copy it immediately and store it in an environment variable:
export KUSART_API_KEY="your_api_key_here" - Pass via
X-API-KeyHeader: Configure your MCP client or API call with headerX-API-Key: <YOUR_KUSART_API_KEY>(notAuthorization: Bearer). You can check remaining credits anytime viaget_balanceor revoke/rotate keys at kusart.com/api-for-business/keys.
Security tip: Never hardcode your API key in public repositories or share screenshots containing it.
3. Quick Connect by AI Model & Client
Click any client panel below to expand its ready-to-paste configuration. (GitHub Markdown does not execute JavaScript tabs; for interactive one-click tabs, use kusart.com/mcp.)
| AI Model / Client | Transport | Recommended Auth | Jump |
|---|---|---|---|
| Claude (Web, Desktop, Claude Code) | Native Streamable HTTP | OAuth 2.1 or X-API-Key | Expand below |
| ChatGPT & OpenAI Codex | Native Streamable HTTP / Responses API | OAuth 2.1 or X-API-Key | Expand below |
| Gemini (Gemini CLI / Antigravity) | Native Streamable HTTP (httpUrl) | OAuth 2.1 or X-API-Key | Expand below |
| DeepSeek (Cherry Studio / Cline / Claude Code) | Streamable HTTP via MCP Client | X-API-Key | Expand below |
| Grok (xAI) (xAI Responses API / Clients) | Native Remote MCP (type: "mcp") | X-API-Key | Expand below |
| Cursor | Native Streamable HTTP | OAuth 2.1 or X-API-Key | Expand below |
| VS Code (Copilot) & Windsurf | Native Streamable HTTP | OAuth 2.1 or X-API-Key | Expand below |
| Any stdio-only MCP Client | mcp-remote bridge | X-API-Key or OAuth | Expand below |
🟣 Claude — Claude Web, Claude Desktop & Claude Code
Option 1: Claude Code CLI (One Command)
# OAuth 2.1 sign-in (recommended, no API key required)
claude mcp add --transport http kusart https://api.kusa.pics/api/go/mcp
# Or with a KusArt API key
claude mcp add --transport http kusart https://api.kusa.pics/api/go/mcp \
--header "X-API-Key: ${KUSART_API_KEY}"
Run /mcp inside Claude Code to verify connection or sign in.
Option 2: Claude Web & Claude Desktop
- Open Settings → Connectors → Add custom connector.
- Set the server URL to
https://api.kusa.pics/api/go/mcp. - Authorize with your KusArt account via OAuth 2.1 and optionally set per-task / daily credit caps.
🟢 ChatGPT & OpenAI Codex
Option 1: OpenAI Codex CLI
codex mcp add kusart --url https://api.kusa.pics/api/go/mcp
Or add to ~/.codex/config.toml (with API key header):
[mcp_servers.kusart]
url = "https://api.kusa.pics/api/go/mcp"
http_headers = { "X-API-Key" = "YOUR_KUSART_API_KEY" }
Option 2: ChatGPT Web (Connectors / Apps)
- Open Settings → Apps & Connectors → Create / Add MCP Server.
- Enter
https://api.kusa.pics/api/go/mcpand sign in via OAuth 2.1.
Option 3: OpenAI Responses API (Remote MCP Tool)
{
"model": "gpt-5",
"input": "List KusArt anime models and quote a 1:1 illustration in Kusa-Anima.",
"tools": [
{
"type": "mcp",
"server_label": "kusart",
"server_url": "https://api.kusa.pics/api/go/mcp",
"headers": {
"X-API-Key": "YOUR_KUSART_API_KEY"
}
}
]
}
🔵 Gemini — Gemini CLI & Google MCP Clients
Option 1: Gemini CLI (One Command)
# OAuth / default Streamable HTTP
gemini mcp add --transport http kusart https://api.kusa.pics/api/go/mcp
# Or with KusArt API key (saved globally via -s user)
gemini mcp add --transport http -s user kusart https://api.kusa.pics/api/go/mcp \
--header "X-API-Key: ${KUSART_API_KEY}"
Option 2: Manual ~/.gemini/settings.json (or .gemini/settings.json)
Important: Gemini CLI uses
httpUrl(noturl) for Streamable HTTP MCP servers.
{
"mcpServers": {
"kusart": {
"httpUrl": "https://api.kusa.pics/api/go/mcp",
"headers": {
"X-API-Key": "${KUSART_API_KEY}"
}
}
}
}
Restart Gemini CLI and type /mcp to confirm kusart is connected.
🐳 DeepSeek — Cherry Studio, Cline / Roo Code & Claude Code + DeepSeek API
DeepSeek's web chat does not natively host remote MCP connectors yet, so connect DeepSeek models to KusArt MCP through any MCP-enabled client using your DeepSeek API key + KusArt API key:
Option 1: Cherry Studio / ChatWise / Open WebUI
- Select your DeepSeek model (
deepseek-chatordeepseek-reasoner) as the chat provider. - Go to Settings → MCP Servers → Add Server.
- Choose Type:
Streamable HTTP, URL:https://api.kusa.pics/api/go/mcp, and add header:X-API-Key: YOUR_KUSART_API_KEY
Option 2: Cline / Roo Code (VS Code with DeepSeek Provider)
Add to your MCP settings JSON:
{
"mcpServers": {
"kusart": {
"type": "streamableHttp",
"url": "https://api.kusa.pics/api/go/mcp",
"headers": {
"X-API-Key": "YOUR_KUSART_API_KEY"
}
}
}
}
Option 3: Claude Code Powered by DeepSeek's Anthropic-Compatible Endpoint
export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="${DEEPSEEK_API_KEY}"
export ANTHROPIC_MODEL="deepseek-chat"
claude mcp add --transport http kusart https://api.kusa.pics/api/go/mcp \
--header "X-API-Key: ${KUSART_API_KEY}"
⚫ Grok (xAI) — xAI Responses API Remote MCP & MCP Clients
Option 1: xAI API Native Remote MCP Tool
xAI's Responses API supports Remote MCP servers natively inside the tools array:
{
"model": "grok-4",
"input": "Use KusArt MCP to list available anime art styles for kusa-anima.",
"tools": [
{
"type": "mcp",
"server_label": "kusart",
"server_url": "https://api.kusa.pics/api/go/mcp",
"headers": {
"X-API-Key": "YOUR_KUSART_API_KEY"
}
}
]
}
Option 2: Grok inside Cursor, Cline, or Cherry Studio
Select Grok as your LLM provider in Cursor / Cline / Cherry Studio and configure the Streamable HTTP server:
{
"mcpServers": {
"kusart": {
"url": "https://api.kusa.pics/api/go/mcp",
"headers": {
"X-API-Key": "YOUR_KUSART_API_KEY"
}
}
}
}
⚡ Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"kusart": {
"url": "https://api.kusa.pics/api/go/mcp"
}
}
}
On first tool call, Cursor opens your browser for OAuth 2.1 sign-in. To authenticate with an API key instead, add "headers": { "X-API-Key": "YOUR_KUSART_API_KEY" }.
💻 VS Code (GitHub Copilot) & Windsurf
VS Code (.vscode/mcp.json)
{
"servers": {
"kusart": {
"type": "http",
"url": "https://api.kusa.pics/api/go/mcp",
"headers": {
"X-API-Key": "${env:KUSART_API_KEY}"
}
}
}
}
(Omit headers if you prefer OAuth 2.1 browser sign-in.)
Windsurf (~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"kusart": {
"serverUrl": "https://api.kusa.pics/api/go/mcp",
"headers": {
"X-API-Key": "YOUR_KUSART_API_KEY"
}
}
}
}
🔌 Generic / stdio-only MCP Clients (via mcp-remote)
If your client only supports local stdio MCP servers, bridge cleanly with mcp-remote (requires Node.js 18+):
{
"mcpServers": {
"kusart": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.kusa.pics/api/go/mcp",
"--header",
"X-API-Key:${KUSART_API_KEY}"
]
}
}
}
(Remove --header and its value to trigger OAuth 2.1 browser login via mcp-remote.)
4. How to Use: Workflow & Prompt Examples
Once connected, just talk to your AI assistant in natural language. KusArt MCP automatically chains discovery, visual picking, quoting, generation, and polling:
User request
└─▶ pick_style / pick_lora / pick_template (Free · choose look visually)
└─▶ prepare_task (Free · resolve params & exact credit quote)
└─▶ User confirms quote
└─▶ create_task (Charges quoted credits; image results return in ~25s)
└─▶ get_task (Poll full-resolution image/video URLs + next steps)
Real Prompts You Can Try Immediately
-
Anime Illustration with Interactive Style Picker
"Let me pick a soft watercolor anime style in Kusa-Anima, quote a portrait of a silver-haired shrine maiden holding a lantern in the rain, and generate it once I confirm."
- Calls:
pick_style→enhance_prompt→prepare_task→create_task→get_task
- Calls:
-
Compare Multiple Models Side by Side
"I'm not sure which model looks best for a cyberpunk catgirl café poster. Compare 3 suitable KusArt models side by side — show me the total price first."
- Calls:
compare_models(quote first, thenconfirm=true)
- Calls:
-
Animate a Character into Video or Dance
"Pick my latest character image from KusArt, let me browse dance templates, and animate her dancing in 1080p."
- Calls:
pick_my_image→pick_dance_template→prepare_task→create_task→get_task
- Calls:
-
Edit Outfit, Make Stickers, Inpaint & 4× Upscale
"Take this character image URL, change her outfit into a winter coat with OC Editor, turn the result into 3 cute expression stickers with Emoji Workshop, and upscale the main illustration 4× for print."
- Calls:
prepare_task(oc-editor) →create_task→prepare_task(emoji-workshop) →prepare_task(upscale)
- Calls:
-
Check Remaining Balance & OAuth Spending Caps
"Check my KusArt credit balance and today's OAuth spending limit."
- Calls:
get_balance
- Calls:
5. Complete Tool Reference (18 Tools)
All 18 tools declare complete MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) so MCP hosts distinguish safe read-only queries from billable or destructive actions.
5.1 Discovery, Quoting & Account Balance (Read-only · Free)
| Tool | Purpose | Auth |
|---|---|---|
list_models | List all active KusArt image & video models with slugs, summaries, and starting prices | OAuth / API Key |
get_model | Fetch full parameter schema, version list, price tiers, caveats, and example payload for one model | OAuth / API Key |
list_styles | Search and filter preset art styles for kusa-anima, kusa-xl, kusa-easy, or kusa-niji | OAuth / API Key |
prepare_task | Free pre-flight check: recommends models, loads last-used OAuth settings, quotes exact credits, flags missing params | OAuth / API Key |
get_balance | Query remaining credits plus OAuth daily limit, today's spend, and per-task cap | OAuth / API Key |
5.2 Visual Pickers & Prompt Assistance
| Tool | Purpose | Auth & Cost |
|---|---|---|
pick_style | Interactive style gallery (or numbered preview sheet) for style-capable models | OAuth / API Key · Free |
pick_lora | Browse personal LoRAs (OAuth) and featured kusa-anima LoRAs with auto trigger words | OAuth / API Key · Free |
pick_template | Pick tested prompt templates with covers for kusa-video, kusa-motion, kusa-flash, image-pro | OAuth / API Key · Free |
pick_dance_template | Browse dance/motion video templates with video previews for kusa-dance | OAuth / API Key · Free |
pick_my_image | Pick from your own recent KusArt creations for reference, editing, stickers, or upscaling | OAuth only · Free |
pick_inpaint_area | Interactive brush canvas to paint the exact mask region for inpaint | OAuth / API Key · Free |
enhance_prompt | Expand a short idea (any language) into rich Danbooru-style tags for kusa-anima / kusa-xl / kusa-easy | OAuth (Free) / API Key (1 credit) |
5.3 Generation, Comparison & Media Upload
| Tool | Purpose | Auth & Cost |
|---|---|---|
create_task | Submit an image, edit, sticker, upscale, or video generation task using confirmed parameters | OAuth / API Key (kusa-dance OAuth only) · Billable |
compare_models | Run 2–4 models side by side at their lowest tier on the same prompt (quotes before charging) | OAuth / API Key · Billable |
upload_image | Upload a local image (JPG/PNG/WebP/GIF, base64, up to 10 MB) to obtain a public URL | OAuth / API Key · Free |
upload_media | Upload local reference video (MP4/MOV) or audio (MP3/WAV/M4A/AAC/OGG/FLAC, up to 10 MB) | OAuth / API Key · Free |
5.4 Task Lifecycle Control
| Tool | Purpose | Annotations |
|---|---|---|
get_task | Poll progress, retrieve full-resolution image/video URLs, preview thumbnails, and suggested next_steps | Read-only · Free |
cancel_task | Cancel a pending or running generation task | Destructive · Idempotent |
6. Discovery Endpoints & Ecosystem
| Resource | URL |
|---|---|
| MCP Streamable HTTP Endpoint | https://api.kusa.pics/api/go/mcp |
| Interactive Setup & Live Model Catalog | https://kusart.com/mcp · 日本語 |
| SEP-2127 Server Card (Both Domains) | https://kusart.com/.well-known/mcp.json · https://api.kusa.pics/.well-known/mcp.json |
| OAuth 2.1 Protected Resource (RFC 9728) | https://api.kusa.pics/.well-known/oauth-protected-resource/api/go/mcp |
| OAuth 2.1 Authorization Server (RFC 8414) | https://api.kusa.pics/.well-known/oauth-authorization-server |
| LLMs Full Site & API Index | https://kusart.com/llms.txt |
| API Keys Console | https://kusart.com/api-for-business/keys |
| OAuth Connected Apps & Limits | https://kusart.com/account/connected-apps |
| KusArt Agent Skills (REST CLI Pack) | Kazama-Inc/kusart-skills |
7. Security, Spending Controls & FAQ
- Will an AI assistant accidentally drain my credits?
No.
prepare_taskandcompare_models(initial call) are designed to quote exact credits before execution. With OAuth 2.1, you can also set hard per-task and daily spending caps during authorization and revoke access anytime at kusart.com/account/connected-apps. - What permissions does OAuth 2.1 request?
Three scoped permissions only:
tasks:create(run/cancel tasks),tasks:read(poll results and browse your works), andbilling:read(view balance and spending caps). It cannot change your password or manage other OAuth grants. - Why does
kusa-danceorpick_my_imageask me to sign in with OAuth? Those tools access your personal KusArt asset library or personal credit wallet, which requires user-scoped OAuth 2.1 rather than a B2B API key. - What is the file upload limit?
upload_imageandupload_mediaaccept base64 payloads up to 10 MB. For larger files, pass any public HTTPS image/video/audio URL directly in task parameters. - Need help or enterprise quota?
Visit kusart.com/api-for-business or contact
support@kusart.com. Terms: kusart.com/terms · Privacy: kusart.com/privacy.
License
No installation packages available.