Skip to main content
Glama

Bilibili Video Info MCP

by lesir831
MIT License
5

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:

  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"

Standard Bilibili video links are supported, such as:

-
security - not tested
A
license - permissive license
-
quality - not tested

A Bilibili MCP Server that can retrieve subtitles, danmaku (bullet comments), and comments information from videos using the video URL.

  1. Usage
    1. MCP Tools List
      1. 1. Get Video Subtitles
      2. 2. Get Video Danmaku (Bullet Comments)
      3. 3. Get Video Comments
    2. FAQ
      1. 1. How to find SESSDATA?
      2. 2. Error "SESSDATA environment variable is required"
      3. 3. What video link formats are supported?

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      An MCP server that enables users to generate summaries of YouTube videos in multiple languages and formats through integration with DeepSRT's API.
      Last updated -
      1
      70
      44
      TypeScript
      • Apple
    • A
      security
      A
      license
      A
      quality
      A MCP Server for TikTok videos that allows you to get video subtitles and post details, such as the number of likes, hashtags, and publishing time.
      Last updated -
      3
      2
      78
      JavaScript
      MIT License
    • A
      security
      F
      license
      A
      quality
      A MCP server that fetches and renders Baidu Baike (Chinese Wikipedia) discussion content, allowing users to access encyclopedia article discussions and generate readable analysis of the structured data.
      Last updated -
      1
      TypeScript
    • A
      security
      F
      license
      A
      quality
      Provides MCP access to the BangumiTV API, allowing users to retrieve and interact with anime, manga, music, and game information through natural language queries.
      Last updated -
      17
      6
      Python
      • Linux
      • Apple

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/lesir831/bilibili-video-info-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server