bangumi-mcp
MCP server for Bangumi that queries collections, marks anime as watching/watched, and updates per-episode progress via official API, with secure token handling.
README
bangumi-mcp
Akashic Plugin API v2 插件,用 Bangumi 官方 API 查询收藏、设置“在看/看过”,并通过章节接口逐集更新动画观看进度。
安全边界
- 只连接
https://api.bgm.tv,使用官方 Access Token 和符合官方要求的 User-Agent。 - Access Token 只从 Akashic plugin-data 的
config.local.toml读取,不写入仓库、日志或工具结果。 - 所有远端写入先生成包含作品名和目标状态/集数的预览;确认记录单次使用并在 10 分钟后过期。
- 动画进度使用
PATCH /v0/users/-/collections/{subject_id}/episodes和明确的章节 ID,不用条目级ep_status修改动画集数。
安装
Akashic 只安装 Git 已提交快照。从 Akashic 仓库执行:
.venv/bin/python main.py plugin-install \
--source https://github.com/lfegg/bangumi-mcp.git \
--marketplace github
安装输出会给出数据目录,默认是:
<workspace>/plugin-data/bangumi-github/
登录 Bangumi 后,前往 Bangumi Access Token 页面 生成个人 Token。该 Token 是账号的 API 访问凭据,不是 Bangumi 密码。
在该目录创建权限为 0600 的 config.local.toml:
access_token = "<在此填写 Bangumi Access Token>"
user_agent = "lfegg/bangumi-mcp/0.1.0 (https://github.com/lfegg/bangumi-mcp)"
不要把 Token 放进命令行参数或聊天消息。配置完成后检查:
.venv/bin/python main.py plugin-doctor bangumi@github
运行中的 Akashic 会观察配置变化并发布新的 committed generation;新会话会加载 bangumi Skill 和 MCP 工具。
开发验证
python -m pip install -r mcp/requirements.txt -r requirements-dev.txt
pytest
PYTHONPATH=/path/to/plugin-contracts \
python -m akashic_plugin_contracts check plugin.py
单元测试全部使用假的 HTTP 会话,不访问真实 Bangumi 账户,也不需要 Access Token。
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.