Yt-to-transcript-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YOUTUBE_MCP_PROXY | No | HTTP proxy, useful on cloud IPs blocked by YouTube. | |
| YOUTUBE_MCP_HTTP_HOST | No | Bind address for HTTP transports. | 127.0.0.1 |
| YOUTUBE_MCP_HTTP_PORT | No | Bind port for HTTP transports. | 8000 |
| YOUTUBE_MCP_TRANSPORT | No | `stdio` | `streamable-http` | `sse`. | stdio |
| YOUTUBE_MCP_AUTH_TOKEN | No | Require `Authorization: Bearer <token>` on HTTP. Empty = no auth. | |
| YOUTUBE_MCP_OUTPUT_DIR | No | Only directory `save_transcript` may write into. | ./transcripts |
| YOUTUBE_MCP_COOKIES_FILE | No | Netscape-format cookie file for yt-dlp. | |
| YOUTUBE_MCP_WHISPER_MODEL | No | `tiny` | `base` | `small` | `medium` | `large-v3`. | base |
| YOUTUBE_MCP_DEFAULT_LANGUAGE | No | Language used when a tool call omits `language`. | en |
| YOUTUBE_MCP_COOKIES_FROM_BROWSER | No | e.g. `chrome`, for age-restricted / members-only videos. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
YouTube transcript server. Turn a YouTube URL or 11-character video ID into text with timestamps, subtitles (SRT/VTT), JSON, or Markdown.
Typical flow:
get_video_info(video) -> title, channel, duration, chapters
list_transcript_languages(video) -> which caption tracks exist
get_transcript(video, language=...) -> the transcript
get_transcript_range / search_transcript for long videos
Always prefer get_transcript first; it automatically falls back from the
caption API to yt-dlp. Only use transcribe_audio (Whisper) for videos that
have no captions at all. Respect copyright: quote short excerpts rather than
reproducing entire copyrighted works verbatim.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_transcriptA | Convert a YouTube video into a transcript. Returns human captions when available, otherwise YouTube auto-generated
captions, with an automatic yt-dlp fallback if the caption API is blocked.
Use |
| get_transcript_rangeA | Return only the part of a transcript between two timestamps. Useful for long videos: fetch metadata/chapters, then pull just the relevant section instead of the whole transcript. |
| search_transcriptA | Find where a word or phrase is spoken in a video. Returns timestamped matches so the model can jump straight to the relevant part of a long video with get_transcript_range. |
| list_transcript_languagesA | List all caption tracks for a video (language code, human vs auto, translatable targets). Call this when get_transcript reports that the requested language is unavailable. |
| get_video_infoA | Get metadata for a YouTube video: title, channel, duration, chapters, upload date, views. No transcript is fetched, so this is cheap. Use it before pulling a long transcript. |
| save_transcriptA | Fetch a transcript and write it to a file (txt / srt / vtt / md / json). Returns the absolute path written. Writes are restricted to the YOUTUBE_MCP_OUTPUT_DIR directory for safety. |
| transcribe_audioA | Speech-to-text fallback for videos with NO captions. Downloads the audio with yt-dlp and transcribes it locally with Whisper.
Requires |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| summarize_video | Build a prompt that summarizes a YouTube video using this server's tools. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool has a clearly distinct role: metadata, language discovery, full transcript, timestamped range, search, file saving, and audio fallback. The only apparent overlap, get_transcript vs transcribe_audio, is explicitly separated by captions vs no-captions fallback usage.
All tool names use consistent snake_case verb_noun conventions such as get_transcript, search_transcript, list_transcript_languages, and save_transcript. Compound names like get_transcript_range still follow the same predictable pattern.
Seven tools is well-scoped for a YouTube transcript server. Each tool earns its place by covering a distinct workflow step without redundant or filler operations.
The surface covers the full practical lifecycle: inspect video info, discover caption languages, fetch transcripts, search and slice long transcripts, save outputs, and fall back to local speech-to-text when captions are absent. No obvious dead ends exist for the stated transcript-extraction purpose.