Bilibili MCP server
Connect Bilibili to your AI tools. Claude Code, Cursor, VS Code and other MCP clients can find the endpoint and pull videos, danmaku, comments and replies, creator profiles, search and popular videos for you. 8 live endpoints, added with one command.
A new account gets 50 trial calls; after that, successful calls are billed from a prepaid balance. See pricing.
Add Bilibili with one command
Qovia is also an MCP server. Run this in Claude Code. Finding and reading endpoints needs no key; to call them, set up your API key as in the MCP docs. Cursor and VS Code setups are there too.
claude mcp add --transport http qovia https://api.qovia.ai/mcp8 Bilibili endpoints your AI can call
Parameters, response fields and code samples for each are in the API reference.
- Bilibili video detail
GET /v1/raw/bilibili/videoTitle, description, uploader, category, tags and engagement (plays, likes, coins, saves, comments, shares, danmaku) for one video. BV ids only; follower counts are not available.Required: bvid - Bilibili video search
GET /v1/raw/bilibili/searchKeyword video search, up to 20 results per page and 50 pages, sortable by plays, publish time, danmaku, saves or comments. Bilibili returns fuzzy matches for any keyword; stop paging when has_more is false (past the last page Bilibili repeats page 1). Results carry no coin or share counts.Required: keyword - Bilibili video comments
GET /v1/raw/bilibili/commentsTop-level comments of a video, hottest first, 20 per page; pass the previous page's cursor back unchanged to continue. Use cid to fetch nested replies. IP location is not available.Required: bvid - Bilibili comment replies
GET /v1/raw/bilibili/repliesEvery nested reply under one top-level comment, in one call (not paginated). Threads with more than about 100 replies may time out, which is not charged.Required: bvid, root_id - Bilibili danmaku
GET /v1/raw/bilibili/danmakuCurrent and historical danmaku of a video's first part, de-duplicated and cut at limit (has_more true means it was cut; raise limit). complete=false means some segments could not be fetched. Older popular videos may time out, which is not charged.Required: bvid - Bilibili creator profile
GET /v1/raw/bilibili/creatorA creator's profile with followers, following, likes (videos, articles and posts together), video count, verification, level, bio and avatar. A user that does not exist answers 404 and is not charged.Required: mid - Bilibili creator videos
GET /v1/raw/bilibili/creator_videosVideos a creator uploaded, newest, most played or most saved first, up to 50 a page and 100 pages; same ids as video detail, with play, comment and danmaku counts (no likes, coins, saves or shares). Use the previous page's cursor as page to continue; stop when has_more is false. A creator without videos, or one that does not exist, answers empty and is not charged.Required: mid - Bilibili popular videos
GET /v1/raw/bilibili/popularBilibili's popular videos, 20 a page, as the same records as video detail (same ids) with plays, likes, coins, saves, comments, shares and danmaku. Use the previous page's cursor as page to continue; stop when has_more is false.
A request and its response
Bilibili video detail(GET /v1/raw/bilibili/video). The sample comes from the endpoint catalog, not live data; a full response also carries request_id and meta.
curl 'https://api.qovia.ai/v1/raw/bilibili/video?bvid=BV1naKB64Evm' \ -H "Authorization: Bearer $QOVIA_KEY"
{
"data": {
"id": "soc_bil_9b89815a7ce3",
"src": "social",
"platform": "bilibili",
"lang": "zh-CN",
"text": "一口气看懂先进封装:H100、B200、CoWoS与HBM如何连接?\nAI芯片为什么离不开先进封装?…",
"author": {
"uid_hash": "8fb5730b2ca6",
"mid": "1517478075",
"name": "坤元Research",
"avatar": "https://i0.hdslb.com/bfs/face/8036b7133d5ba1fdc4286353885fdde55f0095dd.jpg"
},
"metrics": {
"plays": 220502,
"likes": 5640,
"coins": 3550,
"saves": 7982,
"comments": 404,
"shares": 1558,
"danmaku": 242
},
"extra": {
"source_id": "BV1naKB64Evm",
"url": "https://www.bilibili.com/video/BV1naKB64Evm",
"title": "一口气看懂先进封装:H100、B200、CoWoS与HBM如何连接?",
"aid": "116944493613065",
"cid": "40089160246",
"duration_s": 1697,
"published_at": "2026-07-19T11:23:00+08:00",
"category": {
"id": 2103,
"name": null
},
"tags": [
"先进封装",
"CoWoS",
"台积电",
"HBM",
"财经科普"
],
"keywords": [
"先进封装",
"台积电",
"HBM"
],
"cover": "https://i1.hdslb.com/bfs/archive/bca0873add82bb7e6c8d7cf2b2e71cea9d18e798.jpg"
},
"prov": {
"hash": "0xb5092dfcfd4fa826",
"ts": "2026-10-20T12:00:00+08:00",
"source": "live"
}
}
}FAQ
How do I add the Bilibili MCP server to Claude Code?
Run claude mcp add --transport http qovia https://api.qovia.ai/mcp. Finding and reading endpoints needs no key; to call one, add your API key as an Authorization: Bearer header in the MCP config (see the MCP docs). A new account gets 50 trial calls.
What can an AI do with the Bilibili MCP server?
It exposes four tools: search_endpoints, get_endpoint, call_endpoint and get_account. The AI searches for "bilibili" with search_endpoints, picks from the 8 endpoints, and pulls videos, danmaku, comments and replies, creator profiles, search and popular videos with call_endpoint. Calls are billed exactly like the HTTP API.
What Bilibili data can I get?
Video detail (title, description, uploader, category, tags, and play, like, coin, save, comment, share and danmaku counts), keyword video search, top-level comments and nested replies, danmaku, creator profiles and their uploads, and Bilibili's popular videos.
Which ID identifies a Bilibili video?
The video endpoints take the BV id (bvid), not the older av number; creator endpoints take the mid. Search, creator uploads and popular videos return records with the same ids as video detail.
How much danmaku can I get?
The danmaku endpoint returns the current and historical danmaku of the video's first part, de-duplicated and cut at limit; has_more true means it was cut, so raise limit. complete=false means some segments could not be fetched.
Do I need a Bilibili account or cookies?
No. All you need is a Qovia API key: no accounts, cookies, proxies or request signing to maintain.
How is it billed?
Prepaid and per call: only successful calls that return data are charged, and empty results, errors and timeouts are not. Every response says what it cost (meta.charged_usd). Each endpoint's price is in the API reference.
What should I keep in mind when using the data?
Qovia provides a data API service and claims no ownership of the underlying content. Use the data under applicable law and Bilibili's platform rules; see our terms of service.
Your agent only knows what you give it
Give it Douyin, Xiaohongshu (RedNote), WeChat and product reviews: structured, per call, nothing charged for failures.