Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
YOUTUBE_MCP_PROXYNoHTTP proxy, useful on cloud IPs blocked by YouTube.
YOUTUBE_MCP_HTTP_HOSTNoBind address for HTTP transports.127.0.0.1
YOUTUBE_MCP_HTTP_PORTNoBind port for HTTP transports.8000
YOUTUBE_MCP_TRANSPORTNo`stdio` | `streamable-http` | `sse`.stdio
YOUTUBE_MCP_AUTH_TOKENNoRequire `Authorization: Bearer <token>` on HTTP. Empty = no auth.
YOUTUBE_MCP_OUTPUT_DIRNoOnly directory `save_transcript` may write into../transcripts
YOUTUBE_MCP_COOKIES_FILENoNetscape-format cookie file for yt-dlp.
YOUTUBE_MCP_WHISPER_MODELNo`tiny` | `base` | `small` | `medium` | `large-v3`.base
YOUTUBE_MCP_DEFAULT_LANGUAGENoLanguage used when a tool call omits `language`.en
YOUTUBE_MCP_COOKIES_FROM_BROWSERNoe.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:

  1. get_video_info(video) -> title, channel, duration, chapters

  2. list_transcript_languages(video) -> which caption tracks exist

  3. get_transcript(video, language=...) -> the transcript

  4. 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 format='timestamped' or format='json' to keep timing information.

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 pip install '.[whisper]' and the ffmpeg binary on PATH. This is slow (minutes for a long video) - only use it when get_transcript fails.

Prompts

Interactive templates invoked by user choice

NameDescription
summarize_videoBuild a prompt that summarizes a YouTube video using this server's tools.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 7 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness5/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues