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 pagination 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 allows searching 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
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


Connection Info
You Might Also Like

Continue
Continue is an open-source project for enhancing MCP Server functionality.

repomix
Repomix packages your codebase into AI-friendly formats for seamless integration.

Mastra
Mastra is a TypeScript framework for building AI agents and assistants.
Blender
BlenderMCP integrates Blender with Claude AI for enhanced 3D modeling.
fastapi_mcp
FastAPI-MCP exposes FastAPI endpoints as Model Context Protocol tools with...
cua
Cua is a cross-platform project supporting Python and Swift on macOS.