bilibili MCP Server Integration
Integrate AI workflows with the bilibili MCP Server to access and analyze user profiles, video information, and perform content searches directly from bilibili.com.

What does “bilibili” MCP Server do?
The bilibili MCP Server is a Model Context Protocol (MCP) server designed to connect AI assistants and applications with the bilibili.com API. By serving as a bridge, it enables AI-powered workflows to access and retrieve information from bilibili, such as user profiles, video metadata, and search results. This integration enhances the capabilities of AI assistants for tasks involving video content discovery, user data retrieval, and content analysis. Developers can leverage this server to automate and streamline workflows that require interaction with bilibili’s vast content ecosystem, making it easier to incorporate up-to-date video and user information into various applications or research projects.
List of Prompts
No prompt templates are explicitly mentioned in the available documentation or code.
List of Resources
No explicit resource primitives are listed in the available documentation or code.
List of Tools
- Get user information by
mid
Retrieves detailed information about a bilibili user given their user ID (mid
). - Search video information by
bvid
Fetches metadata and details for a specific bilibili video using its uniquebvid
. - Search videos by keywords
Allows searching bilibili for videos that match specific keywords, returning a list of relevant results.
Use Cases of this MCP Server
- User Data Retrieval
Automate the process of fetching information about particular bilibili users based on their user IDs, useful for social media analytics and research. - Video Metadata Extraction
Quickly obtain detailed video metadata by providing abvid
, streamlining workflows for content curation or analysis. - Content Discovery
Search for videos by keywords, enabling AI assistants to find relevant content for recommendations, summaries, or further processing. - Automated Monitoring
Integrate the MCP server into monitoring tools to track specific users or types of content on bilibili in real time. - Data Enrichment for Applications
Enrich internal applications or bots with up-to-date bilibili information to enhance user experiences or support research.
How to set it up
Windsurf
- Ensure you have Node.js installed.
- Open your Windsurf configuration file.
- Add the bilibili MCP server using the npm package:
{ "mcpServers": { "bilibili": { "command": "npx", "args": ["-y", "@wangshunnn/bilibili-mcp-server"] } } }
- Save the configuration and restart Windsurf.
- Verify that the bilibili MCP server appears in your MCP options.
Claude
- Ensure Node.js is installed.
- Open the Claude configuration file.
- Add the bilibili MCP server with:
{ "mcpServers": { "bilibili": { "command": "npx", "args": ["-y", "@wangshunnn/bilibili-mcp-server"] } } }
- Save and restart Claude.
- Confirm the “bilibili MCP” option appears in the interface.
Cursor
- Make sure Node.js is set up.
- Edit the Cursor configuration file.
- Insert the following MCP server entry:
{ "mcpServers": { "bilibili": { "command": "npx", "args": ["-y", "@wangshunnn/bilibili-mcp-server"] } } }
- Save and restart Cursor.
- Check for the new bilibili MCP listing.
Cline
- Verify Node.js is installed.
- Access the Cline configuration file.
- Add the bilibili MCP server configuration:
{ "mcpServers": { "bilibili": { "command": "npx", "args": ["-y", "@wangshunnn/bilibili-mcp-server"] } } }
- Save the changes and restart Cline.
- Confirm the MCP server is recognized.
Securing API Keys
If the bilibili API requires authentication, use environment variables for sensitive keys. Here is an example configuration:
{
"mcpServers": {
"bilibili": {
"command": "npx",
"args": ["-y", "@wangshunnn/bilibili-mcp-server"],
"env": {
"BILIBILI_API_KEY": "${BILIBILI_API_KEY}"
},
"inputs": {
"apiKey": "${BILIBILI_API_KEY}"
}
}
}
}
Replace "BILIBILI_API_KEY"
with your actual environment variable name.
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"bilibili": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “bilibili” to the actual name of your MCP server and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | |
List of Prompts | ⛔ | No prompt templates found |
List of Resources | ⛔ | No resource primitives documented |
List of Tools | ✅ | User info, video info, video search tools listed |
Securing API Keys | ✅ | Example provided |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned |
Based on the available documentation and server features, the bilibili MCP Server provides essential tools for interaction with the bilibili API but lacks detailed documentation on resources, prompts, and advanced MCP features such as roots and sampling. Its integration instructions are clear and it is open source with a permissive license. Rating: 5/10.
MCP Score
Has a LICENSE | ✅ |
---|---|
Has at least one tool | ✅ |
Number of Forks | 1 |
Number of Stars | 4 |
Frequently asked questions
- What is the bilibili MCP Server?
The bilibili MCP Server is a Model Context Protocol server that bridges AI assistants and applications to the bilibili.com API, enabling access to user profiles, video metadata, and search results for content automation and analysis.
- What tools does the bilibili MCP Server provide?
It provides tools for retrieving user information by user ID (mid), fetching video metadata by bvid, and searching for videos by keywords.
- What are common use cases for this server?
Use cases include automated user data retrieval, video metadata extraction, content discovery, real-time monitoring, and enriching apps or bots with up-to-date bilibili data.
- How do I secure my bilibili API keys?
Store sensitive API keys in environment variables and reference them in your MCP server configuration. Example: { "env": { "BILIBILI_API_KEY": "
" }, "inputs": { "apiKey": "${BILIBILI_API_KEY}" } } - How do I integrate the bilibili MCP Server with FlowHunt?
Add the MCP component to your workflow, configure it with your server’s details, and connect it to your AI agent in FlowHunt. This allows your agent to access all bilibili tools and data.
Connect FlowHunt with bilibili
Automate and enrich your AI solutions with real-time video and user data from bilibili. Start building powerful workflows today.