Labsco
MCP SERVER

Bilibili API

by chenmingkong

Bilibili search from an assistant — general search, user search sorted by follower count, exact-match lookups by type, and a video's danmaku comments.

Games, Entertainment & Fandom
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_match` field 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` (0.1.0 in pyproject).

Setup effort

One command — npx -y bilibili-mcp-server