general_searchLABSCO SUMMARY
The precise mode is the reason to reach for it.
General search on Bilibili returns everything adjacent to your query, which is fine for browsing and useless for identification. The exact-match mode restricts results to true matches and tells you in a dedicated field whether it found one — so an assistant can say "no such user" instead of confidently returning the closest thing. Danmaku access is the other distinctive piece: the comment stream is where a video's audience reaction actually lives.
What it is
An MCP server over the Bilibili API. Besides ordinary keyword search it offers a precise mode that filters out near-matches, which is what makes searching for a user with a common name usable.
What you get
- Keyword search across Bilibili —
general_search - User search that can be sorted by follower count, for telling apart accounts with similar names —
search_user - Exact-match search across users, videos, live rooms and columns, returning an
exact_matchfield so the caller knows whether a true match was found —get_precise_results - Danmaku — the scrolling comments overlaid on a video — pulled for a given video —
get_video_danmaku
Requirements
No account and no key. uv for dependency management: clone the repository, run uv sync, then register uv in your client with --directory pointing at the clone and bilibili.py as the script to run. The package is bilibili-mcp-server (version 0.1.0).
Setup effort
Build from source — git clone https://github.com/chenmingkong/bilibili-mcp-server.git
USE CASES
Identifying an account by exact name
Run the precise user search and read the exact-match flag, rather than accepting the top fuzzy result.
Finding videos on a topic
Search by keyword, then narrow with the precise video mode when the general results are too broad.
Reading how an audience reacted
Pull the danmaku for the video to see the comments viewers left at each moment.
Sizing up a creator
Search users sorted by follower count to see where an account sits relative to similarly named ones.
4 tools
Listed in project docs. Your client may show a different list.
search_userget_precise_resultsget_video_danmakuBEFORE YOU INSTALL
What to know first
Tools you get
4 tools named in the project's documentation. get_precise_results covers four search types — user, video, live and article — and its results carry an exact_match field saying whether a true match was found.
Requires
- uv
- Python 3.12+
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone this one yourself.
Server setup
git clone https://github.com/chenmingkong/bilibili-mcp-server.git
cd bilibili-mcp-server
uv syncMCP Clients
Any MCP client
{
"mcpServers": {
"bilibili": {
"command": "uv",
"args": [
"--directory",
"/<YOUR_PROJECT_PATH>/bilibili-mcp-server",
"run",
"bilibili.py"
]
}
}
}