Bilibili Video Info MCP
# MCP Server for Bilibili Video Info
[](https://smithery.ai/server/@lesir831/bilibili-video-info-mcp)
[](./README.md) [](./README.zh.md)
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:
1. **stdio**
```json
{
"mcpServers": {
"bilibili-video-info-mcp": {
"command": "uvx",
"args": [
"bilibili-video-info-mcp"
],
"env": {
"SESSDATA": "your valid sessdata"
}
}
}
}
```
2. **sse** (Server-Sent Events)
run bilibili-video-info-mcp in sse mode
``` bash
cp .env.example .env
uvx run --env .env bilibili-video-info-mcp sse
```
then config your mcp client
```json
{
"mcpServers": {
"bilibili-video-info-mcp": {
"url": "http://{your.ip.address}:$PORT$/sse"
}
}
}
```
3. **streamable-http** (HTTP Streaming)
run bilibili-video-info-mcp in streamable-http mode
``` bash
cp .env.example .env
uvx run --env .env bilibili-video-info-mcp streamable-http
```
then config your mcp client
```json
{
"mcpServers": {
"bilibili-video-info-mcp": {
"url": "http://{your.ip.address}:$PORT$/mcp"
}
}
}
}
```
## MCP Tools List
### 1. Get Video Subtitles
```json
{
"name": "get_subtitles",
"arguments": {
"url": "https://www.bilibili.com/video/BV1x341177NN"
}
}
```
### 2. Get Video Danmaku (Bullet Comments)
```json
{
"name": "get_danmaku",
"arguments": {
"url": "https://www.bilibili.com/video/BV1x341177NN"
}
}
```
### 3. Get Video Comments
```json
{
"name": "get_comments",
"arguments": {
"url": "https://www.bilibili.com/video/BV1x341177NN"
}
}
```
## FAQ
### 1. How to find SESSDATA?
1. Log in to the Bilibili website
2. Open browser developer tools (F12)
3. Go to Application/Storage -> Cookies
4. Find the value corresponding to SESSDATA
### 2. Error "SESSDATA environment variable is required"
Make sure you have set the environment variable:
```bash
export SESSDATA="your SESSDATA value"
```
### 3. What video link formats are supported?
Standard Bilibili video links are supported, such as:
- https://www.bilibili.com/video/BV1x341177NN
- https://b23.tv/xxxxx (short links)
- Any link containing a BV number
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.