bilibili-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BILI_JCT | No | Bilibili login jct token (optional) | |
| BILI_BUVID3 | No | Bilibili buvid3 identifier (optional) | |
| BILI_SESSDATA | No | Bilibili login session data (optional) |
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
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| bilibili_video_get_ai_conclusionA | 获取视频AI总结 Args: bvid: 视频的BV号 Returns: AI生成的视频总结内容 |
| bilibili_video_get_danmakuA | 获取视频弹幕列表 Args: bvid: 视频的BV号 page_num: 分P序号,从0开始 from_seg: 起始弹幕分段,默认0 to_seg: 结束弹幕分段,默认None表示不限制 Returns: 弹幕列表 |
| bilibili_video_get_download_infoA | 获取视频下载链接和播放器信息 Args: bvid: 视频的BV号 page_num: 分P序号,从0开始 Returns: 包含下载链接、清晰度列表、播放器配置等信息 |
| bilibili_video_get_infoA | 获取视频完整信息(包括基础信息、统计数据、分P列表、标签) Args: bvid: 视频的BV号,如 BV1xx411c7mD Returns: 视频完整信息,包含 title, desc, stat, pages, tags 等 |
| bilibili_video_interactA | 视频互动:点赞/投币/收藏/三连 Args: bvid: 视频的BV号 action: 互动类型 (like-点赞, coin-投币, favorite-收藏, triple-三连) cancel: 是否取消操作(仅对like/favorite有效) coin_num: 投币数量(1或2,action=coin时有效) media_id: 收藏夹ID(action=favorite时有效,不填则使用默认收藏夹) Returns: 操作结果 |
| bilibili_video_send_danmakuA | 发送弹幕 Args: bvid: 视频的BV号 message: 弹幕内容 page_num: 分P序号,从0开始 progress: 发送时间(毫秒),0表示开头 color: 颜色(十六进制),默认ffffff(白色) font_size: 字体大小 (18-小, 25-普通, 36-大) mode: 弹幕模式 (1-滚动, 4-底部, 5-顶部) Returns: 发送结果 |
| bilibili_user_get_contentsA | 获取用户内容(视频/专栏/相簿/追番/动态) Args: uid: 用户UID content_type: 内容类型 (video-视频, article-专栏, album-相簿, bangumi-追番) page_num: 页码,从1开始 page_size: 每页数量,最大50 keyword: 搜索关键词(仅video类型有效) offset: 动态分页偏移量(仅dynamic类型有效),为空时从第一条动态开始 Returns: 内容列表,dynamic类型返回结果中包含 next_offset 用于下次请求 |
| bilibili_user_get_followersA | 获取用户粉丝列表 Args: uid: 用户UID page_num: 页码,从1开始 page_size: 每页数量,默认20 order: 排序方式 (desc-倒序, asc-正序) Returns: 粉丝列表,注意:非自己只能查看前5页 |
| bilibili_user_get_followingsA | 获取用户关注列表 Args: uid: 用户UID page_num: 页码,从1开始 page_size: 每页数量,默认20 order: 排序方式 (desc-倒序, asc-正序) Returns: 关注列表,注意:非自己只能查看前5页 |
| bilibili_user_get_infoC | 获取用户完整信息 Args: uid: 用户UID Returns: 用户基础信息、关系统计、UP主数据 |
| bilibili_user_modify_relationA | 修改用户关系:关注/取关/拉黑/取消拉黑/移除粉丝 Args: uid: 目标用户UID action: 关系操作类型 Returns: 操作结果 |
| bilibili_get_hot_searchA | 获取热门搜索词 Returns: 热门搜索词列表 |
| bilibili_searchB | 统一搜索(综合/视频/用户/专栏/直播) Args: keyword: 搜索关键词 search_type: 搜索类型 page_num: 页码,从1开始 page_size: 每页数量 Returns: 搜索结果 |
| bilibili_comment_getA | 获取评论列表(新版懒加载模式) Args: oid: 对象ID(视频aid/动态id/文章cv号) type_: 评论类型 mode: 获取模式 (main-主列表, hot-热门) offset: 偏移量,首次请求为空字符串,后续请求使用上次返回的 next_offset Returns: 评论列表,包含 cursor 字段用于获取下一页 |
| bilibili_comment_operateA | 评论操作:点赞/取消点赞/点踩/取消点踩/删除/获取子评论 Args: oid: 对象ID(视频aid/动态id/文章cv号) rpid: 评论ID action: 操作类型 type_: 评论类型 page_index: 页码索引,从1开始(action=get_sub_comments时有效) page_size: 每页评论数,最大20(action=get_sub_comments时有效) Returns: 操作结果 |
| bilibili_comment_sendB | 发送评论/回复 Args: oid: 对象ID(视频aid/动态id/文章cv号) text: 评论内容 type_: 评论类型 root: 根评论ID(回复评论时填写) parent: 父评论ID(回复评论时填写,通常与root相同) Returns: 发送结果 |
| bilibili_get_hotB | 获取热门视频 Args: page: 页码(从 1 开始) page_size: 每页视频数(默认 20) Returns: 热门视频列表 |
| bilibili_get_rankB | 获取排行榜 Args: rank_type: 排行榜类型(all=全站,bangumi=番剧,movie=电影,documentary=纪录片, guochuang_anime=国产动画,guochuang=国创,game=游戏,music=音乐, douga=动画,ent=娱乐,life=生活,technology=科技,cinephile=影视, fashion=时尚,knowledge=知识,food=美食,sports=运动,car=汽车, dance=舞蹈,kichiku=鬼畜,animal=动物,tv=电视剧,variety=综艺, original=原创,rookie=新人) day: 时间范围(仅对 PGC 类型有效:番剧/电影/纪录片等),3=三日榜,7=周榜 Returns: 排行榜列表 |
| bilibili_session_interactionsB | 获取互动消息(回复/点赞/@) Args: interaction_type: 互动类型 - replies: 收到的回复 - likes: 收到的赞 - at: 收到的@消息 last_id: 最后一个ID,用于翻页 last_time: 最后一个消息的时间戳,用于翻页 Returns: 互动消息列表 |
| bilibili_session_listA | 获取会话列表或聊天记录 如果不提供 talker_id,则获取会话列表; 如果提供 talker_id,则获取与该用户的聊天记录。 Args: talker_id: 会话对象UID(不填则获取会话列表) session_type: 会话类型 1:私聊, 2:通知, 3:应援团, 4:全部(默认,仅列表有效) begin_seqno: 起始Seqno用于翻页,默认0获取最新消息(仅聊天记录有效) Returns: 会话列表或聊天记录 |
| bilibili_session_notificationsB | 获取通知和设置信息 Args: notification_type: 通知类型 - unread: 未读消息数量统计(默认) - system: 系统消息列表 - settings: 消息设置 Returns: 通知或设置信息 |
| bilibili_session_sendA | 发送私信文本消息 Args: receiver_id: 接收者 UID content: 消息内容(纯文本) Returns: 发送结果 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/YunGaoluo/bilibili-mcp-python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server