Skip to main content
Glama
YouTube Transcripts MCP Server

YouTube Transcripts MCP Server

Get YouTube transcript

get_transcript
Read-onlyIdempotent

Fetch a YouTube video’s transcript and metadata in plain text, timestamped segments, or SRT, with language selection and optional translation for analysis, summaries, or caption workflows.

Instructions

Fetch the transcript (captions) of a YouTube video plus metadata: title, channel, duration, views, publish date, available caption languages and whether the returned transcript is auto-generated. Formats: 'text' (plain text; with include_timestamps, ~30 s paragraphs prefixed [m:ss]), 'segments' (array of {start, duration, text}) or 'srt'. Can machine-translate captions via YouTube (translate_to).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "video": "<video>"
    },
    "name": "get_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoYesYouTube video id (e.g. dQw4w9WgXcQ) or URL (watch?v=, youtu.be/, /shorts/, /embed/, /live/)
formatNoOutput format. Default 'text'.text
languagesNoPreferred caption languages in priority order, e.g. ["en", "de"]. Manual captions beat auto-generated ones. Default ["en"].
max_charsNoTruncate the transcript content to about this many characters (sets truncated=true).
translate_toNoOptional target language code; YouTube translates the best available track.
include_timestampsNotext: prefix paragraphs with [m:ss]; segments: add a 'time' string. SRT always has timing.
allow_auto_generatedNoAllow auto-generated (ASR) captions. Default true.
fallback_to_any_languageNoIf none of `languages` exists, return the best available track instead of failing. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so safety is covered. The description adds genuine context beyond them — the returned metadata fields, the auto-generated indicator, and that translation is performed by YouTube — but says nothing about failure behavior (missing captions, private/deleted videos) or cost/latency of translation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action and return payload, followed by the format menu. It is dense but every clause carries information; only minor tightening (listing formats inside the first sentence) would improve it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter read tool with no output schema, the description is adequately complete: it enumerates the metadata returned and explains the three output shapes the caller must handle. The remaining gap is error/edge-case behavior, which is partially but not fully covered by the fallback_to_any_language parameter documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and every parameter carries a description, so the schema does the heavy lifting. The description restates the format semantics ('segments' yields {start, duration, text}, timestamps produce ~30 s [m:ss] paragraphs) and notes translate_to uses YouTube's own translation, but adds little that the schema does not already state.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Fetch the transcript (captions) of a YouTube video") and enumerates the metadata returned, so the operation is unmistakable. It does not explicitly contrast itself with siblings such as summarize_transcript or get_video_chapters, leaving that differentiation to the agent's inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is only implied: the format menu hints at when to pick 'text' vs 'segments' vs 'srt', but there is no explicit statement of when to call this instead of summarize_transcript or get_video_chapters, nor any stated preconditions (e.g., video must have captions).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.