Repository avatar
AI Tools
v1.0.0
active

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.

Protocol Tools Models Auth License

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Español · Português · Deutsch


Remote MCP Endpoint (Streamable HTTP): https://api.kusa.pics/api/go/mcp

Prefer interactive one-click setup tabs & live model pricing? Visit kusart.com/mcp (日本語).

Table of Contents

  1. Core Capabilities & Model Matrix
  2. Authentication & How to Get an API Key
  3. Quick Connect by AI Model & Client
  4. How to Use: Workflow & Prompt Examples
  5. Complete Tool Reference (18 Tools)
  6. Discovery Endpoints & Ecosystem
  7. 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 in Kusa-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_task first to resolve defaults, recall your last-used OAuth settings, and quote exact credits before create_task charges 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.

CategoryModelSlugHighlights
ImageKusa-Animakusa-animaAnime illustration, 303 art styles, and custom/featured character LoRAs
ImageKusa-XLkusa-xlClassic anime illustration, 159 art styles, and image-to-image
ImageNiji Journey v7kusa-nijiHigh-aesthetic anime illustrations, 4 images per run, style references
ImageKusa-Mixkusa-mixAll-purpose image generation & editing
ImageGPT Imagekusa-canvasCrisp lettering for posters, layouts, character cards, and UI artwork
ImageKusa-Easykusa-easyWeighted style blending, hand-painted aesthetic, natural-language prompts
ImageKusa-Krea2kusa-krea2Soft, painterly illustration from natural-language descriptions
ImageNano Bananakusa-flashFast image generation, editing, and character merch transformations
ImageNano Banana Proimage-proHigh-precision flagship image generation & complex editing
VideoSeedance 2.0kusa-videoImage, video, and audio reference-driven video generation with audio output
VideoMiniMax H3kusa-motionExpressive character motion with synchronized audio
VideoKusa-Dancekusa-danceCharacter dance & motion transfer (720p / 1080p; requires OAuth sign-in)
VideoKusa-Unlimitedkusa-unlimitedSpecialized image-to-video with first- and last-frame control
Edit / UtilityOC Editoroc-editorEdit outfit, pose, background, or expression while keeping character identity
Edit / UtilityEmoji Workshopemoji-workshopGenerate expression stickers from a character image + 1–3 emojis
Edit / UtilityInpaintinpaintLocalized repainting using an interactive brush mask (pick_inpaint_area)
Edit / UtilityUpscaleupscaleEnlarge 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:

FeatureMethod A: OAuth 2.1 Sign-In (Recommended)Method B: KusArt API Key (X-API-Key)
SetupPaste URL → sign in via browser (PKCE + DCR)Send X-API-Key: <YOUR_KUSART_API_KEY> header
Best ForClaude, Cursor, Codex, Gemini CLI, personal creationGrok API, DeepSeek clients, Gemini/Claude scripts, CI, team automation
PricingYour account / member pricingStandard API list pricing (dedicated quota pool or account credits)
Spending ControlsPer-task & daily caps at Connected AppsManage, disable, or rotate keys at API Keys
Personal Library & DanceUnlocks pick_my_image, personal LoRAs, kusa-dance, free enhance_promptPublic LoRAs & models (enhance_prompt: 1 credit; pick_my_image & kusa-dance require OAuth)

Step-by-Step: How to Get a KusArt API Key

  1. Sign in to KusArt: Go to https://kusart.com and sign in (or create an account).
  2. Open the API Keys Console: Navigate to https://kusart.com/api-for-business/keys (or open API Portal → API Keys).
  3. Create a New Key: Click Create API Key, enter a recognizable label (for example mcp-gemini or mcp-deepseek), and submit.
  4. 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"
    
  5. Pass via X-API-Key Header: Configure your MCP client or API call with header X-API-Key: <YOUR_KUSART_API_KEY> (not Authorization: Bearer). You can check remaining credits anytime via get_balance or 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 / ClientTransportRecommended AuthJump
