bilibili-video-reader-mcp
Bilibili Video Reader v2.1
Skill + ステートレスMCPサーバーとして構築された読み取り専用のChatGPT/Codexプラグインで、現在はCloudflare Workersをターゲットにしているため、Renderやクレジットカードなしで実行できます。
MCPツール
get_bilibili_video_parts(url)— タイトル、作者、説明、すべてのP番号とCID。get_bilibili_part_transcript(url, part, language, max_chars)— 公式/AI字幕トラックと、1つのPに対するタイムスタンプ付きトランスクリプト。
WorkerはBilibiliのメタデータ/プレイヤー/字幕エンドポイントを直接呼び出します。字幕モードでは動画のダウンロードは不要です。
Related MCP server: video-context
Cloudflare Workersへのデプロイ
ダッシュボードでの手順
Cloudflareアカウントを作成/サインインします。
Workers & Pages → Create → Import a repository を開きます(表記は多少異なる場合があります)。
GitHubを接続し、
limuzi23/bilibili-video-reader-mcpを選択します。リポジトリのルートをルートディレクトリのままにします。
Cloudflareが
wrangler.jsoncを自動的に検出します。デフォルトのデプロイコマンドを使用します:
npx wrangler deploy。デプロイします。
Worker名は wrangler.jsonc と一致するため、bilibili-video-reader-mcp のままにする必要があります。
デプロイ後、Cloudflareから次のようなURLが提供されます:
https://bilibili-video-reader-mcp.<your-subdomain>.workers.devヘルスチェック:
https://bilibili-video-reader-mcp.<your-subdomain>.workers.dev/healthMCPエンドポイント:
https://bilibili-video-reader-mcp.<your-subdomain>.workers.dev/mcp公開字幕の場合、ランタイムシークレットは不要です。
オプションのプライベートログイン状態
字幕がログイン中にのみ表示される場合、Workerは BILI_COOKIE という名前のオプションのCloudflareシークレットを読み取ることができます。これはCloudflareの暗号化された Variables and Secrets UI内でのみ設定してください。生のCookieをChatGPTに貼り付けたり、GitHubにコミットしたりしないでください。
ChatGPTへの接続
ChatGPT → Settings → Security and login → Developer mode を有効にします。
Pluginsを開き、
+を押して、/mcpで終わるデプロイ済みURLを登録します。作成した接続から技術IDをコピーします。
plugin_asdk_app_で始まります。プラグインパッケージングフローでアプリ参照が必要な場合は、
python scripts/configure_plugin.py plugin_asdk_app_YOUR_IDを実行します。
OpenAIプラグインマニフェストは .codex-plugin/plugin.json にあり、ワークフロースキルは skills/bilibili-video-reader/ にあります。
ローカル開発
npm install
npm run dev必要に応じてローカルターミナルからデプロイ:
npm run deployエンドポイント:
GET /health
MCP /mcpアーキテクチャ
現在の本番パスは次のとおりです:
ChatGPT Skill
↓
Cloudflare Workers /mcp
↓
Bilibili metadata/player/subtitle APIs
↓
structured multi-P metadata + timestamped subtitles古い server/ Python実装は、リポジトリ内に参照用/レガシー実装としてのみ残っています。Cloudflareはこれを使用しません。
現在のスコープ
v2.1は マルチPメタデータ + 公式/AI字幕 に焦点を当てています。音声/動画のダウンロード、Whisper ASRの実行、動画フレームからのソースコードのOCRはまだ行いません。これらは、この字幕パスがエンドツーエンドで検証された後にのみ計画されています。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Bilibili (B站) data without login: video stats, comments, danmaku, creators, trending, hot searches.
Bilibili public video, article, dynamic, creator, comments, reactions, and transcript tools.
Real-time YouTube video transcripts, auto-translation, metadata, search & comments MCP ($1.00/1K).
Real-time YouTube video transcripts, auto-translation, metadata, search & comments MCP ($1.00/1K).
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for fetching Bilibili video metadata and subtitles. Supports running locally via stdio transport for integration with MCP clients like Cursor or Claude Desktop.19 npmISC
- AlicenseNot gradedqualityCmaintenanceEnables 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.1MIT
- AlicenseBqualityBmaintenanceEnables 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.16170 PyPI3Apache 2.0
- AlicenseAqualityCmaintenanceEnables 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.151MIT