Bilibili Info Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Bilibili Info Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
MCP server for fetching Bilibili video metadata and subtitles. Runs locally via stdio transport.
No installation required. Use directly with npx:
npx bilibili-info-mcp{
"mcpServers": {
"bilibili-info": {
"command": "npx",
"args": ["bilibili-info-mcp"],
"env": {
"SESSDATA": "your_bilibili_sessdata_cookie"
}
}
}
}| Variable | Required | Description |
|---|---|---|
SESSDATA | Only for subtitles | Bilibili login cookie. Find it in browser DevTools > Application > Cookies > bilibili.com after logging in. |
get-bilibili-video-infoFetches Bilibili video metadata and optionally subtitles.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | - | Bilibili video URL, e.g. https://www.bilibili.com/video/BVxxxxx |
includeSubtitles | boolean | No | false | Whether to fetch subtitles. Requires SESSDATA env var. |
Supported URL formats:
https://www.bilibili.com/video/BVxxxxxhttps://m.bilibili.com/video/BVxxxxx?k=vhttps://bilibili.com/video/BVxxxxx/{
"title": "Video title",
"author": "Author name",
"viewCount": "12345",
"description": "Video description",
"lengthSeconds": "360",
"publishDate": "2025-01-15T12:00:00+08:00",
"subtitle": {
"languageCode": "zh-Hans",
"content": "Subtitle text content joined by spaces"
}
}| Field | Type | Description |
|---|---|---|
title | string | Video title |
author | string | Uploader name |
viewCount | string | Total view count |
description | string | Video description (prefers desc_v2, falls back to desc) |
lengthSeconds | string | Video duration in seconds |
publishDate | string | Publish time in ISO 8601 format with +08:00 timezone |
subtitle | object (optional) | Subtitle track, only present when includeSubtitles is true and subtitles are available |
When includeSubtitles is true, returns a single subtitle track with the following priority:
中文, zh-CN, zh-Hans, zh)English, 英语, en, en-US)git clone https://github.com/sunwu51/bilibili-info-mcp.git
cd bilibili-info-mcp
npm install
npm run buildsrc/
index.ts # MCP server entry point (stdio transport)
bilibili-fetcher.ts # Bilibili API calls (video info + subtitles)
wbi.ts # WBI signature algorithm implementationhttps://api.bilibili.com/x/web-interface/view?bvid=BVID to get metadata.img_key and sub_key from https://api.bilibili.com/x/web-interface/nav (cached for 1 hour).https://api.bilibili.com/x/player/wbi/v2 with WBI signature (w_rid + wts) and SESSDATA cookie to get subtitle URLs, then fetches the subtitle JSON content.ISC
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.