Skip to main content

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:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_bilibili_video_info_mcp-0.2.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_bilibili_video_info_mcp-0.2.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_bilibili_video_info_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8d6ab97410cc23a12193968568fd5e7be3b85b8af65318f440c76bd273da6519
MD5 e725fb1ca2bf7302c671ef4acfeb6cf2
BLAKE2b-256 5169e0989049dfa4719329dd6b41c3db04d04d4ac5e32add92b974a225d7acf5

See more details on using hashes here.

File details

Details for the file iflow_mcp_bilibili_video_info_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_bilibili_video_info_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f42425b4849e4a3a73ff765d0cc87ee111380f7e6dda5aacbd8a9fd3de1a8e2
MD5 c6dcb8683d8221a32bc41047a6c91cfe
BLAKE2b-256 f909001cfe788bce4d7993fa080d072a25fb8e365380a55b066e0b5c85feefaf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page