Content
# Bilibili API MCP Server
MCP (Model Context Protocol) server for Bilibili API, supporting various operations.
## Environment Requirements
- [uv](https://docs.astral.sh/uv/) - A project management tool that makes it easy to manage dependencies.
## Usage
1. Clone this project.
2. Use uv to install dependencies.
```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 it in the client.
## Supported Operations
The following operations are supported:
1. `general_search`: Basic search functionality, using keywords to search on Bilibili.
2. `search_user`: A feature specifically for searching Bilibili users, sortable by follower count.
3. `get_precise_results`: Precise search functionality that can filter out unnecessary information, supporting various search types:
- User search (`user`): Matches usernames exactly, returning only fully matched results. For example, searching for "双雷" will only return account information for the username "双雷" and will not return other related users.
- Video search (`video`)
- Live search (`live`)
- Article search (`article`)
The returned results include the `exact_match` field, indicating whether an exact match was found.
4. `get_video_danmaku`: Retrieve video danmaku (bullet comments) information.
## How to Contribute to This Project
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
awesome-mcp-servers
A collection of MCP servers.
Git
A Model Context Protocol server for Git automation and interaction.
Appwrite
Build like a team of hundreds
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.
chatbox
User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)
Continue
Continue is an open-source project for seamless server management.