home / mcp / bilibili api mcp server

Bilibili API MCP Server

Provides an MCP server for Bilibili API with general search, user search, precise results, and danmaku retrieval.

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

Supported operations

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.

Available tools

general_search

Performs a basic keyword search on Bilibili and returns relevant results.

search_user

Searches for users on Bilibili with options to sort by follower count.

get_precise_results

Executes an exact search with filters for user, video, live, or article, including an exact_match indicator.

get_video_danmaku

Retrieves danmaku (on-screen comments) data for a specified video.