Skip to main content

Add your description here

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netmind_bilibili_mcp_server-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netmind_bilibili_mcp_server-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file netmind_bilibili_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for netmind_bilibili_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3af4e2cdcf56cd6dda0c8f9799077f24ad8d87cf233e7bf1e513a0edad2eaed
MD5 8cad319dc475359ed040e45cf54ec9d1
BLAKE2b-256 106f0e6686ef0c13a39e3e3699a01b2fce2120224f2c75df5c85c925d8938794

See more details on using hashes here.

File details

Details for the file netmind_bilibili_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netmind_bilibili_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c18e926325b9ef4764290837a6136a35ec1e5897b88f8e25d8ac8c14fe9a903
MD5 8eb51306c90d22d677533d1b8e70e7a3
BLAKE2b-256 556078bb83c596818a407fa2c735cd5100d8954eea6414cd42418cd30971b599

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page