home / mcp / bilibili api mcp server
Provides an MCP server for Bilibili API with general search, user search, precise results, and danmaku retrieval.
Configuration
View docs{
"mcpServers": {
"huccihuang-bilibili-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/your-project-path/bilibili-mcp-server",
"run",
"bilibili.py"
]
}
}
}This MCP server provides access to the Bilibili API through the Model Context Protocol, enabling you to perform searches, precise results filtering, user queries, and retrieve video danmaku data from your MCP-enabled client workflows.
To use this server with your MCP client, first ensure the server is configured in your client so it can be launched and connected during your workflows. You will run the MCP client and select this bilibili MCP server when you need to perform operations against the Bilibili API. The server exposes a set of actions you can invoke from your client, including general searches, user searches, precise result lookups, and video danmaku retrieval.
general_search: perform a basic search on Bilibili using keywords.
search_user: search for Bilibili users, with the ability to sort by follower count.
get_precise_results: perform an exact search with optional filtering across types such as user, video, live, or article. Returns include an exact_match flag to indicate if an exact match was found.
get_video_danmaku: fetch danmaku data for a given video.
Performs a basic keyword search on Bilibili and returns relevant results.
Searches for users on Bilibili with options to sort by follower count.
Executes an exact search with filters for user, video, live, or article, including an exact_match indicator.
Retrieves danmaku (on-screen comments) data for a specified video.