home / mcp / bilibili mcp server

Bilibili MCP Server

Provides a universal Bilibili API search and enables MCP protocol-based integration with other systems.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "mr-house-bilibili-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/zao/project/bilibili-mcp-server",
        "run",
        "bilibili.py"
      ]
    }
  }
}

You run this MCP server to interact with the Bilibili API and expose a consistent MCP interface for integration with other systems. It provides a universal search capability over Bilibili data and allows you to connect your MCP clients through a standardized protocol, making it easier to compose workflows and automate data access.

How to use

Start by launching the MCP server in a way that your MCP clients can connect to. The server exposes a standard interface that MCP clients can query or subscribe to, enabling you to search Bilibili data and integrate it into your existing MCP-based pipelines. Ensure your client has access to the server URL or local endpoint, then perform searches or actions supported by your MCP client against the server.

How to install

Prerequisites: Python 3.10+ is required for running the server. You will install dependencies with the project’s package manager and then start the server.

+ Install Python 3.10 or higher on your system.  
+ Verify Python is available by running: `python3 --version` or `python --version`.
uv pip install -r requirements.txt

Run the MCP server using the following command to point to your server directory and the entry script. This will start the server so MCP clients can connect to it.

uv --directory /Users/zao/project/bilibili-mcp-server run bilibili.py

Additional notes

Dependency and runtime management is defined in the project configuration and locked to specific versions to ensure reproducible builds. If you modify dependencies, regenerate the lock file to keep builds consistent.