Skip to main content
Glama
XZXZZX-Ai

Bilibili Mcp Server Unofficial(video Subtitles And Comments)

by XZXZZX-Ai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BILIBILI_BILI_JCTYesThe value of the bili_jct (CSRF Token) cookie from Bilibili.
BILIBILI_SESSDATAYesThe value of the SESSDATA cookie from Bilibili.
BILIBILI_DEDEUSERIDYesThe value of the DedeUserID (User digital ID) cookie from Bilibili.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_credential_setup_instructionsA

Return safe Bilibili Cookie setup instructions for users or installing agents. Call this after installing the MCP server if credentials are not configured. Never returns Cookie values.

check_bilibili_credentialsA

Check whether Bilibili credentials are configured and logged in without exposing Cookie values. If missing or invalid, returns next_steps for setup.

check_mcp_updateA

Check the installed package version against the npm latest version and return safe MCP update guidance. Does not expose credentials.

get_video_infoA

获取 Bilibili 视频信息,优先返回字幕内容,如无字幕则返回视频简介和标签。支持指定偏好语言和多P分集选择。For credential help, call get_credential_setup_instructions.

get_video_commentsA

获取 Bilibili 视频热门评论。过滤表情占位符,优先保留包含时间戳的评论(如 '05:20')。支持 brief(10条)和 detailed(20条+回复)两种模式。For credential help, call get_credential_setup_instructions.

get_video_transcriptA

获取 Bilibili 视频纯字幕文本(按行合并)。支持分集选择、时间戳输出、时间区间过滤和可选关键词搜索。不自动降级到描述;仅在 fallback_to_description 为 true 且字幕不可用时返回视频描述。关键词搜索与描述降级不兼容。Requires Bilibili Cookie for reliable subtitle access. If unavailable, call get_credential_setup_instructions.

get_video_metadataA

获取 Bilibili 视频元数据(标题、作者、时长、发布日期、标签、统计信息、多P分集列表等)。不获取字幕或评论。

get_video_chaptersA

获取 Bilibili 视频的创作者/平台定义的章节(进度条分段),包含章节标题和起止时间。无章节时返回空列表,不推断章节。支持多P分集选择。

search_bilibili_videosA

按关键词搜索 Bilibili 视频,返回最多 10 个平台综合排序的候选元数据。不自动获取字幕、评论或重新排序。必须先配置并登录 Bilibili Cookie;如需帮助,请调用 get_credential_setup_instructions。

list_bilibili_favorite_videosA

Discover every created Favorite Folder of the currently authenticated Bilibili account and return one bounded page of its Video memberships. Follow the returned next_cursor until it is absent to traverse every Folder; do not assume one response contains the full account. Requires configured, logged-in Bilibili Cookie; call get_credential_setup_instructions for help.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/XZXZZX-Ai/bilibili-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server