# Bilibili Mcp Js

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

- **Type:** MCP server
- **Install:** `agentstack add mcp-34892002-bilibili-mcp-js`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [34892002](https://agentstack.voostack.com/s/34892002)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [34892002](https://github.com/34892002)
- **Source:** https://github.com/34892002/bilibili-mcp-js

## Install

```sh
agentstack add mcp-34892002-bilibili-mcp-js
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Bilibili MCP

[](README-en.md)
[](README.md)
[](README-ja.md)
[](https://archestra.ai/mcp-catalog/34892002__bilibili-mcp-js)

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

## 鸣谢
- LangChain 示例代码参考自 [mcp-langchain-ts-client](https://github.com/isaacwasserman/mcp-langchain-ts-client)

## 功能特点
- 搜索B站视频内容简介列表
- 获取B站热门内容(综合热门、入站必刷、排行榜、全站音乐榜)
- 获取B站视频详情信息（支持BV号或AV号）
- 获取UP主信息（基本信息、粉丝数、关注数等）
- 番剧时间表（时间范围内的番剧播出信息）

## 系统要求
- Node.js >= 20.12.0
## AI工具使用配置
以Trae为例

## npm package
感谢[HQHC](https://github.com/HQHC)发布的npm包
```json
{
  "mcpServers": {
    "bilibili-search": {
    "command": "npx",
    "args": ["bilibili-mcp-js"],
    "description": "B站视频搜索 MCP 服务，可以在AI应用中搜索B站视频内容。"
    }
  }
}
```
## 本地编译使用
>需要编译之后才可以使用.
先npm run build然后这里改成你build之后的dist文件夹路径，"args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"] 
```json
{
  "mcpServers": {
    "bilibili-search": {
      "command": "node",
      "args": ["d:\\your-path\\bilibili-mcp-js\\dist\\index.js"],
      "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
# stdio 模式
bun index.ts
# streamable http 模式
TRANSPORT=remote bun index.ts
TRANSPORT=remote PORT=8888 bun index.ts
# 测试脚本
bun test.js
# MCP Inspector
bun run inspector
# 运行langchain例子
bun build:bun
bun example.ts
```

npm:

```bash
# 安装依赖
npm i
# stdio 模式
npm run start
# streamable http 模式
TRANSPORT=remote npm run start
TRANSPORT=remote PORT=8888 npm run start
# 测试脚本
npm run test
# MCP Inspector
npm run inspector
# 运行langchain例子
npm run build
node dist/example.js
```

## 截图

## Hosted deployment

A hosted deployment is available on [Fronteir AI](https://fronteir.ai/mcp/34892002-bilibili-mcp-js).

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [34892002](https://github.com/34892002)
- **Source:** [34892002/bilibili-mcp-js](https://github.com/34892002/bilibili-mcp-js)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-34892002-bilibili-mcp-js
- Seller: https://agentstack.voostack.com/s/34892002
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
