Skip to content
Back to search

bilibili-mcp-js

Bilibili video search MCP (Model Context Protocol) service - 哔哩哔哩视频搜索MCP服务

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/34892002--bilibili-mcp-js/badge.svg)](/listings/34892002--bilibili-mcp-js)

HTML

<a href="/listings/34892002--bilibili-mcp-js"><img src="/api/listings/34892002--bilibili-mcp-js/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 113 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Bilibili MCP
  2. [![English](https://img.shields.io/badge/English-Click-yellow)](README-en.md)
  3. [![中文文档](https://img.shields.io/badge/中文文档-点击查看-orange)](README.md)
  4. [![日本語](https://img.shields.io/badge/日本語-クリック-青)](README-ja.md)
  5. [![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/34892002/bilibili-mcp-js)](https://archestra.ai/mcp-catalog/34892002__bilibili-mcp-js)
  6. ## 简介
  7. 这是一个基于 Model Context Protocol (MCP) 的 B站视频搜索服务器。该服务器提供了简单的 API 接口,允许用户搜索 B站 的视频内容。提供LangChain调用示例、测试脚本。
  8. ## 鸣谢
  9. - LangChain 示例代码参考自 [mcp-langchain-ts-client](https://github.com/isaacwasserman/mcp-langchain-ts-client)
  10. ## 功能特点
  11. - 搜索B站视频内容简介列表
  12. - 获取B站热门内容(综合热门、入站必刷、排行榜、全站音乐榜)
  13. - 获取B站视频详情信息(支持BV号或AV号)
  14. - 获取UP主信息(基本信息、粉丝数、关注数等)
  15. - 番剧时间表(时间范围内的番剧播出信息)
  16. ## 系统要求
  17. - Node.js >= 20.12.0
  18. ## AI工具使用配置
  19. 以Trae为例
  20. ![](./imgs/config.png)
  21. ## npm package
  22. 感谢[HQHC](https://github.com/HQHC)发布的npm包
  23. ```json
  24. {
  25. "mcpServers": {
  26. "bilibili-search": {
  27. "command": "npx",
  28. "args": ["bilibili-mcp-js"],
  29. "description": "B站视频搜索 MCP 服务,可以在AI应用中搜索B站视频内容。"
  30. }
  31. }
  32. }
  33. ```
  34. ## 本地编译使用
  35. >需要编译之后才可以使用.
  36. 先npm run build然后这里改成你build之后的dist文件夹路径,"args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"]
  37. ```json
  38. {
  39. "mcpServers": {
  40. "bilibili-search": {
  41. "command": "node",
  42. "args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"],
  43. "description": "B站视频搜索 MCP 服务,可以在AI应用中搜索B站视频内容。"
  44. }
  45. }
  46. }
  47. ```
  48. ## 快速开始
  49. > 如果要运行langchain例子,请先配置llm模型,修改.\example.ts文件。
  50. ```javascript
  51. const llm = new ChatOpenAI({
  52. modelName: "gpt-4o-mini",
  53. temperature: 0,
  54. openAIApiKey: "your_api_key", // 替换成你模型的密钥
  55. configuration: {
  56. baseURL: "https://www.api.com/v1", // 替换成你模型的API地址
  57. },
  58. });
  59. ```
  60. bun:
  61. ```bash
  62. # 安装依赖
  63. bun i
  64. # stdio 模式
  65. bun index.ts
  66. # streamable http 模式
  67. TRANSPORT=remote bun index.ts
  68. TRANSPORT=remote PORT=8888 bun index.ts
  69. # 测试脚本
  70. bun test.js
  71. # MCP Inspector
  72. bun run inspector
  73. # 运行langchain例子
  74. bun build:bun
  75. bun example.ts
  76. ```
  77. npm:
  78. ```bash
  79. # 安装依赖
  80. npm i
  81. # stdio 模式
  82. npm run start
  83. # streamable http 模式
  84. TRANSPORT=remote npm run start
  85. TRANSPORT=remote PORT=8888 npm run start
  86. # 测试脚本
  87. npm run test
  88. # MCP Inspector
  89. npm run inspector
  90. # 运行langchain例子
  91. npm run build
  92. node dist/example.js
  93. ```
  94. ## 截图
  95. ![](./imgs/test-01.png)
  96. ![](./imgs/test-02.png)
  97. ## Hosted deployment
  98. A hosted deployment is available on [Fronteir AI](https://fronteir.ai/mcp/34892002-bilibili-mcp-js).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.