Bilibili Comments MCP Server

基于 Model Context Protocol (MCP) 的 B 站视频与动态评论获取工具

Local serverstdio

What is the Bilibili Comments MCP Server?

基于 Model Context Protocol (MCP) 的 B 站视频与动态评论获取工具.

What Bilibili Comments MCP does

  1. 登录 B 站网页版 2. 打开开发者工具 (F12) 3. 切换到 Network 标签 4. 刷新页面,找到任意请求 5. 复制 Request Headers 中的 Cookie 值

Practical notes

  • Maintained by 222wcnm.

Recorded tools

  • page — 页码,默认1
  • pageSize — 每页数量(1-20),默认20
  • sort — 排序:0按时间,1按热度
  • includeReplies — 是否包含楼中楼回复,默认true
  • outputFormat — 输出格式:markdown 或 json,默认markdown
  • cookie — B站Cookie(可选)
  • dynamic_id — 动态ID(必需)
  • get_video_comments — The get_video_comments tool exposed by this server.
  • get_dynamic_comments — The get_dynamic_comments tool exposed by this server.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
page页码,默认1
pageSize每页数量(1-20),默认20
sort排序:0按时间,1按热度
includeReplies是否包含楼中楼回复,默认true
outputFormat输出格式:markdown 或 json,默认markdown
cookieB站Cookie(可选)
dynamic_id动态ID(必需)
get_video_commentsThe get_video_comments tool exposed by this server.
get_dynamic_commentsThe get_dynamic_comments tool exposed by this server.

How to install the Bilibili Comments MCP Server

{
  "mcpServers": {
    "bilibili-comments": {
      "command": "npx",
      "args": [
        "-y",
        "bilibili-comments-mcp"
      ],
      "env": {
        "BILIBILI_SESSDATA": "your_bilibili_sessdata_here"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
BILIBILI_SESSDATADeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Bilibili Comments MCP to page.”
  • “Use Bilibili Comments MCP to pageSize.”
  • “Use Bilibili Comments MCP to sort.”

Frequently asked questions

基于 Model Context Protocol (MCP) 的 B 站视频与动态评论获取工具 Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.