Bilibili API MCP Server
用于哔哩哔哩 API 的 MCP(模型上下文协议)服务器,支持多种操作。
环境要求
- uv - 一个项目管理工具,可以很方便管理依赖。
使用方法
-
clone 本项目
-
使用 uv 安装依赖
uv sync
- 在任意 mcp client 中配置本 Server
{
"mcpServers": {
"bilibili": {
"command": "uv",
"args": [
"--directory",
"/your-project-path/bilibili-mcp-server",
"run",
"bilibili.py"
]
}
}
}
- 在 client 中使用
支持的操作
支持以下操作:
general_search: 基础搜索功能,使用关键词在哔哩哔哩进行搜索。search_user: 专门用于搜索哔哩哔哩用户的功能,可以按照粉丝数排序。get_precise_results: 精确搜索功能,可以过滤掉不必要的信息,支持多种搜索类型:- 用户搜索 (
user):精确匹配用户名,只返回完全匹配的结果。例如搜索"双雷"只会返回用户名为"双雷"的账号信息,不会返回其他相关用户 - 视频搜索 (
video) - 直播搜索 (
live) - 专栏搜索 (
article) 返回结果包含exact_match字段,标识是否找到精确匹配的结果。
- 用户搜索 (
get_video_danmaku·: 获取视频弹幕信息。
如何为本项目做贡献
- Fork 本项目
- 新建分支,并在新的分支上做改动
- 提交 PR
License
MIT
Metadata
Release files for netmind-bilibili-mcp-server 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netmind_bilibili_mcp_server-0.1.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netmind_bilibili_mcp_server-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / netmind_bilibili_mcp_server-0.1.2.tar.gz
| Download URL | netmind_bilibili_mcp_server-0.1.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eba4a04a2f4c4cda3023c2a3ce2e24fea98a0d0f64e2774b0aa1813b9be23f37
|
|
BLAKE2b-256 checksum How to use checksums |
3093b990c528c6241ad256501aa95b4dbb3a58edb0c8469fc60934b14ea4f273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Release files / netmind_bilibili_mcp_server-0.1.2-py3-none-any.whl
| Download URL | netmind_bilibili_mcp_server-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5aaa40207753f3a39ad90a1d20897edb7605076add82ad5d5a758eb5a7ad6ec8
|
|
BLAKE2b-256 checksum How to use checksums |
37cb3a6a34fe1c6a8cbf458c91bcb1c0496e51d1eb07d3d8541d501e7f3e956a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|