Skip to main content
Glama

支持能力

详细参数见 使用说明,版本变化见 更新记录。

Related MCP server: bilibili-mcp

快速开始

需要 Node.js 22.18+、24.11+ 或 26+。

包

用途

@bili-agent-kit/core

在 TypeScript / JavaScript 程序中使用 SDK

@bili-agent-kit/cli

在终端或脚本中调用,管理登录和操作确认

@bili-agent-kit/mcp

接入支持 stdio MCP 的 AI 助手

命令行

查看可用命令,再试着读取视频信息:

npx --yes @bili-agent-kit/cli@latest help
npx --yes @bili-agent-kit/cli@latest video '{"bvid":"BV1xx411c7mD"}'

扫码登录

npx --yes @bili-agent-kit/cli@latest auth.login
npx --yes @bili-agent-kit/cli@latest auth.status

用哔哩哔哩 App 扫码并在手机上确认。

接入 MCP

把下面的配置加入 AI 助手:

{
  "mcpServers": {
    "bilibili": {
      "command": "npx",
      "args": ["--yes", "@bili-agent-kit/mcp@latest"]
    }
  }
}

接入后,对助手说“登录 B 站”,用哔哩哔哩 App 扫码确认即可。

使用 SDK

在自己的项目中安装 SDK:

npm install @bili-agent-kit/core

读取视频信息:

import { loadKit } from "@bili-agent-kit/core";

const kit = await loadKit();
const video = await kit.reads.video({ bvid: "BV1xx411c7mD" });
console.log(video.title);

许可

使用 MIT License,第三方组件说明见 NOTICE。本项目与 Bilibili 官方无关联。

赞助

如果这个项目对你有帮助,欢迎通过微信或支付宝支持后续开发。

微信与支付宝赞助二维码

相关项目

  • codex-bili-dragon:在官方 Codex 客户端中运行的 B 站小白龙,按兴趣探索视频、写日记和处理消息。

  • dsh-bili-whale-dashboard:给 DSH 原版养鱼插件配套的管理后台,用来查看日记、审核回复和调整人设。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for interacting with Bilibili, enabling AI assistants to search videos, fetch comments and subtitles, publish content, and manage interactions. It also adds private message reading, stable TV login, and an automated comment workflow requiring human confirmation.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to operate a user's own Bilibili account through MCP tools: scan-code login, browsing recommendations and rankings, watching videos with AI summaries, subtitles and frame overviews, plus commenting, @-mentioning, direct messaging, posting dynamics, and uploading videos. All operations return structured JSON with built-in rate limiting, audit logging, and safety guardrails.
      1,154 PyPI
      389
      MIT