Bilibili

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.

Shell
claude mcp add --transport http qovia https://api.qovia.ai/mcp

8 Bilibili endpoints your AI can call

Parameters, response fields and code samples for each are in the API reference.

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
curl 'https://api.qovia.ai/v1/raw/bilibili/video?bvid=BV1naKB64Evm' \
  -H "Authorization: Bearer $QOVIA_KEY"
data in the 200 OK response
{
  "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.