MCP ExplorerExplorer

Bilibili Mcp Js

@34892002on 23 days ago
99 MIT
FreeCommunity
AI Systems
Bilibili Video Search Server based on Model Context Protocol (MCP), providing a simple API interface.

Overview

What is Bilibili Mcp Js

bilibili-mcp-js is a video search server based on the Model Context Protocol (MCP) that allows users to search for video content on Bilibili. It provides a simple API interface and includes examples for using LangChain and testing scripts.

Use cases

Use cases for bilibili-mcp-js include building a video search engine for Bilibili content, integrating Bilibili videos into educational applications, or creating analytics tools that leverage video data from Bilibili.

How to use

To use bilibili-mcp-js, you need to set up your environment with Node.js version 20.12.0 or higher. You can install dependencies using either ‘bun’ or ‘npm’, and then run the server or test scripts as outlined in the README. Make sure to configure your LLM model in the example.ts file before running LangChain examples.

Key features

Key features of bilibili-mcp-js include Bilibili video search capabilities, support for paginated queries, returning video information such as title, author, view count, duration, and a standardized interface based on the MCP protocol.

Where to use

bilibili-mcp-js can be used in applications requiring video content search, such as video streaming platforms, educational tools, or any service that needs to integrate Bilibili video data.

Content

Bilibili MCP

English
中文文档
日本語

简介

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

鸣谢

功能特点

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

系统要求

  • Node.js >= 20.12.0

npm package

感谢HQHC发布的npm包

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

快速开始

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

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

bun:

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

npm:

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

截图


Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers