Basic information
About Bilibili Video Info Mcp Server
哔哩哔哩视频字幕、评论、弹幕获取
Bilibili Video Info Mcp is a MCP server in the Media & Design category listed in the AddMCP.net directory, published by lesir831. It exposes 3 tools, including get_subtitles, get_danmaku, get_comments. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 21 GitHub stars. Source code is hosted on github.com. Related topics: bilibili, info, mcp, mcp-server, video.
Setup
{
"mcpServers": {
"bilibili-video-info-mcp": {
"command": "uvx",
"args": [
"bilibili-video-info-mcp"
],
"env": {
"SESSDATA": "your valid sessdata"
}
}
}
}
{
"mcpServers": {
"bilibili-video-info-mcp": {
"command": "uvx",
"args": [
"bilibili-video-info-mcp"
],
"env": {
"SESSDATA": "your valid sessdata"
}
}
}
}
{
"servers": {
"bilibili-video-info-mcp": {
"command": "uvx",
"args": [
"bilibili-video-info-mcp"
],
"env": {
"SESSDATA": "your valid sessdata"
}
}
}
}
Bilibili Video Info Mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"bilibili-video-info-mcp": {
"command": "uvx",
"args": [
"bilibili-video-info-mcp"
],
"env": {
"SESSDATA": "your valid sessdata"
}
}
}
}
Bilibili Video Info Mcp tools
-
get_subtitles
— 获取B站视频的字幕内容
Args:
url: B站视频链接,例如 https://www.bilibili.com/video/BV1x341177NN
Returns:
列表形式的字幕内容,按语言分组
url:string* -
get_danmaku
— 获取B站视频的弹幕内容
Args:
url: B站视频链接,例如 https://www.bilibili.com/video/BV1x341177NN
Returns:
列表形式的弹幕内容
url:string* -
get_comments
— 获取B站视频的热门评论
Args:
url: B站视频链接,例如 https://www.bilibili.com/video/BV1x341177NN
Returns:
列表形式的热门评论
url:string*
Overview
What is Bilibili Video Info Mcp?
Bilibili Video Info Mcp is an MCP (Model Context Protocol) server that retrieves subtitles, danmaku (barrage), and comments from Bilibili videos. It is designed for users who want to integrate Bilibili video information into AI-powered workflows.
How to use Bilibili Video Info Mcp?
Configure your MCP client with the command uvx and arguments ["bilibili-video-info-mcp"]. Set the environment variable SESSDATA to your valid Bilibili session cookie. Invoke the tools get_subtitles, get_danmaku, or get_comments by providing the video URL as the url argument.
Key features of Bilibili Video Info Mcp
- Fetches video subtitles via
get_subtitlestool. - Retrieves danmaku (barrage) via
get_danmakutool. - Gets video comments via
get_commentstool. - Uses Bilibili session cookie for authentication.
- Supports standard and shortened Bilibili URLs.
Use cases of Bilibili Video Info Mcp
- Integrate Bilibili video subtitles into an AI assistant for content analysis.
- Extract danmaku reactions for sentiment analysis or trend tracking.
- Gather video comments for summarization or review aggregation.
Frequently asked questions
1 How do I find my SESSDATA?
Log into Bilibili, open browser developer tools (F12), go to Application/Storage → Cookies, and copy the value for SESSDATA.
2 What does the error "SESSDATA environment variable is required" mean?
It means the SESSDATA environment variable has not been set. Ensure you export it (e.g., export SESSDATA="your value") before starting the MCP server.
3 What video link formats does Bilibili Video Info Mcp support?
It supports standard Bilibili links (e.g.,
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In