Content
# Bilibili MCP
[](README-en.md)
[](README.md)
[](README-ja.md)
## 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 usage 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
- Bilibili video search
- Supports paginated queries
- Returns video information (title, author, views, duration, etc.)
- Standardized interface based on the MCP protocol
## System Requirements
- Node.js >= 20.12.0
## npm package
Thanks to [HQHC](https://github.com/HQHC) for publishing the npm package
```json
{
"mcpServers": {
"bilibili-search": {
"command": "npx",
"args": ["bilibili-mcp"],
"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 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
bun i
bun index.ts
# Test script
bun test.js
# MCP Inspector
bun run inspector
# Run LangChain example
bun build:bun
bun example.ts
```
npm:
```bash
npm i
npm run start
# Test script
npm run test
# MCP Inspector
npm run inspector
# Run LangChain example
npm run build
node dist/example.js
```
## Screenshots


You Might Also Like
OpenWebUI
Open WebUI is an extensible web interface for customizable applications.

NextChat
NextChat is a light and fast AI assistant supporting Claude, DeepSeek, GPT4...

cherry-studio
Cherry Studio is a multilingual project for creative collaboration.

LibreChat
LibreChat is an open-source chat platform for seamless communication.

Continue
Continue is an open-source project for seamless server management.

repomix
Repomix packages your codebase into AI-friendly formats for easy use.