English | 简体中文
Model Context Protocol (MCP) Server for the bilibili.com API.
- Get user information by
mid
- Search video information by
bvid
- Search videos by keywords
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:
claude-desktop.demo.mp4
- Install dependencies
pnpm i
- build
pnpm build
# or
pnpm dev
- debug for local repo, see above.
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:
- Bump the version in package.json
- Build the project
- Publish to npm registry