Bilibili MCP
Enables searching for Bilibili videos with support for pagination and returns video information including title, author, play count, and duration.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Bilibili MCP
简介
这是一个基于 Model Context Protocol (MCP) 的 B站视频搜索服务器。该服务器提供了简单的 API 接口,允许用户搜索 B站 的视频内容。提供LangChain调用示例、测试脚本。
Related MCP server: bilibili-video-reader-mcp
鸣谢
LangChain 示例代码参考自 mcp-langchain-ts-client
功能特点
B站视频搜索
支持分页查询
返回视频信息(标题、作者、播放量、时长等)
基于 MCP 协议的标准化接口
系统要求
Node.js >= 20.12.0
npm package
感谢HQHC发布的npm包
{
"mcpServers": {
"bilibili-search": {
"command": "npx",
"args": ["bilibili-mcp"],
"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:
bun i
bun index.ts
# 测试脚本
bun test.js
# MCP Inspector
bun run inspector
# 运行langchain例子
bun build:bun
bun example.tsnpm:
npm i
npm run start
# 测试脚本
npm run test
# MCP Inspector
npm run inspector
# 运行langchain例子
npm run build
node dist/example.js截图

Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Bilibili videos for AI agents: search, creators, trending, stats, tags and danmaku comments.
YouTube transcripts, search, channel browsing, and playlists for AI agents via MCP.
YouTube video/channel search, suggestions, details, comments/replies, Shorts, transcripts, paging.
Haokan video/user search, details, comments/replies, creators, creator videos and hot searches.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables users to search Bilibili videos, access trending rankings, and retrieve detailed information about videos, content creators, and anime schedules. It allows AI applications to interact directly with Bilibili content via simple API interfaces.110 npm198MIT
- AlicenseNot gradedqualityDmaintenanceEnables retrieving Bilibili video metadata, part lists, and timestamped official/AI subtitle transcripts through MCP tools, without downloading videos.MIT
- AlicenseBqualityBmaintenanceEnables reading public Bilibili video information — keyword search, UP profiles and uploads, video details and parts, comments and replies, danmaku, subtitles, and frame snapshots — through an MCP interface, with optional Bilibili login for authenticated features such as comments and subtitles.16134 PyPI3Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI clients to query and download Bilibili video data, including metadata, streams, danmaku, subtitles, comments, search, hot lists, users, live rooms, and account read-only items through MCP tools.151MIT