by wangshunnn
bilibili-mcp-server 是一个 MCP (Model Context Protocol) 服务器,旨在与 Bilibili API 交互。它提供从 Bilibili 获取各种类型数据的功能,例如用户资料和视频信息。
bilibili-mcp-server is an MCP (Model Context Protocol) server designed to interact with the Bilibili API. It provides functionalities to fetch various types of data from Bilibili, such as user profiles and video information.
To use bilibili-mcp-server, you can configure it within applications that support MCP servers, such as Claude Desktop. There are two main ways to configure it:
Using npm (recommended):
{
"mcpServers": {
"bilibili": {
"command": "npx",
"args": ["-y", "@wangshunnn/bilibili-mcp-server"]
}
}
}
Using a local cloned repository:
{
"mcpServers": {
"bilibili": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/bilibili-mcp-server/dist/index.js"
]
}
}
}
After saving the configuration and restarting the application, you will see the "bilibili MCP" option available.
For local development, you can install dependencies with pnpm i
, build with pnpm build
(or pnpm dev
), and then debug.
mid
.bvid
.pnpm publish:patch
(for 0.0.x), pnpm publish:minor
(for 0.x.0), or pnpm publish:major
(for x.0.0). These commands handle version bumping, building, and publishing.bilibili-API-collect
as a resource for Bilibili API information.English | 简体中文
Model Context Protocol (MCP) Server for the bilibili.com API.
mid
bvid
Refer to the official documentation
config for npm (recommended)
{
"mcpServers": {
"bilibili": {
"command": "npx",
"args": ["-y", "@wangshunnn/bilibili-mcp-server"]
}
}
}
or
config for local cloned repo
{
"mcpServers": {
"bilibili": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/bilibili-mcp-server/dist/index.js"
]
}
}
}
Save the configuration and restart. You will see the new bilibili MCP
option as shown below:
https://github.com/user-attachments/assets/813dece6-c9b5-4bc5-96c1-c3b4d284cc76
pnpm i
pnpm build
# or
pnpm dev
To publish a new version to 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
These commands will automatically:
Reviews feature coming soon
Stay tuned for community discussions and feedback