Content
# Bilibili API MCP Server
MCP (Model Context Protocol) server for Bilibili API, supporting various operations.
## Requirements
- [uv](https://docs.astral.sh/uv/) - A project management tool that makes it easy to manage dependencies.
## Usage
1. Clone this project
2. Install dependencies using uv
```bash
uv sync
```
3. Configure this server in any MCP client
```json
{
"mcpServers": {
"bilibili": {
"command": "uv",
"args": [
"--directory",
"/your-project-path/bilibili-mcp-server",
"run",
"bilibili.py"
]
}
}
}
```
4. Use in client
## Supported Operations
The following operations are supported:
1. `general_search`: Basic search function, using keywords to search on Bilibili.
2. `search_user`: A function specifically for searching Bilibili users, can be sorted by the number of followers.
3. `get_precise_results`: Precise search function, can filter out unnecessary information, supports multiple search types:
- User search (`user`): Exact match username, only return completely matching results. For example, searching for "双雷" will only return account information with the username "双雷", not other related users
- Video search (`video`)
- Live search (`live`)
- Article search (`article`)
Returns results contain `exact_match` field, indicating whether an exact match was found.
4. `get_video_danmaku`: Get video danmaku information.
## Contributing
1. Fork this project
2. Create a new branch and make changes on the new branch
3. Submit a PR
## License
MIT
Connection Info
You Might Also Like
cc-switch
All-in-One Assistant for Claude Code, Codex & Gemini CLI across platforms.
awesome-mcp-servers
A collection of MCP servers.
git
A Model Context Protocol server for Git automation and interaction.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.
Appwrite
Build like a team of hundreds