IB

iseenope/bilibili-mcp-server

Browser automation

This page was translated automatically. Technical details may differ from the original. View the original

11 stars 4 forks Quality 79 Trend 38MIT

Station B MCP Service - Model Context Protocol for API, 22 tools covering videos, screens, subtitles, reviews, live broadcasts, users, columns, etc

Overview

B station MCP service. Video search, comment management, screen subtitles, user information, dynamic columns, scan login, live screen visual analysis, etc., have 31 tools. - Fixing: nav returns -101 when login is not made, resulting in all relying WBI interfaces (user info / user videos / video subtitle) reporting "getting WBI keys failed". Wbi img also returns when it is not login, and now fails only when it is not. - Add buvid3 / buvid4 for automatic acquisition (x/frontend/finger/spi, cache 1 hour), all requests are carried together, and fingerprints are automatically replaced when 352. - Restoration: use dm img str/ dm cover img str/ dm img inter to avoid wind control -352. - Improvements: 352 / -403 Retry policy replaced with "Buvid → Brush WBI key → Space interface downgrade non-WBI path". - Node.js 22+ - B account number (for operations requiring login) - ffmpeg (** video downloading tool requirement; MacOS:brew install ffmpeg, Windows: choco install ffmpeg, Linux:apt install ffmpeg) 1. Transfer bilibri login to get 2D code 2. Mobile phone B station App scan 3. Video downloads automatically download DASH audio videos and merge them with ffmpeg to mp4. Saves by default to ./bilibili-downloads/. Bilibili live screenshot returns key frames as pictures to the model for visual AI analysis live content. If the model is not visual, only text metadata are returned。

Overview (machine translated)

English

B station MCP service. Video search, comment management, screen subtitles, user information, dynamic columns, scan login, live screen visual analysis, etc., have 31 tools.

Update Notes

#1.2.1

  • Repair: The return of [[T0] -101 when not login resulted in all relying WBI interfaces [[[T2] / [[T3] / video_subtitle / video_subtitle directly reporting “getting WBI keys failed”. [[T5] The same will be done when the login is not made, and it is now a failure only when it is actually not available.
  • Add [[T6] / buvid4 Automatically acquire[[[ [T8], cache 1 hour], carry all requests together, and automatically replace fingerprints upon [T9].
  • Restoration: [T10] Add [[T11] / [T12] / dm_img_inter parameters to avoid being wind-controlled -352.
  • Improvements: [[T15] / -403 The re-testing strategy is replaced by the "change buvid brush WBI key > .

List of Tools

| Category | Tools | Number | |: -: | | | : | Comments [[T17], [T18], [T19] 3 | Search | [T20], [T21] | 2 | | Videos [[T22], [T23], [T24], [T25], [T26] |5 Users [[T27], [[T28], [T29], [T30], [T31], [T32], [[T33] | Content [[T34], [T35], [T36] 3 [T37], [T38] | 2 | [T39] [T40] [T40] |2 |

This page was translated automatically. Technical details may differ from the original.

Install

npx -y bilibili-mcp-server
New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "bilibili": { "command": "npx", "args": ["-y", "bilibili-mcp-server"], "env": { "BILIBILI_SESSDATA": "你的sessdata", "BILIBILI_BILI_JCT": "你的bili_jct", "BILIBILI_DEDE_USER_ID": "你的uid" } } } }