Bilibili Video Info MCP
Retrieves subtitle content, danmaku (bullet comments), and user comments from Bilibili videos using their URL, allowing AI agents to analyze and process video-related text content from the platform.
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 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-subtitle-fetch
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 retrieves a distinct type of content: comments, danmaku, and subtitles. There is no overlap in functionality, making it easy for an agent to select the appropriate tool.
All tool names follow a consistent 'get_' prefix followed by a resource name in snake_case (get_comments, get_danmaku, get_subtitles), providing a predictable pattern.
With 3 tools, the count is reasonable for a focused MCP server. It is within the ideal range, though it could be expanded slightly to cover more video info without becoming unwieldy.
The server name suggests it covers Bilibili video information, but the tool set lacks essential video metadata such as title, description, uploader, or statistics, leaving a significant gap for general video information tasks.
Maintenance
Related MCP Connectors
MCP server for China Railway 12306 ticket availability: schedules and seats by Chinese station name.
MCP server for China Railway 12306 ticket availability: schedules and seats by Chinese station name.
An MCP server that provides tools to discover and retrieve podcast episodes transcripts.
MCP server for real-time Chinese internet hot-search and trending boards across major platforms.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server that provides services for the bilibili.com API, supporting functions such as obtaining user information and video search.31Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA Bilibili subtitle fetching MCP server that supports various input formats (BV number, video URL, short link) and offers configurable language preferences, output formats, and ASR fallback.10GPL 3.0
- FlicenseAqualityDmaintenanceAn MCP server that extracts and analyzes subtitles from YouTube and Bilibili videos, supporting time-stamped keyword search and video information retrieval.4-
- AlicenseBqualityDmaintenanceA MCP server providing 22 tools to interact with Bilibili API, enabling video info, search, user profile, comments, rankings, and messaging with login support for write operations.224GPL 3.0