Deepghs MCP
The DeepGHS MCP server connects AI assistants to the DeepGHS anime AI ecosystem on HuggingFace, enabling dataset discovery, cross-platform tag lookup, character dataset finding, and training pipeline code generation.
Browse Datasets, Models & Spaces (
deepghs_list_datasets/models/spaces): Search and list all public DeepGHS datasets (Danbooru2024 with 8M+ images, Sankaku, Gelbooru, BangumiBase, site_tags, etc.), models (CCIP, WD Tagger, aesthetic scorer, face/head detectors), and live demo Spaces — with sorting by downloads, likes, or date.Inspect Repository Details (
deepghs_get_repo_info): Get full metadata for any dataset, model, or Space, including complete file trees with sizes, README card data, and auto-generated cheesechaser download commands for tar-based datasets.Cross-Platform Tag Intelligence (
deepghs_search_tags): Look up any anime tag across 18 platforms (Danbooru, Pixiv, Gelbooru, Zerochan, Sankaku, Yande.re, Wallhaven, etc.) using the 2.5M+ tagsite_tagsdataset, with format translation (e.g.,hatsune_miku→初音ミク).Find Pre-Built Character Datasets (
deepghs_find_character_dataset): Search bothdeepghsandCyberHaremnamespaces for existing LoRA-ready character image collections, with ready-to-run download commands and smart fallback to script generation if none exist.Generate
waifucData Pipeline Scripts (deepghs_generate_waifuc_script): Create complete, annotated Python scripts to crawl, filter, deduplicate, CCIP-verify, auto-tag, and export character image datasets for LoRA training — supporting SD 1.5, SDXL, and Flux formats.Generate
cheesechaserDownload Scripts (deepghs_generate_cheesechaser_script): Create targeted Python scripts to selectively download specific post IDs from large indexed datasets without downloading entire multi-TB archives.
Supports HF_TOKEN configuration for increased API rate limits and access to gated HuggingFace repositories.
Enables cross-platform tag translation and lookup for Pixiv's tagging system, and generates data collection scripts to crawl images from Pixiv for character dataset training pipelines.
deepghs-mcp
A Python MCP server for the DeepGHS anime AI ecosystem. Connect it to any MCP-compatible client (Claude Desktop, Cursor, etc.) to browse datasets, discover pre-built character training sets, look up tags across 18 platforms, and generate complete data pipeline scripts — all directly from your AI assistant.
✨ Features
📦 Dataset & Model Discovery
Browse all DeepGHS datasets — Danbooru2024 (8M+ images), Sankaku, Gelbooru, Zerochan, BangumiBase, and more
Full file trees — see exactly which tar/parquet files a dataset contains and how large they are before downloading anything
Model catalog — find the right model for your task: CCIP, WD Tagger Enhanced, aesthetic scorer, face/head detector, anime classifier, and more
Live demos — browse DeepGHS Spaces (interactive web apps) for testing models without code
🏷️ Cross-Platform Tag Intelligence
site_tags lookup — 2.5M+ tags unified across 18 platforms in one query
Tag format translation — Danbooru uses
hatsune_miku, Zerochan usesHatsune Miku, Pixiv uses初音ミク— this tool maps them all togetherReady-to-use Parquet queries — get copy-paste code to filter the tag database programmatically
🎯 Character Dataset Finder
Pre-built LoRA datasets — search both
deepghsandCyberHaremnamespaces for existing character image collectionsReady-to-run download commands — get the exact
cheesechasercommand to pull what you needSmart fallback — if no pre-built dataset exists, the tool hands off directly to the waifuc script generator
🤖 Training Pipeline Code Generation
waifuc scripts — generate complete, annotated Python data collection pipelines for any character from any source (Danbooru, Pixiv, Gelbooru, Zerochan, Sankaku, or Auto)
cheesechaser scripts — generate targeted download scripts to pull specific post IDs from indexed multi-TB datasets without downloading the whole archive
Format-aware — crop sizes, bucket ranges, and export formats automatically adjusted for SD 1.5, SDXL, or Flux
Related MCP server: MyAnimeList MCP Server
📦 Installation
Prerequisites
Python 3.10+
git
Quick Start
Clone the repository:
git clone https://github.com/citronlegacy/deepghs-mcp.git
cd deepghs-mcpRun the installer:
chmod +x install.sh && ./install.sh
# or without chmod:
bash install.shOr install manually:
pip install -r requirements.txt🔑 Authentication
HF_TOKEN is optional for public datasets but strongly recommended — it raises HuggingFace's API rate limit and is required for any gated or private repositories.
Get your token at huggingface.co/settings/tokens (read access is sufficient).
Without it, the server still works for all public DeepGHS datasets.
▶️ Running the Server
python deepghs_mcp.py
# or via the venv created by install.sh:
.venv/bin/python deepghs_mcp.py⚙️ Configuration
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"deepghs": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/deepghs_mcp.py"],
"env": {
"HF_TOKEN": "hf_your_token_here"
}
}
}
}Other MCP Clients
Command:
/absolute/path/to/.venv/bin/pythonArgs:
/absolute/path/to/deepghs_mcp.pyTransport: stdio
💡 Usage Examples
Browse available datasets
"What anime datasets does DeepGHS have on HuggingFace?"
The assistant calls deepghs_list_datasets and returns all datasets sorted by download count — Danbooru2024, Sankaku, Gelbooru WebP, BangumiBase, site_tags, and more — with links and update dates.
Check dataset contents before downloading
"What files are in deepghs/danbooru2024? How big is it?"
The assistant calls deepghs_get_repo_info and returns the full file tree — every .tar and .parquet file with individual and total sizes — so you know exactly what you're committing to before you download.
Find a pre-built character dataset
"Is there already a dataset for Rem from Re:Zero I can use for LoRA training?"
The assistant calls deepghs_find_character_dataset, searches both deepghs and CyberHarem namespaces, and returns any matches with download counts and a one-liner download command.
Example response:
## Character Dataset Search: Rem
Found 2 dataset(s):
### CyberHarem/rem_rezero
Downloads: 4.2K | Likes: 31 | Updated: 2024-08-12
Download with cheesechaser:
from cheesechaser.datapool import SimpleDataPool
pool = SimpleDataPool('CyberHarem/rem_rezero')
pool.batch_download_to_directory('./dataset', max_workers=4)Look up a tag across all platforms
"What is the correct tag for 'Hatsune Miku' on Danbooru, Zerochan, and Pixiv?"
The assistant calls deepghs_search_tags and returns the format for every platform, plus a pre-filtered link to the site_tags dataset viewer and Parquet query code.
Example response:
Tag Lookup: Hatsune Miku
Danbooru: hatsune_miku
Gelbooru: hatsune_miku
Sankaku: character:hatsune_miku
Zerochan: Hatsune Miku
Pixiv: 初音ミク (Japanese preferred)
Yande.re: hatsune_miku
Wallhaven: hatsune mikuThis directly solves the MultiBoru tag normalization problem.
Generate a full data collection pipeline
"Generate a waifuc script to build a LoRA dataset for Surtr from Arknights, from Danbooru and Pixiv, for SDXL, safe-only."
The assistant calls deepghs_generate_waifuc_script and returns a complete annotated Python script. Here is what that script does when run:
1. Crawls Danbooru (surtr_(arknights)) + Pixiv (スルト アークナイツ)
2. Converts all images to RGB with white background
3. Drops monochrome, sketch, manga panels, and 3D renders
4. Filters to safe rating only
5. Deduplicates near-identical images (差分 / variants)
6. Drops images with no detected face
7. Splits group images — each character becomes its own crop
8. CCIP identity filter — AI verifies every image actually shows Surtr
9. WD14 auto-tagging — writes .txt caption files automatically
10. Resizes and pads to 1024×1024 (SDXL standard)
11. Exports in kohya_ss-compatible folder structureNo manual curation. No manual tagging. Drop the output folder straight into your trainer.
Generate a targeted download script
"Give me a cheesechaser script to download post IDs 1234, 5678, 9012 from deepghs/danbooru2024."
The assistant calls deepghs_generate_cheesechaser_script and returns a complete Python script — with options for downloading by post ID list, downloading everything, or filtering from the Parquet index by tag.
Find the right model for a task
"Does DeepGHS have a model for scoring image aesthetics?"
The assistant calls deepghs_list_models with search: "aesthetic" and returns matching models with pipeline task, download counts, and direct HuggingFace links.
Try a model in the browser
"Is there a live demo for the DeepGHS face detection model?"
The assistant calls deepghs_list_spaces with search: "detection" and returns matching Spaces with direct links to the interactive demos.
🛠️ Available Tools
Tool | Description | Key Parameters |
| Browse all DeepGHS datasets with search, sort, and pagination |
|
| Browse all DeepGHS models |
|
| Browse all DeepGHS live demo Spaces |
|
| Full file tree + metadata for any dataset/model/space |
|
| Cross-platform tag lookup across 18 platforms via site_tags |
|
| Find pre-built LoRA training datasets for a character |
|
| Generate complete data collection + cleaning pipeline script |
|
| Generate targeted dataset download script |
|
📖 Tools Reference
deepghs_list_datasets
Lists all public datasets from DeepGHS, sortable and filterable by keyword.
Parameters
Parameter | Type | Required | Default | Description |
| string | ❌ | — | Keyword filter, e.g. |
| string | ❌ |
|
|
| integer | ❌ |
| Results per page (max 100) |
| integer | ❌ |
| Pagination offset |
| string | ❌ |
|
|
deepghs_list_models
Lists all public models — CCIP, WD Tagger Enhanced, aesthetic scorer, face/head/person detectors, anime classifier, furry detector, NSFW censor, style era classifier, and more.
Parameters
Parameter | Type | Required | Default | Description |
| string | ❌ | — | Keyword filter, e.g. |
| string | ❌ |
|
|
| integer | ❌ |
| Results per page (max 100) |
| integer | ❌ |
| Pagination offset |
| string | ❌ |
|
|
deepghs_list_spaces
Lists all public Spaces — live demos for face detection, head detection, CCIP character similarity, WD tagger, aesthetic scorer, reverse image search, Danbooru character lookup, and more.
Parameters
Parameter | Type | Required | Default | Description |
| string | ❌ | — | Keyword filter, e.g. |
| integer | ❌ |
| Results per page (max 100) |
| string | ❌ |
|
|
deepghs_get_repo_info
Get full metadata for any dataset, model, or space — including the complete file tree with individual file sizes. Essential before downloading a multi-TB dataset.
Parameters
Parameter | Type | Required | Default | Description |
| string | ✅ | — | Full HF repo ID, e.g. |
| string | ❌ |
|
|
| string | ❌ |
|
|
Tip: Datasets containing
.tarfiles automatically get a ready-to-copy cheesechaser snippet appended.
deepghs_search_tags
Look up any tag across 18 platforms using the deepghs/site_tags dataset. Returns per-platform format guidance, a pre-filtered dataset viewer link, and Parquet query code.
Parameters
Parameter | Type | Required | Default | Description |
| string | ✅ | — | Tag in any format or language, e.g. |
| string | ❌ |
|
|
LLM Tip: Call this before
deepghs_generate_waifuc_scriptto confirm the correct Danbooru/Pixiv tag format for a character.
deepghs_find_character_dataset
Searches deepghs and CyberHarem on HuggingFace for pre-built character datasets. CyberHarem datasets are built with the full automated pipeline: crawl → CCIP filter → WD14 tag → upload.
Parameters
Parameter | Type | Required | Default | Description |
| string | ✅ | — | Character name, e.g. |
| string | ❌ |
|
|
deepghs_generate_waifuc_script
Generates a complete, annotated Python pipeline script using waifuc.
Pipeline actions included (in order):
Action | What it does | Why it matters for LoRA |
| Convert to RGB, white background | Standardizes input format |
| Drop greyscale/sketch images | Prevents style contamination |
| Keep illustration/anime only | Drops manga panels and 3D |
| Filter by content rating | Keep dataset SFW if needed |
| Deduplicate similar images | Prevents overfitting to variants |
| Require exactly 1 face | Removes group shots and objects |
| Crop each character from group images | Maximizes usable data |
| AI identity verification | Removes wrong characters (the most important step) |
| WD14 auto-tagging | Generates |
| Resize to minimum resolution | Ensures quality floor |
| Pad to square | Standard training resolution |
Parameters
Parameter | Type | Required | Default | Description |
| string | ✅ | — | Display name, e.g. |
| string | ❌ | auto-guessed | Danbooru tag, e.g. |
| string | ❌ | — | Pixiv search query, Japanese preferred. Required if |
| list | ❌ |
|
|
| string | ❌ |
|
|
| string | ❌ |
|
|
| string | ❌ |
| Output directory |
| integer | ❌ | no limit | Cap total images collected |
| string | ❌ | — | Pixiv refresh token (required for Pixiv source) |
Source tag formats:
Source | Tag Format | Notes |
|
| snake_case with series in parens |
|
| same as Danbooru |
|
| Japanese preferred for better results |
|
| Title Case, strict mode enabled |
|
| snake_case |
| character name | uses gchar database — best for game characters |
deepghs_generate_cheesechaser_script
Generates a Python download script using cheesechaser to pull specific images from indexed tar datasets without downloading entire archives.
Parameters
Parameter | Type | Required | Default | Description |
| string | ✅ | — | HF dataset, e.g. |
| string | ❌ |
| Local download directory |
| list[int] | ❌ | — | Specific post IDs. If omitted, downloads all (can be very large) |
| integer | ❌ |
| Parallel download threads (1–16) |
🗂️ Key DeepGHS Datasets
Repo ID | Description | Use Case |
| Full Danbooru archive, 8M+ images | Bulk downloads, data mining |
| Compressed WebP version | Faster downloads |
| Full Sankaku Channel dataset | Alternative tag ecosystem |
| Gelbooru compressed | Western fanart coverage |
| 2.5M+ tags, 18 platforms | Tag normalization |
| YOLO face detection labels | Train detection models |
| Character frames from anime | Character dataset bootstrapping |
🔄 Recommended Workflows
Workflow A: Use a pre-built dataset
1. deepghs_find_character_dataset → check if dataset exists
2. deepghs_get_repo_info → inspect file sizes
3. deepghs_generate_cheesechaser_script → get download command
4. Run the script → trainWorkflow B: Build a new dataset from scratch
1. deepghs_search_tags → find the correct Danbooru tag
2. deepghs_generate_waifuc_script → generate full pipeline script
3. Run the script → crawl, filter, tag, crop
4. Review output → remove any remaining noise
5. Train with kohya_ssWorkflow C: Mine specific images from a large dataset
1. deepghs_get_repo_info → inspect dataset Parquet structure
2. deepghs_search_tags → confirm tag names
3. deepghs_generate_cheesechaser_script → generate Parquet-filter script
4. Run the script → downloads only matching images🤖 Notes for LLMs
Check pre-built first: Always call
deepghs_find_character_datasetbefore generating a waifuc script. CyberHarem has hundreds of ready-to-use LoRA datasets.Danbooru tag format:
character_(series)with underscores —rem_(re:zero), notRem (Re:Zero). Usedeepghs_search_tagsto confirm.File sizes: Datasets like
danbooru2024are multi-TB. Always checkdeepghs_get_repo_infobefore recommending a full download. Use cheesechaser with post IDs for targeted access.CCIP is essential: It's the most important pipeline step — without it, 20–40% of a character dataset will be wrong-character noise. Always include it in waifuc scripts.
Pixiv source: Requires a
pixiv_token. If the user hasn't set one up, suggest Danbooru + Gelbooru instead.Model format crop sizes: SD1.5 = 512×512, SDXL/Flux = 1024×1024. This controls
AlignMinSizeActionandPaddingAlignActionin generated scripts.
⚠️ Known Limitations
HuggingFace rate limits: Without
HF_TOKEN, the Hub API may throttle requests on heavy usage.Gated datasets: Some datasets require explicit approval on HuggingFace before downloading. The server returns a clear error with guidance.
CyberHarem search: Niche characters may need manual browsing at huggingface.co/CyberHarem.
waifuc runtime: The generated scripts require
waifucinstalled separately (not in this server's deps). First run downloads ~500MB of CCIP + WD14 model weights.
🐛 Troubleshooting
Server won't start:
Ensure Python 3.10+:
python --versionRe-run the installer:
bash install.sh
Rate limit / 429 errors:
Set
HF_TOKENin your MCP env configGet a free token: huggingface.co/settings/tokens
403 / Forbidden on a dataset:
The dataset is gated — visit the dataset page on HuggingFace and click "Request Access"
Ensure the
HF_TOKENis from an account that has been granted access
Character dataset not found:
Try alternate spellings:
"Rem","rem_(re:zero)","rem re:zero"Browse manually: huggingface.co/CyberHarem
Generate from scratch with
deepghs_generate_waifuc_script
waifuc script fails:
Install waifuc:
pip install git+https://github.com/deepghs/waifuc.gitGPU support:
pip install "waifuc[gpu]"(much faster CCIP + tagging)First run downloads ~500MB of model weights — this is expected
🤝 Contributing
Pull requests are welcome! If a tool is returning incorrect data, a script template is outdated, or a new DeepGHS dataset or model should be highlighted, please open an issue or PR.
Fork the repository
Create a feature branch
Make your changes
Submit a pull request
📄 License
MIT License — see LICENSE for details.
🔗 Links
Related MCP Servers
gelbooru-mcp — Search Gelbooru, generate SD prompts from character tag data
zerochan-mcp — Browse Zerochan's high-quality anime image board
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.Last updated71MIT
- AlicenseBqualityDmaintenanceMCP Server for interacting with the MyAnimeList API, allowing LLM clients to access and interact with anime, manga and more.Last updated152MIT
- Alicense-qualityDmaintenanceMCP server integrating Higgsfield AI API for image generation, video animation, and speech-to-video synthesis with character management and job tracking.Last updated4MIT
- Alicense-qualityCmaintenanceAn MCP server that searches booru image boards and cleans their tags into ready-to-use AI-art prompts for Stable Diffusion and similar models.Last updated4MIT
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for ByteDance Seedream AI image generation
MCP server for Hailuo (MiniMax) AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/citronlegacy/deepghs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server