Danbooru Search MCP

Danbooru Search MCP

Searches Danbooru for anime/game characters and their associated tags, providing tools to retrieve character profiles, co-occurring tags, wiki descriptions, and tag implications.

Category
Visit Server

README

⚠️ 纯 AI 生成声明 | Pure AI-Generated Notice

本项目代码由 AI(opencode + GLM-5.2)完全生成,未经人工编写。

This project's code is entirely generated by AI (opencode + GLM-5.2), without human-written code.


Danbooru Search MCP

English | 中文


<a id="english"></a>

English

An MCP (Model Context Protocol) server that searches Danbooru for anime/game characters and their related tags. Given a character tag like hoshino_(blue_archive), it returns the most relevant co-occurring tags (ahoge, pink_hair, blue_eyes, heterochromia, ...) ranked by how often they appear together.

Features

  • Character profile in one call — visual traits, wiki description, multilingual aliases, and costume variant implications, all aggregated in parallel.
  • Auto-correction — misspelled tags are automatically resolved via Danbooru's autocomplete (e.g. amamya_kokoroamamiya_kokoro).
  • No authentication required — the Danbooru read API is public. Setting DANBOORU_LOGIN / DANBOORU_API_KEY is optional and only raises your rate limit.
  • Zero-install deployment — runs via uvx with no manual install step.

Tools

# Tool Purpose
1 danbooru_get_character_profile Recommended first. Complete profile: traits + wiki + aliases + implications.
2 danbooru_search_character Visual trait frequencies for a character tag (ahoge, pink_hair, etc.).
3 danbooru_lookup_tag Find/verify a tag's exact canonical name. Alias-corrected.
4 danbooru_get_wiki_page Get the textual wiki description for a tag.
5 danbooru_get_tag_implications Get the implication chain (A → B auto-adds).

Requirements

  • Python 3.10+
  • uv (recommended) or pip

Install & Configure

Add this to your MCP client config (claude_desktop_config.json, opencode.json, etc.):

{
  "mcpServers": {
    "danbooru": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/echo-xianyu/danbooru-MCP", "danbooru-mcp"]
    }
  }
}

From a local directory:

{
  "mcpServers": {
    "danbooru": {
      "command": "uvx",
      "args": ["--from", "E:\\path\\to\\Danbooru-Search-MCP", "danbooru-mcp"]
    }
  }
}

With optional authentication (higher rate limit):

{
  "mcpServers": {
    "danbooru": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/echo-xianyu/danbooru-MCP", "danbooru-mcp"],
      "env": {
        "DANBOORU_LOGIN": "your_username",
        "DANBOORU_API_KEY": "your_api_key"
      }
    }
  }
}

Usage Examples

Ask your MCP-enabled assistant:

  • "Search hoshino_(blue_archive), return the most relevant trait tags" → calls danbooru_search_character, returns ahoge (0.92), pink_hair (0.92), halo (0.93), ...
  • "Give me the full profile of Amamiya Kokoro" → calls danbooru_get_character_profile with tag=amamiya_kokoro.
  • "What does the ahoge tag mean?" → calls danbooru_get_wiki_page with title=ahoge.

Danbooru Tag Format

Tags use lowercase with underscores, and parentheses for disambiguation:

  • Spaces → underscores: blue archiveblue_archive
  • Disambiguation suffix: hoshino_(blue_archive), rem_(re:zero)

Use danbooru_lookup_tag with a * wildcard to discover the exact canonical name first.

Rate Limits

  • Anonymous reads: 10 requests/second (shared global limit).
  • With API key: higher per-account limits.
  • The server sets a custom User-Agent as required by Danbooru's policy.

License

MIT


<a id="中文"></a>

中文

一个 MCP(模型上下文协议)服务器,通过 Danbooru 搜索动漫/游戏角色及其相关标签。输入角色标签如 hoshino_(blue_archive),返回最相关的共现标签(ahogepink_hairblue_eyesheterochromia...),按共现频率排序。

功能特点

  • 一次调用获取完整角色档案 — 视觉特征、Wiki 描述、多语言别名、服装变体蕴含关系,并行聚合。
  • 自动纠错 — 拼写的标签名自动通过 Danbooru autocomplete 纠正(如 amamya_kokoroamamiya_kokoro)。
  • 无需认证 — Danbooru 只读 API 公开可用。设置 DANBOORU_LOGIN / DANBOORU_API_KEY 是可选的,仅用于提升限速。
  • 零安装部署 — 通过 uvx 运行,无需手动安装。

工具列表

# 工具 用途
1 danbooru_get_character_profile 推荐首选。 完整档案:特征 + Wiki + 别名 + 蕴含关系。
2 danbooru_search_character 获取角色视觉特征频率(ahoge、pink_hair 等)。
3 danbooru_lookup_tag 查找/验证标签的规范名称,支持别名纠错。
4 danbooru_get_wiki_page 获取标签的 Wiki 文字描述。
5 danbooru_get_tag_implications 获取标签蕴含链(A → B 自动附加)。

环境要求

  • Python 3.10+
  • uv(推荐)或 pip

安装与配置

将以下内容添加到 MCP 客户端配置中(claude_desktop_config.jsonopencode.json 等):

{
  "mcpServers": {
    "danbooru": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/echo-xianyu/danbooru-MCP", "danbooru-mcp"]
    }
  }
}

从本地目录运行:

{
  "mcpServers": {
    "danbooru": {
      "command": "uvx",
      "args": ["--from", "E:\\path\\to\\Danbooru-Search-MCP", "danbooru-mcp"]
    }
  }
}

带认证(提升限速,可选):

{
  "mcpServers": {
    "danbooru": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/echo-xianyu/danbooru-MCP", "danbooru-mcp"],
      "env": {
        "DANBOORU_LOGIN": "你的用户名",
        "DANBOORU_API_KEY": "你的API密钥"
      }
    }
  }
}

使用示例

对支持 MCP 的 AI 助手说:

  • "搜索 hoshino_(blue_archive),返回最相关的特征标签" → 调用 danbooru_search_character,返回 ahoge(0.92)、pink_hair(0.92)、halo(0.93)...
  • "给我天宫心(Amamiya Kokoro)的完整角色档案" → 调用 danbooru_get_character_profile,参数 tag=amamiya_kokoro
  • "ahoge 这个标签是什么意思?" → 调用 danbooru_get_wiki_page,参数 title=ahoge

Danbooru 标签格式

标签使用小写 + 下划线,括号用于消歧:

  • 空格 → 下划线:blue archiveblue_archive
  • 消歧后缀:hoshino_(blue_archive)rem_(re:zero)

不确定标签名时,先用 danbooru_lookup_tag* 通配符查找。

限速

  • 匿名读取:10 请求/秒(全站共享)。
  • 带 API 密钥:更高的账户级限速。
  • 服务器已设置 Danbooru 要求的自定义 User-Agent

许可证

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured