ZeroChan MCP
The ZeroChan MCP server provides read-only access to the Zerochan anime image board, allowing you to browse, search, and retrieve detailed metadata through an MCP-compatible AI assistant.
Browse the global feed (
zerochan_browse): Paginate through all Zerochan entries, sorted by newest (id) or most favorited (fav), with optional filters for time range, image dimensions (large,huge,landscape,portrait,square), or dominant colorSearch by tags (
zerochan_search): Find images using Zerochan's Title Case tag format (e.g.,Hatsune Miku), supporting multi-tag queries where results must match all provided tagsStrict mode: Restrict search results to entries where a specific tag is the primary subject (single-tag only)
Retrieve full entry metadata (
zerochan_get_entry): Get complete details for any post by numeric ID, including all tags, full/medium/small image URLs, source URL, dimensions, favorites count, and associated anime/manga/game categoriesFlexible output formats: Results returned as a readable Markdown table/card (default) or raw JSON for programmatic use
Pagination & filtering: All listing tools support up to 250 results per page across up to 100 pages, with dimension, color, and sort order controls
zerochan-mcp
A Python MCP server wrapping the read-only Zerochan anime image board API. Connect it to Claude Desktop, Cursor, or any MCP-compatible AI assistant to browse, search, and inspect one of the web's most comprehensively tagged anime image collections — directly from a conversation.
Built as a sister server to gelbooru-mcp.
✨ Features
Browse the global Zerochan feed — sort by newest or most-favorited, filter by dimensions or dominant color
Search by one or more tags simultaneously using Zerochan's natural Title Case format (
Hatsune Miku, nothatsune_miku)Strict mode — narrow results to entries where a specific tag is the primary subject, cutting group shots and incidental appearances
Full entry details — all tags, full/medium/small image URLs, source, dimensions, favorites, and anime/manga/game associations
Returns results as a clean Markdown table or raw JSON — your choice
Fully Pydantic-validated inputs with enum constraints and custom tag validators
Clear, actionable error messages for rate limits, auth failures, and timeouts
Related MCP server: Deepghs MCP
📦 Installation
Prerequisites
Python 3.10+
git
Quick Start
git clone https://github.com/citronlegacy/zerochan-mcp.git
cd zerochan-mcp
chmod +x setup.sh && ./setup.shOr without chmod:
bash setup.shManual Install
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt🔑 Authentication
Zerochan requires a valid username in every request's User-Agent header. Unauthenticated requests are blocked.
export ZEROCHAN_USERNAME="YourZerochanUsername"Your username is included in the User-Agent string as
zerochan-mcp - YourUsername, exactly as Zerochan's API requires. The server validates this on every call and returns a clear error message if it is missing — no silent failures.
▶️ Running the Server
# via the venv created by setup.sh:
.venv/bin/python server.py
# or with the venv activated:
source .venv/bin/activate
python server.py⚙️ Configuration
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"zerochan-mcp": {
"command": "/absolute/path/to/zerochan-mcp/.venv/bin/python",
"args": ["/absolute/path/to/zerochan-mcp/server.py"],
"env": {
"ZEROCHAN_USERNAME": "YourZerochanUsername"
}
}
}
}VS Code / Cursor / Other MCP Clients
Configure according to your client's documentation:
Command:
/absolute/path/to/zerochan-mcp/.venv/bin/pythonArgs:
/absolute/path/to/zerochan-mcp/server.pyTransport: stdio
Env:
ZEROCHAN_USERNAME=YourZerochanUsername
Test with MCP Inspector
npx @modelcontextprotocol/inspector .venv/bin/python server.py💡 Usage Examples
Browse the latest anime art
"Show me the 10 most recent images on Zerochan."
The LLM calls zerochan_browse with limit: 10, sort: "id" and returns a paginated Markdown table of the newest uploads — IDs, tags, dimensions, and direct links.
Find the all-time most favorited images
"What are the most popular images on Zerochan of all time?"
The LLM calls zerochan_browse with sort: "fav", time_range: "0" and returns the highest-favorited entries globally.
Search for a character
"Find me portrait-mode images of Hatsune Miku."
The LLM calls zerochan_search with tags: ["Hatsune Miku"], dimensions: "portrait". No tag normalization required — Zerochan's Title Case maps almost one-to-one with how people naturally write character names.
Multi-tag search — character + theme
"Show me Rem from Re:Zero with an umbrella."
The LLM calls zerochan_search with tags: ["Rem", "Umbrella"]. Zerochan joins them as /Rem,Umbrella?json internally, returning only images tagged with both simultaneously.
Strict mode — images where a character is the main subject
"I only want images where Hatsune Miku is the actual primary subject, not just tagged."
The LLM calls zerochan_search with tags: ["Hatsune Miku"], strict: true. This filters to entries where Hatsune Miku is the primary tag, removing group shots and background appearances.
Get full metadata for a specific post
"Give me all the details on Zerochan entry 3793685 — tags, source, full image URL."
The LLM calls zerochan_get_entry with entry_id: 3793685 and returns a complete metadata card: every tag, full/medium/small image URLs, source, dimensions, favorites, and associated anime/game/manga categories.
Raw JSON for downstream processing
"Search for Yotsuba images and give me the raw JSON."
The LLM calls zerochan_search with tags: ["Yotsuba"], response_format: "json" and returns the unprocessed Zerochan API payload ready for further processing.
🛠️ Available Tools
Tool | Description | Key Parameters |
| Browse the global Zerochan feed |
|
| Search entries by one or more tags |
|
| Get full metadata for a single entry by ID |
|
All tools accept response_format: "markdown" (default) or "json".
📖 Tools Reference
zerochan_browse
Browse all Zerochan entries with optional filtering and pagination. No tag required — queries the full global feed.
Parameters
Parameter | Type | Required | Default | Description |
| int | ❌ | 1 | Page number (starts at 1) |
| int | ❌ | 20 | Results per page (1–250) |
| enum | ❌ |
|
|
| enum | ❌ | — |
|
| enum | ❌ | — |
|
| str | ❌ | — | Dominant color name, e.g. |
| enum | ❌ |
|
|
Example response
### Zerochan Results from `Global Feed`
| ID | Tags | Dimensions | Favorites | Full Image |
|---|---|---|---|---|
| 4666171 | Female, Twin Tails, Flower, Hatsune Miku, Music (+33 more) | 1000×1500 | ? | View |zerochan_search
Search Zerochan entries by one or more tags. Tags use Zerochan's Title Case with spaces format.
Parameters
Parameter | Type | Required | Default | Description |
| list[str] | ✅ | — | One or more tags, e.g. |
| bool | ❌ | false | Restrict to entries where the first tag is the primary tag (single-tag only) |
| int | ❌ | 1 | Page number |
| int | ❌ | 20 | Results per page (1–250) |
| enum | ❌ |
|
|
| enum | ❌ | — |
|
| str | ❌ | — | Dominant color filter |
| enum | ❌ |
|
|
Tag format: Zerochan uses Title Case with spaces —
Hatsune Mikunothatsune_miku. Natural-language character names work verbatim in most cases.
Multi-tag:
tags: ["Hatsune Miku", "Flower"]→/Hatsune+Miku,Flower?json
Strict mode: Only works with a single tag. Silently ignored when multiple tags are provided.
zerochan_get_entry
Retrieve complete metadata for a single Zerochan post by its numeric ID.
Parameters
Parameter | Type | Required | Default | Description |
| int | ✅ | — | Numeric post ID, e.g. |
| enum | ❌ |
|
|
Example response (markdown)
## Zerochan Entry #3793685
**Primary Tag:** Hatsune Miku
**Dimensions:** 1748 × 2480
**Favorites:** 42
**Source:** https://...
**Tags (28):** Hatsune Miku, VOCALOID, Female, Twin Tails, ...
**Full Image:** https://static.zerochan.net/...
**Medium Preview:** https://static.zerochan.net/...Response schema (JSON)
{
"id": 3793685,
"primary": "Hatsune Miku",
"tags": ["Hatsune Miku", "VOCALOID", "Female", "..."],
"width": 1748,
"height": 2480,
"fav": 42,
"source": "https://...",
"full": "https://static.zerochan.net/...",
"medium": "https://static.zerochan.net/...",
"small": "https://static.zerochan.net/...",
"anime": "VOCALOID",
"manga": null,
"game": null
}🤖 Notes for LLMs
Tag format: Zerochan uses Title Case with spaces —
Hatsune Miku,Rem,Attack On Titan. Unlike Gelbooru/Danbooru, natural-language names map directly to Zerochan tags in most cases.Strict mode: Use it when the user asks specifically for images of a character, not just images featuring them. Only valid with a single tag.
Multi-tag search: Each entry must match all tags. Use for character + theme combos (
["Rem", "Rain"],["Naruto", "Ramen"]).Pagination:
zerochan_browseandzerochan_searchreturn up to 250 results per call. Usepageto paginate through up to 100 pages (20 000 entries) per tag.Rate limit: 60 requests/minute. Avoid tight loops; space calls when paginating deeply.
Entry IDs: Visible in Zerochan URLs (
zerochan.net/3793685). Pass them tozerochan_get_entryto resolve full metadata.
⚠️ Known Limitations
Rate limit: 60 requests/minute enforced server-side. Exceeding this may trigger a temporary ban.
Username required: Every request must carry a valid Zerochan username in the User-Agent. The server validates this and returns a clear error if missing.
Strict mode + multi-tag: Strict mode is silently ignored when more than one tag is provided — Zerochan API limitation.
No write access: Zerochan's public API is fully read-only. Uploading, favoriting, and commenting are not supported.
No tag autocomplete: Zerochan does not expose a tag search/autocomplete endpoint in the JSON API. Use the website for tag discovery when needed.
🐛 Troubleshooting
ZEROCHAN_USERNAME is not set
Add it to your client's
"env"block, or:export ZEROCHAN_USERNAME="YourUsername"
Error 403 — Access denied
Ensure your Zerochan username is correct and your account is in good standing.
Blank or missing User-Agent strings are rejected by Zerochan.
Error 429 — Rate limit
Wait 60 seconds and retry. Avoid paginating in rapid loops.
Error 404 — Not found
The tag or entry ID does not exist on Zerochan. Check spelling; entry IDs come from post URLs.
Strict mode returns fewer results than expected
By design — strict mode returns only entries where the tag is the primary classification. Use non-strict for broader results.
🤝 Contributing
Pull requests are welcome! If you find an API edge case not handled, a tag format inconsistency, or want to add a new filter, open an issue or PR.
Development Setup
git clone https://github.com/citronlegacy/zerochan-mcp.git
cd zerochan-mcp
bash setup.sh
source .venv/bin/activate📄 License
MIT License — see LICENSE for details.
🔗 Links
🌐 Zerochan
🗂️ MCP Registry
🎨 gelbooru-mcp — sister MCP server
Relation to MultiBoru MCP
This server is one piece of a planned MultiBoru federated image board MCP that will aggregate Gelbooru, Danbooru, and Zerochan queries in parallel with cross-site tag normalization.
Site | Max Tags | Tag Format | Auth |
Gelbooru | Many |
| Optional API key |
Danbooru | 2 (free) / 6 (Gold) |
| Optional |
Zerochan | Many |
| Username in User-Agent |
Available Tools
3 toolszerochan_browseARead-onlyIdempotent
Browse all Zerochan entries with optional filtering and pagination.
Queries the Zerochan global feed without any tag filter. Supports sorting by
recency or popularity, filtering by dimensions or color, and pagination.
Args:
params (BrowseAllInput): Input parameters including:
- username (str): Your Zerochan username for the User-Agent header (required)
- page (int): Page number (default: 1)
- limit (int): Results per page, 1–250 (default: 20)
- sort (SortOrder): 'id' for recent, 'fav' for popular (default: 'id')
- time_range (Optional[TimeRange]): '0' all-time, '1' last 7000, '2' last 15000
- dimensions (Optional[Dimensions]): Filter by image shape
- color (Optional[str]): Filter by dominant color name
- response_format (ResponseFormat): 'markdown' or 'json' (default: 'markdown')
Returns:
str: Paginated list of entries in the requested format.
Markdown: formatted table with ID, tags, dimensions, favorites, links.
JSON: raw API response with all fields.
Inputs: params (required). Returns: result
zerochan_get_entryARead-onlyIdempotent
Retrieve detailed information about a single Zerochan entry by its numeric ID.
Returns full metadata including all tags, image URLs (full/medium/small),
source, dimensions, favorites, and associated anime/manga/game categories.
Args:
params (GetEntryInput): Input parameters including:
- username (str): Your Zerochan username (required)
- entry_id (int): Numeric ID of the Zerochan post (e.g. 3793685)
- response_format (ResponseFormat): 'markdown' or 'json' (default: 'markdown')
Returns:
str: Detailed entry data in the requested format.
Markdown: formatted card with all metadata, tag list, and image URLs.
JSON: complete raw API response with all available fields.
Schema (JSON):
{
"id": int,
"primary": str, # Primary/main tag for this image
"tags": list[str], # All associated tags
"width": int,
"height": int,
"fav": int, # Favorite/popularity count
"source": str, # Original source URL if available
"full": str, # Direct URL to full resolution image
"medium": str, # Medium preview URL
"small": str, # Small thumbnail URL
"anime": str | null, # Associated anime title if any
"manga": str | null,
"game": str | null
}
Inputs: params (required). Returns: result
zerochan_searchARead-onlyIdempotent
Search Zerochan entries by one or more tags.
Supports single-tag, multi-tag, and strict-mode queries. Zerochan tag names
use Title Case with spaces (e.g. 'Hatsune Miku', not 'hatsune_miku').
Multi-tag example: tags=['Hatsune Miku', 'Flower'] → /Hatsune+Miku,Flower?json
Strict mode: tags=['Rem'] + strict=True → /Rem?json&strict (only entries where Rem is primary tag)
Note: Strict mode only works with a single tag. Passing multiple tags with strict=True
will ignore the strict flag.
Args:
params (SearchByTagInput): Input parameters including:
- username (str): Your Zerochan username (required)
- tags (list[str]): One or more tag names (Title Case preferred)
- strict (bool): If True and single tag, use strict mode (default: False)
- page (int): Page number (default: 1)
- limit (int): Results per page, 1–250 (default: 20)
- sort (SortOrder): 'id' for recent, 'fav' for popular (default: 'id')
- dimensions (Optional[Dimensions]): Filter by image shape
- color (Optional[str]): Filter by dominant color name
- response_format (ResponseFormat): 'markdown' or 'json' (default: 'markdown')
Returns:
str: Matching entries in the requested format.
Markdown: formatted table with ID, tags, dimensions, favorites, links.
JSON: raw API response with all available fields.
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose with no overlap: zerochan_browse retrieves the global feed, zerochan_get_entry fetches a single entry by ID, and zerochan_search finds entries by tags. The descriptions explicitly differentiate their use cases, making it impossible for an agent to confuse them.
All three tools follow a perfect verb_noun pattern with the prefix 'zerochan_' and consistent snake_case: zerochan_browse, zerochan_get_entry, and zerochan_search. The naming is predictable and uniform throughout the set.
Three tools is reasonable for a ZeroChan image browsing server, covering core operations (browse, get, search). However, it feels slightly thin as it lacks tools for user-specific actions like favorites or uploads, which might be expected in a full-featured image platform integration.
The toolset covers essential read operations for the ZeroChan domain: browsing, searching, and retrieving entries. Minor gaps exist, such as no tools for user authentication, managing favorites, or uploading content, but agents can still perform basic image discovery and viewing tasks effectively.
Maintenance
Related MCP Connectors
Remote MCP server for SeenThis AI Hub. Supports browsing, searching, and posting to AI boards.
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
MCP server for Flux AI image generation
Official MCP server for subfeed.app — the cloud for agents. 15+ tools for AI agents to register, build, and deploy other agents. Zero human required. Start here: subfeed.app/skill.md
Related MCP Servers
- AlicenseAqualityDmaintenanceA Python MCP server that wraps the Gelbooru API. Connect it to any MCP-compatible client (Claude Desktop, Cursor, etc.) to search posts, look up tags, and generate Stable Diffusion prompts from real character appearance data — all directly from your AI assistant.271MIT
- AlicenseAqualityDmaintenanceMCP server for the DeepGHS anime AI ecosystem. Dataset discovery, tag search, character dataset finder, and training pipeline code generation.81MIT
- AlicenseBqualityDmaintenanceMCP Server for interacting with the MyAnimeList API, allowing LLM clients to access and interact with anime, manga and more.154MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for searching and retrieving Creative-Commons-licensed images and audio from Openverse. Enables AI agents to query open media content.459 npmMIT