mcpField
B
Bilibili Video Info Mcp

Bilibili Video Info Mcp

Local
github.com/lesir831Media & Design21Updated 67w ago

About Bilibili Video Info Mcp

Bilibili Video Info Mcp is an MCP server that retrieves subtitles, danmaku, and comments from a Bilibili video URL. It is for clients handling video text and audience interaction data, and supports three transport methods.

Key features

  1. 01Retrieve subtitles from a video URL
  2. 02Fetch video danmaku
  3. 03Retrieve video comments
  4. 04Support three transport methods

Use cases

  1. 01Organize video subtitle content
  2. 02Analyze viewer danmaku
  3. 03Review video comments

MCP support

This MCP server exposes tools to retrieve subtitles, danmaku, and comments using a video URL. It supports stdio, SSE, and streamable HTTP.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"bilibili-video-info": {
"command": "uvx",
"args": [
"bilibili-video-info-mcp"
],
"env": {
"SESSDATA": "<SESSDATA>"
}
}
}
}
Run commanduvx bilibili-video-info-mcp
Environment variables to set
SESSDATA

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypibilibili-video-info-mcp

Tools

3

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
urlstringYes

Details

From the project README

MCP Server for Bilibili Video Info

smithery badge English 中文

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
{
    "mcpServers": {
        "bilibili-video-info-mcp": {
            "command": "uvx",
            "args": [
                "bilibili-video-info-mcp"
            ],
            "env": {
                "SESSDATA": "your valid sessdata"
            }
        }
    }
}
  1. sse (Server-Sent Events) run bilibili-video-info-mcp in sse mode
cp .env.example .env
uvx run --env .env bilibili-video-info-mcp sse

then config your mcp client

{
    "mcpServers": {
        "bilibili-video-info-mcp": {
            "url": "http://{your.ip.address}:$PORT$/sse"
        }
    }
}
  1. 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-http

then config your mcp client

{
    "mcpServers": {
        "bilibili-video-info-mcp": {
            "url": "http://{your.ip.address}:$PORT$/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?
  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:

export SESSDATA="your SESSDATA value"
3. What video link formats are supported?

Standard Bilibili video links are supported, such as:

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.