B站的MCP,用来搜索B站视频 做B站视频搜索

B站的MCP,用来搜索B站视频 做B站视频搜索,支持分页查询 返回视频信息,包括标题、作者、播放量、时长等 #MCP #bilibili mcp

Bilibili MCP

简介

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

鸣谢

功能特点

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

系统要求

  • Node.js >= 20.12.0

快速开始

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

php 复制代码
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

截图

About

No description, website, or topics provided.

Resources

Readme

Activity

Stars

7 stars

Watchers

1 watching

Forks

1 fork

Report repository

Releases

No releases published

Packages

No packages published

Languages

© 2025 GitHub, Inc.

相关推荐
诺伦6 小时前
AI Agent编排实战:用四层架构搭建增长运营垂类Agent系统 | RiseClaw玄策
人工智能·ai agent·mcp·agent编排·增长运营
大连好光景8 小时前
MCP协议与Function Calling的区别?
functioncalling·mcp
Patrick在香港10 小时前
MCP 的 initialize 握手真的没了?67 行标准库实测 2026-07-28 规范
python·agent·claude·mcp·json-rpc
EatFan1 天前
AI Agent 进入工程化下半场:从多智能体编排走向治理、标准化与运行沙箱
人工智能·多智能体·ai agent·开源框架·mcp·agents.md
code2cat1 天前
【随笔】MCP缓存期限与共享范围:让Agent复用资料时记住边界
java·后端·缓存·ai agent·mcp
一缕82年的清风1 天前
实战指南:如何把现有 REST API 工业级封装为 MCP(Model Context Protocol)服务
python·mcp
网络毒刘1 天前
手写一个最小 MCP Server:stdio 传输、两个 tools、在 Cursor 里验通调用链
cursor·mcp·stdio·atomgit·工具实践
EatFan1 天前
当 CubeMX 遇上 AI Agent:用 MCP 让 AI 直接生成 STM32 HAL 工程
人工智能·stm32·嵌入式硬件·cubemx·stm32cubemx·hal·mcp
可乐ea2 天前
GitHub Security Lab 开源 Fuzzing Taskflow:让 LLM 智能体自己跑完 C/C++ 模糊测试
jvm·c++·github·模糊测试·mcp·代码agent·智能体自动化
网络毒刘2 天前
Token 账单的「隐形税」:系统提示、工具定义与历史滚动为何比生成贵
agent·token·cursor·成本·mcp