Skip to main content
Glama

SubDownload MCPサーバー

SubDownloadは、YouTubeをMCPネイティブなデータソースとして公開します。OAuthで一度接続すれば、AIエージェントは動画の要約、完全なトランスクリプトの取得(AI ASRによる字幕なし動画への対応を含む)、チャンネルやプレイリストの検索、そしてセッションをまたいだ呼び出しのためにユーザーごとのナレッジベースへすべてを保存するツールを利用できるようになります。

推奨されるセットアップは、MCPクライアントを上記のホストエンドポイントに直接指定し、OAuthで認証することです(以下の「クイック接続」を参照)。このリポジトリには、ローカルのサブプロセスを好む環境向けに、軽量なstdioプロキシ(Node + Docker)も同梱されています。

認証

動的クライアント登録(RFC 7591)を用いたOAuth 2.1。事前共有された client_id や client_secret は不要です。MCPクライアントが初回接続時に自動的に登録を行います。

ディスカバリー(RFC 9728):

  1. トークンなしで /mcp にPOSTすると、401 エラーとともに /.well-known/oauth-protected-resource を指す WWW-Authenticate ヘッダーが返されます。

  2. そのドキュメントが認可サーバー(https://api.subdownload.com)を指し示します。

  3. MCPクライアントは、PKCEを用いた標準的な認可 → コールバック → トークンのフローに従います。

APIキーによる代替手段: https://subdownload.com/account の各アカウントでは、OAuthをサポートしていないクライアント向けにBearerトークンが公開されています。

Related MCP server: YouTube Transcript MCP Server

ツール

ツール

機能

search_youtube

YouTube全体のキーワード検索

fetch_video_info

動画メタデータ(タイトル、チャンネル、再生時間、再生回数)の取得

fetch_transcript

タイムスタンプ付きの完全なトランスクリプト

transcribe_video

字幕のない動画に対してAI ASRでトランスクリプトを生成

get_asr_task

実行中のAI文字起こしジョブのポーリング

resolve_channel

ハンドル、URL、またはIDによるチャンネル検索

list_channel_videos

チャンネル内の動画一覧

get_channel_latest_videos

チャンネルの最新動画

search_channel_videos

特定のチャンネル内での検索

list_playlist_videos

プレイリストの内容一覧

save_to_library

動画の要約やトランスクリプトを個人のナレッジベースに保存

list_library

保存したナレッジベースの閲覧

get_library_item

保存された単一アイテムの取得

クイック接続

Claude Desktop / Cursor / Windsurf / OAuth対応のMCPクライアント

{
  "mcpServers": {
    "subdownload": {
      "url": "https://api.subdownload.com/mcp"
    }
  }
}

初回使用時にクライアントがOAuthをトリガーし、GoogleまたはLINUX DOでサインインします。登録時に無料クレジットが付与されます(カード不要)。

Bearerトークン対応クライアント

{
  "mcpServers": {
    "subdownload": {
      "url": "https://api.subdownload.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

アカウントページからAPIキーを取得してください。

ローカルstdioプロキシ (Docker / npm)

サブプロセス転送を好むクライアント向けに、このリポジトリにはAPIキーを使用して tools/call をホストエンドポイントに転送する軽量なNodeプロキシが同梱されています。

# Docker
docker build -t subdownload-mcp .
docker run --rm -i -e SUBDOWNLOAD_API_KEY=YOUR_API_KEY subdownload-mcp

# Or via Node directly
npm install
SUBDOWNLOAD_API_KEY=YOUR_API_KEY npm start

クライアント設定例:

{
  "mcpServers": {
    "subdownload": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "-e", "SUBDOWNLOAD_API_KEY", "subdownload-mcp"],
      "env": { "SUBDOWNLOAD_API_KEY": "YOUR_API_KEY" }
    }
  }
}

ツールスキーマはインラインで宣言されているため、認証情報なしでイントロスペクション(initialize、tools/list)が機能します。tools/call には SUBDOWNLOAD_API_KEY が必要です。

料金

登録時に無料クレジットが付与されます。Proプランは月額5,000クレジットです。詳細は https://subdownload.com/pricing を参照してください。

サポート

ライセンス

MIT(このドキュメントリポジトリに適用されます。SubDownloadサービス自体はホスト型SaaSです。詳細は https://subdownload.com/terms を参照してください)。

Available Tools

13 tools
fetch_transcriptA
Read-only

Fetch the existing official transcript (subtitles/captions) of a YouTube video, with per-segment timestamps and language detected. Errors with NO_CAPTIONS if the video has no captions — fall back to transcribe_video in that case to generate one with AI ASR. This call is free.

Inputs: video_id (required), lang, save.

fetch_video_infoA
Read-only

Fetch consolidated YouTube video metadata with numeric types — title, channel, duration, view count, publish date, thumbnail, description, captions availability. Does NOT include the transcript itself; call fetch_transcript or transcribe_video for that. Cheap, fast, free.

Inputs: video_id (required).

get_asr_taskA
Read-only

Poll the status of an ASR task created by transcribe_video. Returns one of queued, downloading, transcribing, finalizing, done, or failed. When status is done, includes the full transcript with timestamps. Recommended polling interval: 3-5 seconds. Free — does not consume credits.

Inputs: task_id (required).

get_channel_latest_videosA
Read-only

Get the most recent videos from a YouTube channel — convenience wrapper over list_channel_videos with no pagination. Best for 'what did this creator publish recently?' style queries.

Inputs: channel (required).

get_library_itemA
Read-only

Read a saved Library item with its transcript and AI summary inline (when available). Use after list_library to fetch the full content the user saved. Free.

Inputs: id (required), locale.

list_channel_videosA
Read-only

List all videos from a YouTube channel ordered by publish date (newest first), with pagination. Returns up to 30 per page plus a continuation token if more results exist. For just the most recent handful, prefer get_channel_latest_videos for simplicity.

Inputs: channel, continuation.

list_libraryA
Read-only

List videos the user has saved to their Library (transcripts + summaries). Supports substring search on title/author, favorites filter, and pagination. Returns recently saved items first. Scoped to the calling user's data only.

Inputs: favorite, q, limit, offset.

list_playlist_videosA
Read-only

List videos in a YouTube playlist in order, with pagination. Returns video metadata and position within the playlist. Works for any public or unlisted playlist exposed by its URL/ID.

Inputs: playlist, continuation.

resolve_channelA
Read-only

Resolve a YouTube @handle, channel URL, video URL, or raw channel ID into canonical channel info (channel ID, name, handle, subscriber count, video count, avatar). Call this first when you only have a handle or URL but need a channel ID for the other channel-scoped tools.

Inputs: input (required).

save_to_libraryA
Idempotent

Save a video to the authenticated user's Library. Three modes via kind: 'asr' bookmarks the video and flips has_asr (use after a successful transcribe_video → fetch_transcript flow); 'summary' uploads a summary blob; 'both' does both at once. Idempotent: saving the same video twice updates the existing entry.

Inputs: video_id (required), kind (required), title, author, +7 more.

search_channel_videosA
Read-only

Search for specific videos within a single YouTube channel. Restricts results to the given channel. Use after resolve_channel if starting from a handle. Useful for 'find Karpathy's video about backpropagation' style queries.

Inputs: channel (required), q (required), limit.

search_youtubeA
Read-only

Search YouTube globally for videos, channels, or playlists on any topic. Returns up to 50 results with metadata. Use this for topic-based discovery when the user has not specified a channel — for searching within a known channel use search_channel_videos instead.

Inputs: q (required), type, limit.

transcribe_videoA
Idempotent

Start an asynchronous AI ASR (Whisper) transcription of a YouTube video. Returns immediately with a task_id and estimated_wait_seconds; the actual transcription runs in the background. Poll status with get_asr_task. Use this when fetch_transcript returned NO_CAPTIONS or when the video has no captions. Costs 5 credits, debited only on successful completion.

Inputs: video_url (required), lang.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but fetch_transcript vs transcribe_video and list_channel_videos vs get_channel_latest_videos overlap enough that users could initially pick the wrong one. The descriptions provide good disambiguation, so only a slight deduction.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern: list_, get_, fetch_, search_, transcribe_, resolve_, save_. Minor variation between 'fetch' and 'get' is semantically negligible and does not break the pattern.

    Tool Count5/5

    13 tools is well within the ideal range for this domain, covering channel discovery, video search, transcript fetch/generation, ASR status polling, and library management without unnecessary bloat.

    Completeness4/5

    The toolset covers the main workflows of finding videos, fetching or generating transcripts, and saving/reading library items. Obvious gaps are the lack of a library delete/update tool and no way to list available caption tracks before requesting a transcript.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers