B站 MCP Server - 支持搜索/评论/字幕/弹幕/回复
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"bilibili-mcp": {
"args": [
"/path/to/bilibili-mcp/mcp_server.py"
],
"command": "python"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
B站 MCP Server - 支持搜索/评论/字幕/弹幕/回复
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
This server is missing a description.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in entertainment
The official MCP Server for the Mux API
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Unity MCP Server — 268 tools for AI-assisted game development. Connect Claude, Cursor, or any MCP client to Unity Editor & Unity Hub. Scene management, GameObjects, components, builds, profiling, Shader Graph, Amplify, terrain, physics, NavMesh, animation, MPPM multiplayer & more. Free & open source by AnkleBreaker Studio.
A Model Context Protocol (MCP) server that gives Claude direct control over Strudel.cc for AI-assisted music generation and live coding.
MCP Security Weekly
Get CVE alerts and security updates for Bilibili Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
B站(Bilibili)MCP Server —— 让 AI 助手直接操作B站。
支持 OpenClaw / Claude Code / Cursor / Cline 等所有 MCP 客户端。
27 个工具,覆盖登录认证、搜索采集、内容发布、数据分析、互动运营。
| Tool | 功能 | 说明 |
|---|---|---|
bili_login | 扫码登录 | 生成二维码(base64图片),AI直接展示给用户扫码 |
bili_login_check | 登录状态检查 | 轮询扫码状态,扫码成功后自动保存凭证 |
bili_check_credential | 凭证验证 | 检查当前登录是否有效,返回用户名等信息 |
| Tool | 功能 | 说明 |
|---|---|---|
bili_search | 搜索视频 | 按关键词搜索,支持按播放量/最新/弹幕排序 |
bili_comments | 获取评论 | 获取视频热门评论,含子评论 |
bili_subtitle | 获取字幕 | 获取视频AI字幕(语音转文字) |
bili_danmaku | 获取弹幕 | 获取视频弹幕列表 |
bili_video_info | 视频详情 | 获取播放量、评论数、收藏数等 |
bili_reply | 回复评论 | 发表评论或回复评论(支持楼中楼) |
bili_crawl | 批量采集 | 搜索+评论+字幕一步到位 |
| Tool | 功能 | 说明 |
|---|---|---|
bili_send_dynamic | 发图文动态 | 发布文字/图文动态,支持定时发布、话题关联 |
bili_upload_video | 上传视频 | 单P视频上传,支持封面、标签、分区选择 |
bili_upload_video_multi | 多P上传 | 多分P视频合并投稿 |
bili_send_opus | 图文专栏 | 发布图文长内容(Opus) |
bili_video_zones | 分区查询 | 获取常用分区ID,辅助视频上传 |
| Tool | 功能 | 说明 |
|---|---|---|
bili_hot_videos | 热门视频 | 获取当前B站热门视频列表 |
bili_hot_buzzwords | 热搜关键词 | 获取B站热搜词/热门话题 |
bili_weekly_hot | 每周必看 | 获取每周必看推荐视频 |
bili_rank | 排行榜 | 全站及17个分区排行榜 |
bili_user_info | 用户信息 | 获取UP主粉丝数、等级、总播放量等 |
bili_user_videos | 用户视频 | 获取UP主投稿列表,支持排序和搜索 |
| Tool | 功能 | 说明 |
|---|---|---|
bili_favorite_lists | 收藏夹列表 | 获取自己或他人的收藏夹 |
bili_favorite_content | 收藏夹内容 | 获取收藏夹内视频,支持搜索 |
bili_send_message | 发私信 | 给指定用户发送文字私信 |
bili_unread_messages | 未读消息 | 获取私信、@、回复、点赞等未读数 |
bili_received_replies | 收到的回复 | 获取评论回复通知 |
bili_received_at_and_likes | @和点赞 | 获取@提及和点赞通知 |
git clone https://github.com/adoresever/bilibili-mcp.git
cd bilibili-mcp
pip install -r requirements.txt
需要 Python 3.10+,视频上传自动截取封面需要 ffmpeg。
方式一:通过 AI 工具登录(推荐)
接入 MCP 后,直接对 AI 说"登录B站",AI 会调用 bili_login 生成二维码展示给你扫码,全程无需终端操作。
方式二:命令行登录
python bili_login.py
npx @modelcontextprotocol/inspector python mcp_server.py
npm i -g mcporter
npx mcporter config add bilibili-mcp "python /path/to/bilibili-mcp/mcp_server.py"
或直接把 GitHub 链接粘贴到 OpenClaw 对话框,让它自动配置。
在项目目录创建 .mcp.json:
{
"mcpServers": {
"bilibili-mcp": {
"command": "python",
"args": ["/path/to/bilibili-mcp/mcp_server.py"]
}
}
}
在设置中添加 MCP Server,command 填 python,args 填 mcp_server.py 的完整路径。
接入后,你可以直接用自然语言让 AI 操作:
bilibili-mcp/
├── mcp_server.py # MCP Server 主文件(27个tool)
├── bili_login.py # 命令行扫码登录(备用)
├── bili_credential.json # 登录凭证(自动生成,勿提交)
├── requirements.txt # Python 依赖
├── README.md # 项目说明
├── LICENSE # MIT 开源协议
└── .gitignore # Git 忽略文件
MIT