Content
# Bilibili MCP
[](README-en.md)
[](README.md)
[](README-ja.md)
[](https://archestra.ai/mcp-catalog/34892002__bilibili-mcp-js)
## Introduction
This is a Bilibili video search server based on the Model Context Protocol (MCP). The server provides a simple API interface that allows users to search for video content on Bilibili. It includes LangChain call examples and test scripts.
## Acknowledgments
- The LangChain example code is referenced from [mcp-langchain-ts-client](https://github.com/isaacwasserman/mcp-langchain-ts-client)
## Features
- Search for a list of video content summaries on Bilibili
- Retrieve popular content on Bilibili (comprehensive hot, must-watch for newcomers, rankings, all-site music charts)
- Get detailed information about Bilibili videos (supports BV number or AV number)
- Retrieve information about UP owners (basic information, number of fans, number of follows, etc.)
- Anime schedule (broadcast information of anime within a time range)
## System Requirements
- Node.js >= 20.12.0
## AI Tool Configuration
Taking Trae as an example

## npm package
Thanks to [HQHC](https://github.com/HQHC) for releasing the npm package
```json
{
"mcpServers": {
"bilibili-search": {
"command": "npx",
"args": ["bilibili-mcp-js"],
"description": "Bilibili video search MCP service, which can search for Bilibili video content in AI applications."
}
}
}
```
## Local Compilation Usage
> You need to compile it before use.
First run `npm run build`, then change the path here to your built dist folder path, `"args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"]`
```json
{
"mcpServers": {
"bilibili-search": {
"command": "node",
"args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"],
"description": "Bilibili video search MCP service, which can search for Bilibili video content in AI applications."
}
}
}
```
## Quick Start
> If you want to run the LangChain example, please configure the llm model and modify the .\example.ts file.
```javascript
const llm = new ChatOpenAI({
modelName: "gpt-4o-mini",
temperature: 0,
openAIApiKey: "your_api_key", // Replace with your model's key
configuration: {
baseURL: "https://www.api.com/v1", // Replace with your model's API address
},
});
```
bun:
```bash
# Install dependencies
bun i
# stdio mode
bun index.ts
# streamable http mode
TRANSPORT=remote bun index.ts
TRANSPORT=remote PORT=8888 bun index.ts
# Test script
bun test.js
# MCP Inspector
bun run inspector
# Run LangChain example
bun build:bun
bun example.ts
```
npm:
```bash
# Install dependencies
npm i
# stdio mode
npm run start
# streamable http mode
TRANSPORT=remote npm run start
TRANSPORT=remote PORT=8888 npm run start
# Test script
npm run test
# MCP Inspector
npm run inspector
# Run LangChain example
npm run build
node dist/example.js
```
## Screenshots


Connection Info
You Might Also Like
Git
Model Context Protocol Servers
TrendRadar
🎯 Say goodbye to information overload. AI helps you understand news hotspots...
repomix
📦 Repomix is a powerful tool that packs your entire repository into a...
Mastra
The TypeScript AI agent framework. ⚡ Assistants, RAG, observability....
Blender
BlenderMCP integrates Blender with Claude AI for enhanced 3D modeling.
cua
Open-source infrastructure for Computer-Use Agents. Sandboxes, SDKs, and...