Bilibili API MCP Server

Bilibili API MCP Server

bilibili-api-mcp-server•bysmyb5431

An MCP server for Bilibili APIs offering video search and recommendation, user lookup, user content retrieval, and danmaku fetching through defined tool operations.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Performs intelligent video search and recommendation, filtering classroom videos and returning up to 15 results with recommendations and summaries.
  • •Searches Bilibili users sortable by follower count, and resolves a user ID from a username with precise matching.
  • •Retrieves a user's latest dynamics, posted videos, and collections, including collection video lists and keyword search within collections.
  • •Fetches video danmaku from a link or BV number, extracting the BV number automatically and supporting multi-part videos.

BEST FOR

  • •Agents that need to discover and recommend Bilibili videos by keyword.
  • •Looking up a Bilibili creator and reviewing their latest videos, dynamics, or collections.
  • •Fetching danmaku for a specific Bilibili video to analyze viewer comments.

ABOUT BILIBILI-API-MCP-SERVER

Bilibili API MCP Server is cataloged as an MCP server attributed to smyb5431. An MCP server for Bilibili APIs offering video search and recommendation, user lookup, user content retrieval, and danmaku fetching through defined tool operations. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Bilibili API MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What kinds of operations does this MCP server expose?

It provides tools for video search and recommendation, user search, user content retrieval, collection queries, and video danmaku.

Can I run the server locally instead of via PyPI?

Yes; the README includes a local development flow that clones the repository, installs dependencies with uv, and configures the server in an MCP client.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 4e3fb150890f · 采集于 2026-11-13 12:25:57 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Bilibili API MCP Server

用于哔哩哔哩 API 的 MCP(模型上下文协议)服务器,支持多种操作。

环境要求

  • uv - 一个项目管理工具,可以很方便管理依赖。

使用方法

方式一:通过 PyPI 使用(推荐)

在任意 MCP client 中配置本 Server,系统会自动下载和启用

{
  "mcpServers": {
    "bilibili": {
      "type": "stdio",
      "isActive": true,
      "command": "uvx",
      "args": [
        "bilibili-api-mcp-server"
      ]
    }
  }
}

💡 提示:您也可以直接使用项目根目录下的 mcp-config.json 文件作为配置参考。

方式二:本地开发运行

  1. clone 本项目
git clone https://github.com/SMYB5431/bilibili-api-mcp-server.git
cd bilibili-api-mcp-server
  1. 使用 uv 安装依赖
uv sync
  1. 在任意 MCP client 中配置本 Server
{
  "mcpServers": {
    "bilibili": {
      "command": "uvx",
      "args": [
        "--directory",
        "/your-project-path/bilibili-api-mcp-server",
        "run",
        "bilibili.py"
      ]
    }
  }
}

开始使用

支持的操作

支持以下操作:

基础搜索功能

  1. search_and_recommend_videos: 智能视频搜索和推荐功能。

    • 按综合排序搜索视频内容
    • 自动过滤课堂视频(cheese链接)
    • 返回前15条视频结果(可自定义数量)
    • 基于搜索结果提供推荐理由
    • 分析视频质量和热度
    • 生成内容总结和推荐报告
  2. search_user: 专门用于搜索哔哩哔哩用户的功能,可以按照粉丝数排序。

  3. get_user_id_by_name: 通过用户名获取用户ID,支持精确搜索和详细信息返回。

    • 默认模式:只返回用户ID,用于快速获取用户标识
    • 详细模式:返回完整用户信息和精确匹配状态
    • 精确匹配:优先返回完全匹配用户名的结果
    • 错误处理:提供详细的错误信息和异常处理

用户内容获取功能

  1. get_user_dynamics: 获取指定用户的最新动态。

    • 支持通过用户名直接获取(如"技术爬爬虾")
    • 可指定获取动态数量(默认10条)
    • 返回动态内容、时间戳、链接等信息
  2. get_user_videos: 获取指定用户的最新投稿视频。

    • 支持通过用户名直接获取
    • 可指定获取视频数量(默认10条)
    • 返回视频标题、BV号、播放量、时长等详细信息
  3. get_user_collections: 获取指定用户的合集信息。

    • 支持通过用户名直接获取
    • 返回合集标题、视频数量、播放量等信息
    • 包含合集链接便于访问
  4. get_collection_videos: 获取指定合集中的视频列表。

    • 支持通过合集名称或合集ID获取
    • 可指定获取视频数量(默认10条)
    • 返回视频详细信息(标题、播放量、点赞数、投币数等)
    • 支持模糊匹配合集名称
  5. search_collection_by_keyword: 在用户合集中搜索包含关键词的视频。

    • 支持在所有合集中搜索特定关键词
    • 返回匹配的合集及其视频列表
    • 适用于快速定位特定主题的视频内容

其他功能

  1. get_video_danmaku: 获取视频弹幕信息。
    • 支持视频链接或BV号输入
    • 自动从链接中提取BV号
    • 支持多分P视频的弹幕获取
    • 返回详细的视频信息和弹幕数据

声明

本项目在开发和测试过程中使用了哔哩哔哩 UP主 技术爬爬虾 的公开内容作为示例数据。

本项目仅用于技术学习和研究目的,所有示例数据的使用均遵循哔哩哔哩平台的使用条款。如有任何版权问题,请联系项目维护者。

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Bilibili API MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/bilibili-api-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research