Claude (Web, Desktop, Claude Code)Native Streamable HTTPOAuth 2.1 or X-API-KeyExpand below
ChatGPT & OpenAI CodexNative Streamable HTTP / Responses APIOAuth 2.1 or X-API-KeyExpand below
Gemini (Gemini CLI / Antigravity)Native Streamable HTTP (httpUrl)OAuth 2.1 or X-API-KeyExpand below
DeepSeek (Cherry Studio / Cline / Claude Code)Streamable HTTP via MCP ClientX-API-KeyExpand below
Grok (xAI) (xAI Responses API / Clients)Native Remote MCP (type: "mcp")X-API-KeyExpand below
CursorNative Streamable HTTPOAuth 2.1 or X-API-KeyExpand below
VS Code (Copilot) & WindsurfNative Streamable HTTPOAuth 2.1 or X-API-KeyExpand below
Any stdio-only MCP Clientmcp-remote bridgeX-API-Key or OAuthExpand 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

  1. Open Settings → Connectors → Add custom connector.
  2. Set the server URL to https://api.kusa.pics/api/go/mcp.
  3. 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)

  1. Open Settings → Apps & Connectors → Create / Add MCP Server.
  2. Enter https://api.kusa.pics/api/go/mcp and 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 (not url) 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

  1. Select your DeepSeek model (deepseek-chat or deepseek-reasoner) as the chat provider.
  2. Go to Settings → MCP Servers → Add Server.
  3. 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

  1. 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
  2. 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, then confirm=true)
  3. 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
  4. 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)
  5. Check Remaining Balance & OAuth Spending Caps

    "Check my KusArt credit balance and today's OAuth spending limit."

    • Calls: get_balance

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)

ToolPurposeAuth
list_modelsList all active KusArt image & video models with slugs, summaries, and starting pricesOAuth / API Key
get_modelFetch full parameter schema, version list, price tiers, caveats, and example payload for one modelOAuth / API Key
list_stylesSearch and filter preset art styles for kusa-anima, kusa-xl, kusa-easy, or kusa-nijiOAuth / API Key
prepare_taskFree pre-flight check: recommends models, loads last-used OAuth settings, quotes exact credits, flags missing paramsOAuth / API Key
get_balanceQuery remaining credits plus OAuth daily limit, today's spend, and per-task capOAuth / API Key

5.2 Visual Pickers & Prompt Assistance

ToolPurposeAuth & Cost
pick_styleInteractive style gallery (or numbered preview sheet) for style-capable modelsOAuth / API Key · Free
pick_loraBrowse personal LoRAs (OAuth) and featured kusa-anima LoRAs with auto trigger wordsOAuth / API Key · Free
pick_templatePick tested prompt templates with covers for kusa-video, kusa-motion, kusa-flash, image-proOAuth / API Key · Free
pick_dance_templateBrowse dance/motion video templates with video previews for kusa-danceOAuth / API Key · Free
pick_my_imagePick from your own recent KusArt creations for reference, editing, stickers, or upscalingOAuth only · Free
pick_inpaint_areaInteractive brush canvas to paint the exact mask region for inpaintOAuth / API Key · Free
enhance_promptExpand a short idea (any language) into rich Danbooru-style tags for kusa-anima / kusa-xl / kusa-easyOAuth (Free) / API Key (1 credit)

5.3 Generation, Comparison & Media Upload

ToolPurposeAuth & Cost
create_taskSubmit an image, edit, sticker, upscale, or video generation task using confirmed parametersOAuth / API Key (kusa-dance OAuth only) · Billable
compare_modelsRun 2–4 models side by side at their lowest tier on the same prompt (quotes before charging)OAuth / API Key · Billable
upload_imageUpload a local image (JPG/PNG/WebP/GIF, base64, up to 10 MB) to obtain a public URLOAuth / API Key · Free
upload_mediaUpload 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

ToolPurposeAnnotations
get_taskPoll progress, retrieve full-resolution image/video URLs, preview thumbnails, and suggested next_stepsRead-only · Free
cancel_taskCancel a pending or running generation taskDestructive · Idempotent

6. Discovery Endpoints & Ecosystem

ResourceURL
MCP Streamable HTTP Endpointhttps://api.kusa.pics/api/go/mcp
Interactive Setup & Live Model Cataloghttps://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 Indexhttps://kusart.com/llms.txt
API Keys Consolehttps://kusart.com/api-for-business/keys
OAuth Connected Apps & Limitshttps://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_task and compare_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), and billing:read (view balance and spending caps). It cannot change your password or manage other OAuth grants.
  • Why does kusa-dance or pick_my_image ask 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_image and upload_media accept 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

MIT

No installation packages available.