Bangumi TVSAFE
bgm.tv MCP Server
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
English | 中文
English
A Model Context Protocol (MCP) server that provides programmatic access to the Bangumi TV API, enabling AI assistants like Claude to interact with comprehensive anime, manga, music, game, and real-world media data.
Features
- 55 MCP Tools: Complete coverage of Bangumi API endpoints
- 3 Workflow Prompts: Pre-built multi-step workflows for common tasks
- 1 Resource: Full OpenAPI specification for API documentation
- Modular Architecture: Clean, maintainable codebase following MCP best practices
- Type-Safe: Full Python type hints and enum definitions
- Async Support: Non-blocking API calls using httpx
Quick Start
Prerequisites
- Python 3.10 or higher
- uv package manager (recommended) or pip
Installation
# Clone the repository git clone https://github.com/Ukenn2112/BangumiMCP.git cd BangumiMCP # Create and activate virtual environment uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate # Install dependencies uv pip install -e .
Configuration for Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bangumi-tv": {
"command": "uv",
"args": [
"--directory",
"/path/to/BangumiMCP",
"run",
"main.py"
],
"env": {
"BANGUMI_TOKEN": "your_token_here"
}
}
}
}Note: BANGUMI_TOKEN is optional but required for:
- Authenticated operations (collections, personal data)
- R18 content access
- Write operations (create, update, delete)
Get your token at: https://next.bgm.tv/demo/access-token
Project Architecture
BangumiMCP follows a modular architecture designed for maintainability and scalability:
BangumiMCP/ ├── main.py # Server initialization (44 lines) ├── src/ │ ├── config.py # Configuration cons
e280027af914OBSERVED · 2026-10-09Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add bangumi-tv --env BANGUMI_TOKEN=${BANGUMI_TOKEN} -- uvx bangumi-tv{
"mcpServers": {
"bangumi-tv": {
"command": "uvx",
"args": [
"bangumi-tv"
],
"env": {
"BANGUMI_TOKEN": "${BANGUMI_TOKEN}"
}
}
}
}Exposed tools (46)
43 read · 3 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
browse_subjects | read | |
collect_character | read | |
collect_person | read | |
get_character_details | read | |
get_character_image | read | |
get_character_persons | read | |
get_character_revision | read | |
get_character_revisions | read | |
get_character_subjects | read | |
get_current_user | read | |
get_daily_broadcast | read | |
get_episode_details | read | |
get_episode_revision | read | |
get_episode_revisions | read | |
get_episodes | read | |
get_person_characters | read | |
get_person_details | read | |
get_person_image | read | |
get_person_revision | read | |
get_person_revisions | read | |
get_person_subjects | read | |
get_single_episode_collection | read | |
get_subject_characters | read | |
get_subject_details | read | |
get_subject_image | read | |
get_subject_persons | read | |
get_subject_relations | read | |
get_subject_revision | read | |
get_subject_revisions | read | |
get_user_avatar | read | |
get_user_character_collection | read | |
get_user_character_collections | read | |
get_user_collections | read | |
get_user_episode_collection | read | |
get_user_info | read | |
get_user_person_collection | read | |
get_user_person_collections | read | |
get_user_subject_collection | read | |
search_characters | read | |
search_persons | read | |
search_subjects | read | |
uncollect_character | read | |
uncollect_person | read | |
update_episode_collection | write | |
update_single_episode_collection | write | |
update_subject_collection | write |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
Gates applied: no_behavioural_pass, no_license.
e280027af914full audit observations/trust-audit/mcp-server/ukenn2112__bangumi-tv.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | e280027af914 | SAFE | B | 89 | first audit |
Questions
What is the Bangumi TV MCP server?
bgm.tv MCP Server
What tools does Bangumi TV expose?
46 in total: 43 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Bangumi TV safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Bangumi TV need?
It reads BANGUMI_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How current is this page?
The grade is for one exact copy of the source (e280027af914), read on 2026-10-09. The repository is watched and re-audited when it changes.