bilibili-agent-mcp
by Gsxcheng
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BILIBILI_COOKIE | No | 浏览器里完整 Cookie 字符串(推荐)。例如 "SESSDATA=...; bili_jct=...; buvid3=..."。不配置则以游客身份运行。 | |
| BILIBILI_FFMPEG | No | ffmpeg 路径。用于下载后自动合并音视频并写入章节,需确保在 PATH 中或在此指定绝对路径。 | ffmpeg |
| BILIBILI_BILI_JCT | No | 配合 BILIBILI_SESSDATA 使用的 csrf token(bili_jct)。 | |
| BILIBILI_MCP_HOST | No | 远程 HTTP 模式监听地址。 | 127.0.0.1 |
| BILIBILI_MCP_PORT | No | 远程 HTTP 模式监听端口。 | 8787 |
| BILIBILI_SESSDATA | No | 只填 SESSDATA 和 BILIBILI_BILI_JCT 这两项也可以作为 BILIBILI_COOKIE 的替代方式。需要 Cookie 的功能包括:720P/1080P 及以上清晰度(部分需大会员)、AI 字幕、稍后再看 / 收藏 / 历史 / 动态。 | |
| BILIBILI_MCP_TOKEN | No | 远程 HTTP 模式访问密钥(至少 16 位)。默认自动生成并持久保存到 ~/.bilibili-agent-mcp/token,密钥不对一律返回 404。 | |
| BILIBILI_USER_AGENT | No | 自定义 User-Agent。 | Chrome 130 |
| BILIBILI_ALLOW_WRITE | No | 设置为 "true" 才开放会修改账号的工具(如稍后再看添加 / 移除的 bili_watch_later_edit)。默认关闭。 | false |
| BILIBILI_DOWNLOAD_DIR | No | 下载与导出目录。本服务只读写该目录下的文件;远程模式的文件下载接口同样只能访问该目录。 | ~/Downloads/bilibili |
| BILIBILI_MCP_PUBLIC_URL | No | 远程 HTTP 模式对外地址,用于生成带访问密钥的下载链接。默认从请求头识别。 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues