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 in the client
## Supported Operations
Supports the following operations:
1. `general_search`: Basic search function, using keywords to search on Bilibili.
2. `search_user`: Function specifically for searching Bilibili users, can be sorted by number of followers.
3. `get_precise_results`: Precise search function, can filter out unnecessary information, supports multiple search types:
- User search (`user`): Exactly matches the username, only returns exact matches. 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 result contains the `exact_match` field, indicating whether an exact match was found.
4. `get_video_danmaku`: Get video danmaku 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.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
chatbox
User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)