get_transcript
Return the transcript for a single YouTube video URL or ID.
video_url必填include_timestamps
io.github.fbetteo由 GitHub 帳號 fbetteo 發布v1.0.0更新於 Oct 25, 2026
Transcripts from YouTube videos, whole channels and playlists for AI agents, with bulk ZIP export.
託管式 MCP 伺服器,可取得單一影片、頻道與播放清單的 YouTube 字幕,並支援批次 ZIP 匯出。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.fbetteo%2Fyoutube-transcripts/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"youtube-transcripts": {
"type": "http",
"url": "https://api.youtubetranscripts.fbetteo.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}Turn any YouTube video, playlist, or channel into agent-ready transcript context.
This package provides:
ytx, a CLI for transcripts, channel jobs, playlist jobs, polling, and ZIP downloads/mcp endpoint and Developer APIRun without installing:
Or install globally:
The CLI reads auth in this order:
YOUTUBE_TRANSCRIPT_API_KEYytx auth set-keySet an API key:
Or use environment variables:
PowerShell:
Get account credits:
Fetch one transcript:
Download channel transcripts:
Download playlist transcripts:
Poll a job:
Download a completed job:
Start the local stdio MCP server:
This command waits for JSON-RPC messages on stdin. Agent clients should launch it with:
Available MCP tools:
get_transcriptget_channel_infolist_channel_videosstart_channel_jobstart_playlist_jobget_job_statusget_download_urlManual smoke test:
If your API server is deployed with hosted MCP enabled:
List tools:
Call a tool:
The repo includes an installable skill template at:
For distribution, publish that file as the root skill.md in a separate public skill repo.
Most users do not need to set an API URL. The package defaults to the hosted production API.
Only set a custom base URL for local development, staging, self-hosted deployments, or debugging:
Or save it in local CLI config:
If fetch failed appears and the API logs show nothing, the CLI is not reaching the API host. Check:
The CLI base URL priority is:
YOUTUBE_TRANSCRIPT_API_BASE_URLAPI_BASE_URLOn Windows PowerShell, quote channel handles:
PowerShell aliases curl to Invoke-WebRequest; use curl.exe or Invoke-RestMethod.
來源:README.MD,提交 4be56f6
Return the transcript for a single YouTube video URL or ID.
video_url必填include_timestampsReturn metadata for a YouTube channel before starting a job.
channel必填List a YouTube channel's videos with duration metadata, in the order channel jobs use (long-form, then Shorts, then livestreams; newest first). limit=N previews what start_channel_job with max_videos=N downloads; has_more tells if the channel has more.
limitchannel必填Start an async job that downloads channel transcripts.
channel必填max_videosconcatenate_allinclude_timestampsStart an async job that downloads playlist transcripts.
playlist必填max_videosconcatenate_allinclude_timestampsPoll an async transcript job and get a download URL when ready.
job_id必填Return the ZIP download URL for a completed job.
job_id必填Cancel an async transcript job and refund unprocessed videos.
job_id必填已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在儲存庫或註冊中心條目中宣告授權條款。
npx youtube-transcript-agent --helpnpm install -g youtube-transcript-agentytx --helpnpx youtube-transcript-agent auth set-key <api_key>export YOUTUBE_TRANSCRIPT_API_KEY=<api_key>$env:YOUTUBE_TRANSCRIPT_API_KEY="<api_key>"npx youtube-transcript-agent creditsnpx youtube-transcript-agent transcript FOp280ZAxhg --timestampsnpx youtube-transcript-agent channel download "@mkbhd" --max 25 --wait --output channel.zipnpx youtube-transcript-agent playlist download <playlist_url_or_id> --max 25 --wait --output playlist.zipnpx youtube-transcript-agent jobs status <job_id>npx youtube-transcript-agent jobs download <job_id> --output transcripts.zipnpx youtube-transcript-agent mcpCommand: npxArgs: youtube-transcript-agent mcpEnv: YOUTUBE_TRANSCRIPT_API_KEY=<api_key>echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | npx youtube-transcript-agent mcpEndpoint: https://api.youtubetranscripts.fbetteo.com/mcpAuth: Authorization: Bearer <api_key>curl -X POST "https://api.youtubetranscripts.fbetteo.com/mcp" \ -H "Content-Type: application/json" \ --data-raw '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'curl -X POST "https://api.youtubetranscripts.fbetteo.com/mcp" \ -H "Authorization: Bearer <api_key>" \ -H "Content-Type: application/json" \ --data-raw '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_transcript","arguments":{"video_url":"FOp280ZAxhg"}}}'agent-skill/skill.mdexport YOUTUBE_TRANSCRIPT_API_BASE_URL=http://127.0.0.1:8000npx youtube-transcript-agent auth set-key <api_key> --base-url http://127.0.0.1:8000echo "$YOUTUBE_TRANSCRIPT_API_BASE_URL"echo "$API_BASE_URL"cat ~/.youtube-transcript-agent/config.json 2>/dev/nullnode cli/dist/cli.js channel download "@mkbhd" --max 2 --wait