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 Model Context Protocol (MCP). This server provides a simple API interface that allows users to search for video content on Bilibili. Provides LangChain calling examples and test scripts.
## Acknowledgements
- LangChain example code is referenced from [mcp-langchain-ts-client](https://github.com/isaacwasserman/mcp-langchain-ts-client)
## Features
- Search Bilibili video content introduction list
- Get Bilibili popular content (comprehensive popular, must-see for newcomers, rankings, full site music chart)
- Get Bilibili video details (supports BV number or AV number)
- Get UP master information (basic information, number of fans, number of followers, etc.)
- Anime schedule (anime broadcast information within the time range)
## System Requirements
- Node.js >= 20.12.0
## AI Tool Usage Configuration
Take 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 Bilibili video content in AI applications."
}
}
}
```
## Local Compilation Usage
>It can only be used after compilation.
First npm run build, then change this to the path of the dist folder after your build, "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 Bilibili video content in AI applications."
}
}
}
```
## Quick Start
> If you want to run the langchain example, please configure the llm model first 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
awesome-mcp-servers
A collection of MCP servers.
git
A Model Context Protocol server for Git automation and interaction.
Appwrite
Build like a team of hundreds
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
chatbox
User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)