What it is
bilibili-mcp is an open-source MCP server by GitHub user adoresever. MCP (Model Context Protocol, an open protocol for connecting AI assistants to outside tools) lets an assistant call external tools. The README says it lets an AI assistant operate Bilibili directly, and that it works with MCP clients such as OpenClaw, Claude Code, Cursor and Cline. It has 27 tools covering login, search and collection, publishing, data analysis and interaction. You give instructions in plain language, for example "search Bilibili for popular videos about AI Agent", and the assistant calls the matching tool. The README also describes logging in through the AI chat: the assistant shows a QR code for you to scan.
Highlights:
- 27 tools in five groups: login, data collection, publishing, data analysis and interaction
- It can fetch video comments, AI subtitles (speech to text) and danmaku, and run a batch collection of search, comments and subtitles in one step
- It can post text or image updates, upload single-part or multi-part videos, and publish image-and-text articles
- It can look up trending videos, hot search words, the weekly must-watch list, and rankings for the whole site and 17 categories
How to use:
- First, clone the project and install dependencies: `git clone https://github.com/adoresever/bilibili-mcp.git`, then run `pip install -r requirements.txt`.
- Then connect it to your AI tool, for example in Claude Code create `.mcp.json` in your project folder, set command to `python` and args to the full path of `mcp_server.py`.
- Finally, tell the AI "log in to Bilibili", scan the QR code, and then ask it to search or act in plain language.
Who it's for:
People who want an AI assistant to collect Bilibili comments and subtitles, or to help manage posting and interaction on an account.
Before you start:
- You need Python 3.10 or later, and ffmpeg if you want a cover frame captured automatically when uploading a video.
- After you scan the QR code, the login credential is saved as a local file, bili_credential.json. The README says it is generated automatically and should not be committed, and that credentials stay on your machine and are not uploaded.
- It can use your logged-in Bilibili account to post updates, upload videos, publish articles, reply to comments and send private messages. It can also read your unread messages and favorites, and collect comments and subtitles in batches. The README asks you to use reply and private message features with care and to follow the Bilibili community rules. If you use these features, weigh the safety risks yourself. AI Inspiration World is not responsible for any consequences. Only use material you have the rights to; you are responsible for compliance.
- The project name uses the Bilibili name. The README does not describe any relationship with Bilibili itself, and says the project is for learning and research only.
- The repository lists an MIT license; the page does not state the cost of an AI assistant.
- License terms are subject to the official website. Content belongs to the original creator.
Based on the project's public documentation. Not tested by AI Inspiration World.