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