huccihuang avatar

Bilibili API

huccihuang/bilibili-mcp-server

The Bilibili MCP Server provides integration with the Bilibili (Chinese video platform) API, offering tools for searching content and retrieving metadata. It exposes four primary capabilities: general keyword search, user-specific search with follower-based sorting, precise filtered search across users/videos/livestreams/articles with exact-match identification, and video danmaku (comment) retrieval. This server enables AI assistants to query and access Bilibili content programmatically, addressing the need to integrate Chinese video platform data into language model applications.

GitHub stars
185
tools
3
last updated
Dec 15, 2025

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

general_search基础搜索功能,使用关键词在哔哩哔哩进行搜索。

基础搜索功能,使用关键词在哔哩哔哩进行搜索。

No parameter schema in public metadata yet.

search_user专门用于搜索哔哩哔哩用户的功能,可以按照粉丝数排序。

专门用于搜索哔哩哔哩用户的功能,可以按照粉丝数排序。

No parameter schema in public metadata yet.

get_precise_results精确搜索功能,可以过滤掉不必要的信息,支持多种搜索类型:用户、视频、直播、专栏。

精确搜索功能,可以过滤掉不必要的信息,支持多种搜索类型:用户、视频、直播、专栏。

No parameter schema in public metadata yet.

Sponsors

Readme

Bilibili API MCP Server

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

环境要求

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

使用方法

  1. clone 本项目

  2. 使用 uv 安装依赖

uv sync
  1. 在任意 mcp client 中配置本 Server
{
  "mcpServers": {
    "bilibili": {
      "command": "uv",
      "args": [
        "--directory",
        "/your-project-path/bilibili-mcp-server",
        "run",
        "bilibili.py"
      ]
    }
  }
}
  1. 在 client 中使用

支持的操作

支持以下操作:

  1. general_search: 基础搜索功能,使用关键词在哔哩哔哩进行搜索。
  2. search_user: 专门用于搜索哔哩哔哩用户的功能,可以按照粉丝数排序。
  3. get_precise_results: 精确搜索功能,可以过滤掉不必要的信息,支持多种搜索类型:
    • 用户搜索 (user):精确匹配用户名,只返回完全匹配的结果。例如搜索"双雷"只会返回用户名为"双雷"的账号信息,不会返回其他相关用户
    • 视频搜索 (video)
    • 直播搜索 (live)
    • 专栏搜索 (article) 返回结果包含 exact_match 字段,标识是否找到精确匹配的结果。
  4. get_video_danmaku·: 获取视频弹幕信息。

如何为本项目做贡献

  1. Fork 本项目
  2. 新建分支,并在新的分支上做改动
  3. 提交 PR

License

MIT

Details

Repository
github.com/huccihuang/bilibili-mcp-server
Category
Search & Web Crawling

Related Search & Web Crawling MCP servers

View all
1superagents-lab avatarSearch1APIsuperagents-lab/search1api-mcpMulti-engine web and platform search, news, Google Maps places, page reading, sitemaps, and trends.174stars
2jztan avatarPdf Mcpjztan/pdf-mcpAgentic RAG over one PDF or a whole folder: hybrid search, selective page reads, tables, OCR.168stars
3vortiago avatarOutline MCP Servervortiago/mcp-outlineConnect AI assistants to Outline for document search, reading, and management159stars
4kapeli avatarDash Mcp Serverkapeli/dash-mcp-serverMCP server for Dash, the macOS API documentation browser. Search 200+ docsets.156stars
5meysam81 avatarParse-DMARC MCP Servermeysam81/parse-dmarcLightweight DMARC parser: auto-fetch email reports, visualize compliance in a single all-in-one app143stars
6burtthecoder avatarShodanburtthecoder/mcp-shodanMCP server for Shodan API — device search, IP lookup, DNS, and CVE/CPE queries.135stars