10 Bilibili endpoints · MCP
Bilibili MCP server
Bilibili is where long videos, reviews and tutorials live, and its comments are often the most detailed feedback a product gets. Through MCP your AI searches videos, reads a video’s details, comments and even its subtitles, and follows an uploader’s channel.
Get an API key88% fewer tokens
Across 8 recorded live Bilibili responses (2026-11-18), raw platform JSON is ~86k tokens vs ~10k via REST (88.9% fewer) and ~10k through this MCP server (88% fewer).
What to ask about Bilibili
“Read the subtitles of this Bilibili video and summarise it in 5 points: <BV link>”
Uses bilibili.videos.detail → bilibili.videos.subtitles, about $0.004 for one call of each
“What do viewers say in the comments of this review video?”
Uses bilibili.comments.list, $0.002 a call
“List the latest videos from this uploader and how their views compare.”
Uses bilibili.accounts.detail → bilibili.videos.list, about $0.004 for one call of each
“What is popular on Bilibili today?”
Uses bilibili.videos.trending → bilibili.trends.hot, about $0.004 for one call of each
Good to know about Bilibili
- Videos are identified by their BV ID (BV1…). Subtitles need the aid and cid, which the video detail call returns, so the AI reads the detail first.
- Not every video has subtitles: only those with uploaded or AI-generated captions return text.
Connect
Add this server address in your AI client: https://xtikapi.com/v1/mcp. In ChatGPT, Claude, Claude Code, Codex and Cursor you then sign in here and click Allow; the same address covers Bilibili and every other platform. Step-by-step for each client
All 10 Bilibili endpoints your AI can call
- Bilibili video search API$0.002
bilibili.videos.search· Search Bilibili videos by keyword - Bilibili video details API$0.002
bilibili.videos.detail· One Bilibili video by BV ID: title, uploader, views, likes, coins and favorites - Bilibili comments API$0.002
bilibili.comments.list· A page of comments on one Bilibili video - Bilibili account details API$0.002
bilibili.accounts.detail· A Bilibili account profile by UID - Bilibili comment replies API$0.002
bilibili.comment_replies.list· Replies under one Bilibili comment - Bilibili video list API$0.002
bilibili.videos.list· A Bilibili uploader's videos by mid (uid) - Bilibili popular videos API$0.002
bilibili.videos.trending· Bilibili popular videos right now - Bilibili video subtitles API$0.002
bilibili.videos.subtitles· Subtitle tracks of a Bilibili video, by aid and cid - Bilibili hot searches API$0.002
bilibili.trends.hot· Bilibili hot searches - Bilibili follower count API$0.002
bilibili.accounts.stats· Follower and following counts of a Bilibili account
Questions
Do I run into error -352 or 412 like with scrapers?
No. Those risk-control errors are handled on our side; you send the BV ID and get JSON back. If the platform still fails, the call is not charged.
Can it read an uploader’s follower count?
Yes. There is a separate endpoint for following and follower counts besides the profile.
What does it cost to use Bilibili through MCP?
find and describe are free; each call costs the endpoint's price, $0.002 for every Bilibili endpoint. Each question above shows roughly what it costs. You pay only when the platform answers; errors are free, and new accounts get $0.50 of trial credit.
Does Bilibili have an official API for this?
Bilibili has no public developer API for videos, comments or accounts. The community-documented web endpoints are guarded by risk checks such as error -352 and HTTP 412.