Skip to main content
Glama
bilibili MCP Server

bilibili MCP Server

by wangshunnn

bilibili MCP 服务器

麻省理工学院许可 NPM 版本 NPM 解压后大小(含版本)

英语 |简体中文

bilibili.com API 的模型上下文协议 ( MCP ) 服务器。

特征

用户信息

  • [x] 通过mid获取用户信息

  • [x] 通过bvid搜索视频信息

  • [x] 通过关键词搜索视频

Related MCP server: MCP Feishu Project Manager

用法

克劳德桌面

参考官方文档

npm 配置(推荐)

{
  "mcpServers": {
    "bilibili": {
      "command": "npx",
      "args": ["-y", "@wangshunnn/bilibili-mcp-server"]
    }
  }
}

或者

本地克隆仓库的配置

{
  "mcpServers": {
    "bilibili": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/bilibili-mcp-server/dist/index.js"
      ]
    }
  }
}

保存配置并重启,您将看到新的bilibili MCP选项,如下所示:

演示视频

https://github.com/user-attachments/assets/813dece6-c9b5-4bc5-96c1-c3b4d284cc76

本地开发

  1. 安装依赖项

pnpm i
  1. 建造

pnpm build
# or
pnpm dev
  1. 针对本地 repo 进行调试,请参阅上文。

出版

要将新版本发布到 npm:

# For patch version update (0.0.x)
pnpm publish:patch

# For minor version update (0.x.0)
pnpm publish:minor

# For major version update (x.0.0)
pnpm publish:major

这些命令将自动:

  1. 修改 package.json 中的版本

  2. 构建项目

  3. 发布到 npm 注册表

致谢

Available Tools

3 tools
get_user_infoA

Get information about a Bilibili user

Inputs: mid (required).

get_video_infoB

Get detailed information about a Bilibili video

Inputs: bvid (required).

search_videosB

Search for videos on Bilibili

Inputs: keyword (required), count, page.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting different resources: user information, video information, and video search. There is no overlap in functionality, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (get_user_info, get_video_info, search_videos) with clear, descriptive names that align well with their functions.

    Tool Count3/5

    With only 3 tools, the server feels thin for a Bilibili platform that likely has more capabilities (e.g., comments, playlists, subscriptions). While the tools cover basic operations, the count is borderline low for the domain's scope.

    Completeness2/5

    The toolset is severely incomplete for a Bilibili server, missing essential CRUD operations like creating or updating content, managing interactions (e.g., comments, likes), and accessing user-specific features (e.g., subscriptions, history). This will cause significant agent failures in broader workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers