Bilibili

v1.0.0Search & Data Extractionstable

MCP Server for the Bilibili API, supporting various operations.

bilibilimcpai-integration
Share:
186
Stars
0
Downloads
0
Weekly
0/5

What is Bilibili?

Bilibili is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for the bilibili api, supporting various operations.

MCP Server for the Bilibili API, supporting various operations.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • get_user_info
  • get_video_info
  • search_videos

Use Cases

Search and retrieve information from Bilibili API.
huccihuang

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y bilibili

Manual Installation

npx -y bilibili

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Bilibili

The Bilibili MCP server connects AI clients to the Bilibili video platform API, enabling search, user lookup, video information retrieval, and danmaku (bullet-chat comment) extraction through natural language. It supports keyword-based video search, exact-match user and content lookups, and fetching the real-time comment stream (danmaku) for any video — making it useful for content researchers, developers building Bilibili integrations, or anyone who wants to query the platform without navigating the website.

Prerequisites

  • Python 3.10 or newer with uv installed
  • Claude Desktop or another MCP-capable client
  • Git to clone the repository (the server runs from source)
  • No Bilibili account or API key required for public search and video info endpoints
1

Clone the Bilibili MCP server repository

The server runs from source, so clone the repository to a local directory.

git clone https://github.com/huccihuang/bilibili-mcp-server.git
cd bilibili-mcp-server
2

Install dependencies with uv

The project uses uv for dependency management. Run uv sync to create the virtual environment and install all required packages.

uv sync
3

Note the full path to the project directory

The MCP client configuration needs the absolute path to where you cloned the repository. Run pwd to get it.

pwd
4

Add the server to your MCP client configuration

Edit claude_desktop_config.json to add the Bilibili MCP server, replacing /path/to/bilibili-mcp-server with the absolute path from the previous step.

{
  "mcpServers": {
    "bilibili": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/bilibili-mcp-server",
        "run",
        "bilibili.py"
      ]
    }
  }
}
5

Restart your MCP client and test

Restart Claude Desktop, then ask it to search for a video on Bilibili to confirm the server is connected and working.

Bilibili Examples

Client configuration

Complete claude_desktop_config.json entry for the Bilibili MCP server, running from a cloned local copy of the repository.

{
  "mcpServers": {
    "bilibili": {
      "command": "uv",
      "args": [
        "--directory",
        "/home/user/bilibili-mcp-server",
        "run",
        "bilibili.py"
      ]
    }
  }
}

Prompts to try

These prompts exercise the four tools exposed by the Bilibili MCP server: general_search, search_user, get_precise_results, and get_video_danmaku.

- "Search Bilibili for videos about machine learning in Python"
- "Find the Bilibili user 'LKs影视剪辑' and show me their follower count"
- "Get precise video search results for 'Vue.js tutorial 2024' on Bilibili"
- "Fetch the danmaku comments from Bilibili video BV1xx411c7mD"
- "Search for live streams about coding on Bilibili"
- "Find articles about deep learning published on Bilibili"

Troubleshooting Bilibili

uv command not found when starting the server

Install uv with 'curl -LsSf https://astral.sh/uv/install.sh | sh', then open a new terminal. Verify with 'uv --version'. If using Claude Desktop on macOS, you may need to specify the full path to uv in the command field of the config (e.g., /Users/yourname/.cargo/bin/uv).

API requests return errors or empty results for some searches

Bilibili's public API rate-limits unauthenticated requests. If you are making many requests in quick succession, add a delay between calls. Some content may also be region-restricted and unavailable outside mainland China.

get_video_danmaku returns no data

Ensure you are providing the BV ID (e.g., BV1xx411c7mD) or AV number in the correct format. Danmaku data requires a valid video identifier. Some older or unlisted videos may have danmaku disabled by the uploader.

Frequently Asked Questions about Bilibili

What is Bilibili?

Bilibili is a Model Context Protocol (MCP) server that mcp server for the bilibili api, supporting various operations. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Bilibili?

Install via npm with the command: npx -y bilibili. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Bilibili?

Bilibili works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Bilibili free to use?

Yes, Bilibili is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "bilibili": { "command": "npx", "args": ["-y", "bilibili"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Bilibili?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides