bilibili-mcp-js

bilibili-mcp-js

Standardized Bilibili video search server based on Model Context Protocol.

116
Stars
21
Forks
116
Watchers
4
Issues
Provides a Bilibili video search server that implements the Model Context Protocol (MCP), offering standardized API endpoints for querying video data. Supports features like paginated search, returning video details (title, author, views, duration), and showcases integration examples with LangChain. Designed to be used as an MCP-compliant service within larger AI-driven applications or pipelines. Includes setup instructions and testing scripts for both bun and npm ecosystems.

Key Features

MCP-compliant video search API for Bilibili
Paginated search of video content
Returns detailed video metadata (title, author, views, duration)
Supports both npm and bun environments
Example integrations with LangChain
Test scripts and MCP Inspector included
Standardized interface for AI applications
Multi-language README documentation
Easy deployment via npm package
Automated video data retrieval

Use Cases

Integrating Bilibili video search into conversational AI agents
Powering knowledge retrieval pipelines with Bilibili data
Enabling automated video discovery for research tools
Providing structured video metadata for content recommendation engines
Facilitating interactive video search features in chatbots
Enhancing language learning applications with targeted video search
Supporting trend analysis based on Bilibili video statistics
Developing tools to monitor video performance on Bilibili
Building MCP-compliant services for multimedia search
Integrating with LangChain to demonstrate protocol interoperability

README

Bilibili MCP

English 中文文档 日本語

简介

这是一个基于 Model Context Protocol (MCP) 的 B站视频搜索服务器。该服务器提供了简单的 API 接口,允许用户搜索 B站 的视频内容。提供LangChain调用示例、测试脚本。

鸣谢

功能特点

  • B站视频搜索
  • 支持分页查询
  • 返回视频信息(标题、作者、播放量、时长等)
  • 基于 MCP 协议的标准化接口

系统要求

  • Node.js >= 20.12.0

npm package

感谢HQHC发布的npm包

json
{
  "mcpServers": {
    "bilibili-search": {
    "command": "npx",
    "args": ["bilibili-mcp"],
    "description": "B站视频搜索 MCP 服务,可以在AI应用中搜索B站视频内容。"
    }
  }
}

快速开始

如果要运行langchain例子,请先配置llm模型,修改.\example.ts文件。

javascript
const llm = new ChatOpenAI({
  modelName: "gpt-4o-mini",
  temperature: 0,
  openAIApiKey: "your_api_key", // 替换成你模型的密钥
  configuration: {
    baseURL: "https://www.api.com/v1", // 替换成你模型的API地址
  },
});

bun:

bash
bun i
bun index.ts
# 测试脚本
bun test.js
# MCP Inspector
bun run inspector
# 运行langchain例子
bun build:bun
bun example.ts

npm:

bash
npm i
npm run start
# 测试脚本
npm run test
# MCP Inspector
npm run inspector
# 运行langchain例子
npm run build
node dist/example.js

截图

Star History

Star History Chart

Repository Owner

34892002
34892002

User

Repository Details

Language TypeScript
Default Branch main
Size 264 KB
Contributors 1
MCP Verified Sep 5, 2025

Programming Languages

TypeScript
53.97%
JavaScript
46.03%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • cloudflare/mcp-server-cloudflare

    cloudflare/mcp-server-cloudflare

    Connect Cloudflare services to Model Context Protocol (MCP) clients for AI-powered management.

    Cloudflare MCP Server enables integration between Cloudflare's suite of services and clients using the Model Context Protocol (MCP). It provides multiple specialized servers that allow AI models to access, analyze, and manage configurations, logs, analytics, and other features across Cloudflare's platform. Users can leverage natural language interfaces in compatible MCP clients to read data, gain insights, and perform automated actions on their Cloudflare accounts. This project aims to streamline the orchestration of security, development, monitoring, and infrastructure tasks through standardized MCP connections.

    • 2,919
    • MCP
    • cloudflare/mcp-server-cloudflare
  • video-editing-mcp

    video-editing-mcp

    MCP server for uploading, editing, searching, and generating videos via Video Jungle and LLMs.

    Implements a Model Context Protocol (MCP) server for seamless video uploading, editing, searching, and generative editing workflows, powered by Video Jungle integration and LLM assistance. Provides a suite of tools for video asset management, automated video editing, and context-aware search leveraging multimedia analysis. Supports both cloud workflows through Video Jungle and local searching capabilities, such as accessing the Photos app database on MacOS. Designed for integration with clients like Claude Desktop and supports automation, debugging, and development through open protocols.

    • 207
    • MCP
    • burningion/video-editing-mcp
  • mcp-open-library

    mcp-open-library

    Model Context Protocol server for accessing Open Library book and author data.

    Provides an implementation of a Model Context Protocol (MCP) server to enable AI assistants and clients to search and retrieve book and author information from the Open Library API. Supports searching by title, author name, and various identifiers, as well as fetching author photos and book covers. Returns structured, machine-readable data suitable for AI model context integration. Offers installation via Smithery, manual setup, and Docker deployment.

    • 34
    • MCP
    • 8enSmith/mcp-open-library
  • OpenMCP

    OpenMCP

    A standard and registry for converting web APIs into MCP servers.

    OpenMCP defines a standard for converting various web APIs into servers compatible with the Model Context Protocol (MCP), enabling efficient, token-aware communication with client LLMs. It also provides an open-source registry of compliant servers, allowing clients to access a wide array of external services. The platform supports integration with local and remote hosting environments and offers tools for configuring supported clients, such as Claude desktop and Cursor. Comprehensive guidance is offered for adapting different API formats including REST, gRPC, GraphQL, and more into MCP endpoints.

    • 252
    • MCP
    • wegotdocs/open-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results