Skip to main content
Glama
bilibili-video-reader-mcp

bilibili-video-reader-mcp

by limuzi23

Bilibili Video Reader v2.1

Ein schreibgeschütztes ChatGPT/Codex-Plugin, aufgebaut als Skill + zustandsloser MCP-Server, jetzt für Cloudflare Workers ausgelegt, sodass es ohne Render oder Kreditkarte läuft.

MCP-Tools

  • get_bilibili_video_parts(url) — Titel, Autor, Beschreibung, alle P-Nummern und CIDs.

  • get_bilibili_part_transcript(url, part, language, max_chars) — offizielle/KI-Untertitelspuren und Transkript mit Zeitstempeln für ein P.

Der Worker ruft die Metadaten-/Player-/Untertitel-Endpunkte von Bilibili direkt auf. Für den Untertitelmodus ist kein Video-Download erforderlich.

Related MCP server: video-context

Bereitstellung auf Cloudflare Workers

Dashboard-Pfad

  1. Cloudflare-Konto erstellen/anmelden.

  2. Workers & Pages → Create → Import a repository öffnen (Formulierung kann leicht abweichen).

  3. GitHub verbinden und limuzi23/bilibili-video-reader-mcp auswählen.

  4. Das Repository-Root als Root-Verzeichnis beibehalten.

  5. Cloudflare sollte wrangler.jsonc automatisch erkennen.

  6. Den Standard-Deploy-Befehl verwenden: npx wrangler deploy.

  7. Bereitstellen.

Der Worker-Name muss bilibili-video-reader-mcp bleiben, da er mit wrangler.jsonc übereinstimmt.

Nach der Bereitstellung erhalten Sie von Cloudflare eine URL ähnlich wie:

https://bilibili-video-reader-mcp.<your-subdomain>.workers.dev

Health-Check:

https://bilibili-video-reader-mcp.<your-subdomain>.workers.dev/health

MCP-Endpunkt:

https://bilibili-video-reader-mcp.<your-subdomain>.workers.dev/mcp

Für öffentliche Untertitel ist kein Laufzeit-Secret erforderlich.

Optionaler privater Login-Status

Wenn ein Untertitel nur im angemeldeten Zustand sichtbar ist, kann der Worker ein optionales Cloudflare-Secret namens BILI_COOKIE lesen. Konfigurieren Sie es ausschließlich in der verschlüsselten UI Variables and Secrets von Cloudflare. Fügen Sie rohe Cookies niemals in ChatGPT ein und committen Sie sie niemals auf GitHub.

Mit ChatGPT verbinden

  1. ChatGPT → Einstellungen → Sicherheit und Login → Entwicklermodus aktivieren.

  2. Plugins öffnen, + drücken und die bereitgestellte URL mit Endung /mcp registrieren.

  3. Die technische ID aus der erstellten Verbindung kopieren. Sie beginnt mit plugin_asdk_app_.

  4. python scripts/configure_plugin.py plugin_asdk_app_YOUR_ID ausführen, falls der Plugin-Packaging-Ablauf eine App-Referenz erfordert.

Das OpenAI-Plugin-Manifest liegt unter .codex-plugin/plugin.json und der Workflow-Skill unter skills/bilibili-video-reader/.

Lokale Entwicklung

npm install
npm run dev

Bei Bedarf von einem lokalen Terminal bereitstellen:

npm run deploy

Endpunkte:

GET  /health
MCP  /mcp

Architektur

Der aktuelle Produktionspfad ist:

ChatGPT Skill
    ↓
Cloudflare Workers /mcp
    ↓
Bilibili metadata/player/subtitle APIs
    ↓
structured multi-P metadata + timestamped subtitles

Die alte Python-Implementierung unter server/ bleibt nur als Referenz-/Legacy-Implementierung im Repository; Cloudflare verwendet sie nicht.

Aktueller Umfang

v2.1 konzentriert sich auf Multi-P-Metadaten + offizielle/KI-Untertitel. Es lädt noch kein Audio/Video herunter, führt kein Whisper ASR aus und extrahiert keinen Quellcode per OCR aus Videobildern. Diese sind erst geplant, nachdem dieser Untertitelpfad Ende-zu-Ende verifiziert wurde.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for fetching Bilibili video metadata and subtitles. Supports running locally via stdio transport for integration with MCP clients like Cursor or Claude Desktop.
      1
      9 npm
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to summarize, take notes on, and answer questions about YouTube, Bilibili, and Xiaohongshu videos by providing subtitles and local speech transcription with timestamps via MCP.
      1
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables reading public Bilibili video information — keyword search, UP profiles and uploads, video details and parts, comments and replies, danmaku, subtitles, and frame snapshots — through an MCP interface, with optional Bilibili login for authenticated features such as comments and subtitles.
      16
      170 PyPI
      3
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI clients to query and download Bilibili video data, including metadata, streams, danmaku, subtitles, comments, search, hot lists, users, live rooms, and account read-only items through MCP tools.
      15
      1
      MIT