← Back to directory
B

Bilibili MCP Server

Community
A local MCP server for AI agents to read Bilibili subtitles and comments
GitHub source repository ↗
★ 17 Stars Category · Other Popular Source revision 7d60a9ed3d4c
64FMRS · C

A feature-rich local MCP server for Bilibili content. It requires credentials, supports search, subtitles, comments, favorites, and optional local ASR.

Reliability
10/20
Security and permissions
14/20
Maintenance
11/20
Documentation
16/20
Setup experience
13/20
Read the FMRS scoring method →

Bilibili MCP is a local MCP server that enables AI agents to read Bilibili content: fetching subtitles and comments, searching videos, browsing favorites, and transcribing videos without subtitles via an optional local ASR model.

Tools

search_bilibili_videos
Search Bilibili videos by topic and get a list of candidates
list_bilibili_favorite_videos
Iterate through the current account's favorites and read videos
get_video_transcript
Retrieve full transcript, keyword search, or trigger local ASR fallback
get_video_metadata
Get structured metadata like title, author, view count
get_video_comments
Get comments and replies for a video
get_video_chapters
Get video chapters and progress bar segments
get_credential_setup_instructions
Guide user through configuring Cookie
check_bilibili_credentials
Check if Cookie is configured and logged in
check_mcp_update
Check if the MCP package has an update

Setup

  1. Ensure Node.js 20+ is installed. 2. Add the stdio server to client config: command npx, args ['-y','@xzxzzx/bilibili-mcp@latest']. 3. Run npx -y @xzxzzx/bilibili-mcp@latest setup to configure credentials (Cookie), then run check to confirm. 4. Restart/reconnect the client, call check_bilibili_credentials to verify login, then test with search_bilibili_videos.
claude_desktop_config.json
{
  "type": "stdio",
  "command": "npx",
  "args": [
    "-y",
    "@xzxzzx/bilibili-mcp@latest"
  ]
}

Fit and risk

Best for

  • Creators or researchers who want AI assistants to extract text content from Bilibili videos
  • Users who need to batch organize Bilibili favorites or subtitle data

Not for

  • Users not willing to provide Bilibili Cookie credentials
  • Anonymous use cases without accessing private content such as favorites
  • Users requiring long transcriptions that exceed resource limits

Required permissions

  • Requires Bilibili login credentials (Cookie) for features like search and favorites
  • Credentials stored locally in config file (~/.bilibili-mcp/config.json)
  • Requests are sent only to official Bilibili endpoints

Risks and side effects

  • Credentials stored locally without OS-level encryption
  • High-frequency calls may trigger Bilibili risk control or rate limiting
  • This is a third-party tool, not an official Bilibili service

Troubleshooting

  1. If login fails, check credential configuration (run `setup` to force reconfigure)
  2. If ASR unavailable, ensure the model is installed via `setup` and `doctor --json` reports `asr.status: ready`
  3. If the MCP server is unavailable, check client configuration and network connectivity

Use cases

Read subtitles and comments of Bilibili videos, supporting timestamps and keyword search
Search videos by topic and get metadata
Iterate your own favorites for batch processing
Transcribe videos without subtitles using local ASR (requires model installation)

Supported clients

Claude DesktopFull support