Content
# Bilibili API MCP Server
An MCP (Model Context Protocol) server for the 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 that allows searching on Bilibili using keywords.
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 multiple 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 an `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 that branch.
3. Submit a PR.
## License
MIT
You Might Also Like
OpenWebUI
Open WebUI is an extensible web interface for customizable applications.

NextChat
NextChat is a light and fast AI assistant supporting Claude, DeepSeek, GPT4...

cherry-studio
Cherry Studio is a multilingual project for creative collaboration.

LibreChat
LibreChat is an open-source chat platform for seamless communication.

Continue
Continue is an open-source project for seamless server management.

repomix
Repomix packages your codebase into AI-friendly formats for easy use.