Bilibili Video Info MCP
Allows retrieval of video information from Bilibili, including subtitles, danmaku (bullet comments), and comments via video URLs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bilibili Video Info MCP Get the subtitles for https://www.bilibili.com/video/BV1x341177NN"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server for Bilibili Video Info
A Bilibili MCP Server that can retrieve subtitles, danmaku (bullet comments), and comments information from videos using the video URL.
Usage
This MCP server supports three transport methods:
stdio
{
"mcpServers": {
"bilibili-video-info-mcp": {
"command": "uvx",
"args": [
"bilibili-video-info-mcp"
],
"env": {
"SESSDATA": "your valid sessdata"
}
}
}
}sse (Server-Sent Events) run bilibili-video-info-mcp in sse mode
cp .env.example .env
uvx run --env .env bilibili-video-info-mcp ssethen config your mcp client
{
"mcpServers": {
"bilibili-video-info-mcp": {
"url": "http://{your.ip.address}:$PORT$/sse"
}
}
}streamable-http (HTTP Streaming) run bilibili-video-info-mcp in streamable-http mode
cp .env.example .env
uvx run --env .env bilibili-video-info-mcp streamable-httpthen config your mcp client
{
"mcpServers": {
"bilibili-video-info-mcp": {
"url": "http://{your.ip.address}:$PORT$/mcp"
}
}
}Related MCP server: Bilibili Comments MCP
MCP Tools List
1. Get Video Subtitles
{
"name": "get_subtitles",
"arguments": {
"url": "https://www.bilibili.com/video/BV1x341177NN"
}
}2. Get Video Danmaku (Bullet Comments)
{
"name": "get_danmaku",
"arguments": {
"url": "https://www.bilibili.com/video/BV1x341177NN"
}
}3. Get Video Comments
{
"name": "get_comments",
"arguments": {
"url": "https://www.bilibili.com/video/BV1x341177NN"
}
}FAQ
1. How to find SESSDATA?
Log in to the Bilibili website
Open browser developer tools (F12)
Go to Application/Storage -> Cookies
Find the value corresponding to SESSDATA
2. Error "SESSDATA environment variable is required"
Make sure you have set the environment variable:
export SESSDATA="your SESSDATA value"3. What video link formats are supported?
Standard Bilibili video links are supported, such as:
https://b23.tv/xxxxx (short links)
Any link containing a BV number
Available Tools
3 toolsget_commentsARead-only
Get popular comments from a Bilibili video
Args:
url: Bilibili video URL, e.g., https://www.bilibili.com/video/BV1x341177NN
Returns:
List of popular comments including comment content, user information, and metadata such as like counts
Inputs: url (required).
get_danmakuARead-only
Get danmaku (bullet comments) from a Bilibili video
Args:
url: Bilibili video URL, e.g., https://www.bilibili.com/video/BV1x341177NN
Returns:
List of danmaku (bullet comments) with content, timestamp and user information
Inputs: url (required).
get_subtitlesARead-only
Get subtitles from a Bilibili video
Args:
url: Bilibili video URL, e.g., https://www.bilibili.com/video/BV1x341177NN
Returns:
List of subtitles grouped by language. Each entry contains subtitle content with timestamps.
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose targeting different aspects of video content: comments, danmaku (bullet comments), and subtitles. There is no overlap in functionality, and the descriptions make it easy to differentiate between these three types of video metadata.
All tools follow a consistent 'get_noun' pattern (get_comments, get_danmaku, get_subtitles) using snake_case throughout. This predictable naming convention makes it easy for agents to understand what each tool does based on its name alone.
With only 3 tools, the server feels somewhat thin for a video information domain. While the tools cover specific metadata types well, there are likely other relevant operations (like getting video details, statistics, or user info) that would make the surface more complete for typical video analysis workflows.
The toolset has significant gaps for a video information server. There's no way to get basic video metadata (title, description, duration, uploader), statistics (views, likes, shares), or user information. While the three tools provide specific content types, they don't cover the fundamental video information that would typically be needed first in most workflows.
Maintenance
Related MCP Connectors
Bilibili (B站) data without login: video stats, comments, danmaku, creators, trending, hot searches.
Bilibili public video, article, dynamic, creator, comments, reactions, and transcript tools.
Track Bilibili creators and get the latest updates on videos, dynamics, and articles. Fetch user p…
Transcribe public audio/video URLs and retrieve transcripts, SRT, and VTT subtitles.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Bilibili (B站) platform through API and web scraping. Supports video search, article search, video info retrieval, comment fetching, danmaku extraction, and article content access.4-
- AlicenseAqualityDmaintenanceEnables retrieval of comments from Bilibili videos and dynamic posts with support for pagination, sorting, and nested replies in both Markdown and JSON formats.29 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables retrieving Bilibili video metadata, part lists, and timestamped official/AI subtitle transcripts through MCP tools, without downloading videos.MIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to access Bilibili video data and turn videos into notes, including search, video info, subtitles, chapters, audio download, ASR transcription, comments, uploader collections, and favorites.1547 PyPI3MIT