youtube-transcript-cloud
Provides tools to fetch YouTube transcripts for videos by URL or ID, choose preferred languages, optionally include timestamps, list available caption tracks, and retrieve transcripts for multiple videos.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
youtube-transcript-cloud
YouTube transcripts from Python, the command line or an AI agent that keep working on AWS, GCP,
Azure, Vercel and other cloud servers, where YouTube blocks most direct requests (RequestBlocked,
IpBlocked). The interface is compatible with
youtube-transcript-api's, so moving over is
an import line. The transcripts are read by the
YouTube Transcript Scraper on Apify, with your
Apify API token. No proxy to buy or manage.
Install
pip install youtube-transcript-cloud
# or from GitHub
pip install git+https://github.com/Spyridon-Pikoulas/youtube-transcript-cloudNo dependencies beyond the standard library, Python 3.9 and newer. Get a token at
apify.com (free sign-up), under Settings → API & Integrations, and set it
as APIFY_TOKEN.
Related MCP server: youtube-api-mcp
Python
from youtube_transcript_cloud import YouTubeTranscriptApi
ytt_api = YouTubeTranscriptApi() # or YouTubeTranscriptApi(apify_token="...")
transcript = ytt_api.fetch("dQw4w9WgXcQ", languages=["de", "en"])
for snippet in transcript:
print(snippet.start, snippet.text)
transcript.language_code, transcript.is_generated
transcript.to_raw_data() # [{"text": "...", "start": 0.0, "duration": 1.54}, ...]Moving from youtube-transcript-api:
# from youtube_transcript_api import YouTubeTranscriptApi
from youtube_transcript_cloud import YouTubeTranscriptApiMany videos in one call, read in a single run:
results = ytt_api.fetch_all(["dQw4w9WgXcQ", "https://youtu.be/jNQXAC9IVRw"])
# {video_id: FetchedTranscript, or the error it raised}The caption tracks a video has:
for t in ytt_api.list("dQw4w9WgXcQ"):
print(t.language_code, t.language, t.is_generated)find_transcript, find_manually_created_transcript and find_generated_transcript work as you
know them. Formatters too: JSONFormatter, PrettyPrintFormatter, TextFormatter, SRTFormatter
and WebVTTFormatter from youtube_transcript_cloud.formatters. The errors have the same names:
NoTranscriptFound, TranscriptsDisabled, VideoUnavailable, RequestBlocked, all subclasses of
CouldNotRetrieveTranscript. ApifyError means Apify refused the call (a wrong token, no credit).
ytt_api.run(videos) gives the Actor's own items: title, channel, publish date, views, duration,
language and text with each video.
Command line
youtube-transcript-cloud dQw4w9WgXcQ https://youtu.be/jNQXAC9IVRw --languages de en --format json > transcripts.json
youtube-transcript-cloud --list-transcripts dQw4w9WgXcQFormats: pretty (default), json, text, srt, webvtt.
AI agents (MCP)
youtube-transcript-cloud mcp is an MCP server on stdio with one tool, get_youtube_transcript
(a video URL or ID, preferred languages, optional timestamps). For Claude Desktop, Cursor and
other MCP clients:
{
"mcpServers": {
"youtube-transcripts": {
"command": "uvx",
"args": ["youtube-transcript-cloud", "mcp"],
"env": {"APIFY_TOKEN": "YOUR_APIFY_TOKEN"}
}
}
}What it costs
The Actor charges $0.001 per transcript ($1 per 1,000) to your Apify account. Videos without captions and failed reads are free. When YouTube blocks a run, it switches to Apify's residential proxy and its traffic is charged too, about $0.0002 a transcript. Apify's free plan includes monthly credit that covers a few thousand transcripts.
Differences from youtube-transcript-api
Video URLs (watch, youtu.be, Shorts, embed, live) work wherever a video ID does.
A language matches its regional variants:
enfindsen-GB.translate()raisesNotTranslatable: translated captions aren't offered.list()reads one transcript to see the tracks, so it costs one;fetch()on that track then costs nothing more.There are no proxy or cookie options: the requests go out from Apify.
preserve_formattingis accepted and has no effect.
This project is not affiliated with youtube-transcript-api or YouTube.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
YouTube transcripts for any video, Short, channel or playlist: full text plus timestamped segments, caption language, and title, channel, views and duration. Built for RAG and summaries. Runs on Apify, $1.50 per 1,000 transcripts.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that fetches YouTube video transcripts and optionally summarizes them. Supports multiple transcript formats (text, JSON, SRT, WebVTT), multi-language retrieval, and flexible YouTube URL parsing.657 PyPI6MIT
- FlicenseNot gradedqualityDmaintenanceMCP server providing tools to fetch YouTube video transcripts with metadata, supporting direct YouTube transcripts and audio transcription via multiple backends (whisper, AssemblyAI, OpenAI, Gemini).-
- AlicenseBqualityDmaintenanceLocal MCP server that extracts YouTube video transcripts via a get_transcript tool, no API key required.1MIT
- AlicenseNot gradedqualityCmaintenanceA comprehensive MCP server providing YouTube transcript retrieval, video search, channel browsing, playlist extraction, and upload monitoring for AI agents.13MIT