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.
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
sse (Server-Sent Events) run bilibili-video-info-mcp in sse mode
then config your mcp client
streamable-http (HTTP Streaming) run bilibili-video-info-mcp in streamable-http mode
then config your mcp client
Related MCP server: TikTok MCP
MCP Tools List
1. Get Video Subtitles
2. Get Video Danmaku (Bullet Comments)
3. Get Video Comments
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:
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