Bilibili
MCP Server for the Bilibili API, supporting various operations.
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
Maintainer
Works with
Installation
NPM
npx -y bilibiliManual Installation
npx -y bilibiliConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-serverInstall dependencies with uv
The project uses uv for dependency management. Run uv sync to create the virtual environment and install all required packages.
uv syncNote 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.
pwdAdd 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"
]
}
}
}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.
Bilibili Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Bilibili? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
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.
Set Up Bilibili in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.