bilibili-mcp-server

MCP.Pizza Chef: huccihuang

Four abilities are on offer: a general keyword search, a creator search that can sort by follower count, an exact-match search across creators, videos, live streams, and articles, and a fetch of the danmaku comments that scroll over a video. Everything only reads, so nothing can be posted, liked, or deleted. No login or key is set up, so it browses as a signed-out visitor and cannot reach anything Bilibili keeps behind a login. The code has not changed since April 2025.

Unmaintained · no activity since April 2025
Web/Research

Use This MCP server To

Find Bilibili creators in a niche, sorted by followers Search Bilibili for videos on a topic Check whether a specific username actually exists Pull the on-screen comments from a video I am studying Look up live streams matching a keyword

README

Bilibili API MCP Server

用于哔哩哔哩 API 的 MCP(模型上下文协议)服务器,支持多种操作。

环境要求

  • uv - 一个项目管理工具,可以很方便管理依赖。

使用方法

  1. clone 本项目

  2. 使用 uv 安装依赖

uv sync
  1. 在任意 mcp client 中配置本 Server
{
  "mcpServers": {
    "bilibili": {
      "command": "uv",
      "args": [
        "--directory",
        "/your-project-path/bilibili-mcp-server",
        "run",
        "bilibili.py"
      ]
    }
  }
}
  1. 在 client 中使用

支持的操作

支持以下操作:

  1. general_search: 基础搜索功能,使用关键词在哔哩哔哩进行搜索。
  2. search_user: 专门用于搜索哔哩哔哩用户的功能,可以按照粉丝数排序。
  3. get_precise_results: 精确搜索功能,可以过滤掉不必要的信息,支持多种搜索类型:
    • 用户搜索 (user):精确匹配用户名,只返回完全匹配的结果。例如搜索"双雷"只会返回用户名为"双雷"的账号信息,不会返回其他相关用户
    • 视频搜索 (video)
    • 直播搜索 (live)
    • 专栏搜索 (article) 返回结果包含 exact_match 字段,标识是否找到精确匹配的结果。
  4. get_video_danmaku·: 获取视频弹幕信息。

如何为本项目做贡献

  1. Fork 本项目
  2. 新建分支,并在新的分支上做改动
  3. 提交 PR

License

MIT

bilibili-mcp-server FAQ

Is it still maintained?
There has been no activity since April 2025, while the Bilibili library it leans on has kept changing, so breakage is possible.
Do I need a Bilibili account or key?
No. It never signs in, which also means it only sees what a logged-out visitor is allowed to see.
Can it post, like, or comment for me?
No. All four abilities only read, so your own account is never touched.
Can I use this to research creators before a sponsorship?
Yes. It searches creators and can sort them by follower count, though it returns plain listings rather than full analytics.
Which apps does it work in?
Any assistant that can run a small local program, which covers Claude Desktop, Claude Code, and Cursor among others.
How hard is setup?
Moderate. You download the code, install its dependencies with a Python tool, then paste a settings block pointing at that folder.
Is the documentation in English?
No. The instructions and the tool descriptions are written in Chinese, though you can still chat with it in any language.