Bilibili MCP
About
Bilibili video search MCP (Model Context Protocol) service - 哔哩哔哩视频搜索MCP服务
Details
- Author
- 34892002
- GitHub stars
- 178
- Downloads
- 353
- Categories
- Other
Jump to
- Search Bilibili video content with summaries
- Retrieve Bilibili hot content (comprehensive hot, must‑watch, rankings, music chart)
- Get detailed video information using BV or AV numbers
- Obtain UP主 (creator) info including followers and following counts
- Fetch anime schedule covering broadcast dates
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Bilibili MCPCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Bilibili MCP can be used via npx (npx bilibili-mcp-js) or by building locally from source. It supports both stdio and streamable HTTP transport (set TRANSPORT=remote and optionally PORT). Configuration is done in the MCP client’s settings (e.g., in Trae). A LangChain example and test scripts are included in the repository.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"bilibili mcp": {
"bilibili-mcp-js": {
"command": "bun",
"args": [
"index.ts"
]
}
}
}
}
McpServers
{
"bilibili-mcp-js": {
"command": "bun",
"args": [
"index.ts"
]
}
}
Bilibili MCP
简介
这是一个基于 Model Context Protocol (MCP) 的 B站视频搜索服务器。该服务器提供了简单的 API 接口,允许用户搜索 B站 的视频内容。提供LangChain调用示例、测试脚本。鸣谢
- LangChain 示例代码参考自 mcp-langchain-ts-client功能特点
- 搜索B站视频内容简介列表 - 获取B站热门内容(综合热门、入站必刷、排行榜、全站音乐榜) - 获取B站视频详情信息(支持BV号或AV号) - 获取UP主信息(基本信息、粉丝数、关注数等) - 番剧时间表(时间范围内的番剧播出信息)系统要求
- Node.js >= 20.12.0AI工具使用配置
以Trae为例
npm package
感谢HQHC发布的npm包{
"mcpServers": {
"bilibili-search": {
"command": "npx",
"args": ["bilibili-mcp-js"],
"description": "B站视频搜索 MCP 服务,可以在AI应用中搜索B站视频内容。"
}
}
}
本地编译使用
>需要编译之后才可以使用. 先npm run build然后这里改成你build之后的dist文件夹路径,"args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"]{
"mcpServers": {
"bilibili-search": {
"command": "node",
"args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"],
"description": "B站视频搜索 MCP 服务,可以在AI应用中搜索B站视频内容。"
}
}
}
快速开始
> 如果要运行langchain例子,请先配置llm模型,修改.\example.ts文件。const llm = new ChatOpenAI({
modelName: "gpt-4o-mini",
temperature: 0,
openAIApiKey: "your_api_key", // 替换成你模型的密钥
configuration: {
baseURL: "https://www.api.com/v1", // 替换成你模型的API地址
},
});
bun:
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



