youtube-context-mcp

v0.6.0
youtube-context-mcp Checked 3 days ago Published 5 months ago

A small MCP server giving agents YouTube video context: transcripts, deep links, and metadata

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_transcript

Fetch a YouTube video's existing captions as text so you can answer questions about it. Returns existing captions/subtitles only; it does not transcribe audio. Videos without captions have nothing to return. Args: video: A YouTube URL (watch, youtu.be, shorts, embed, live) or an 11-character video ID. languages: Preferred language codes in priority order. Defaults to ["en"]. include_timestamps: If true, group the transcript into ~15s blocks, each prefixed with [mm:ss] (or [h:mm:ss] past an hour). Use this to find where a topic is discussed and pass that [mm:ss] to…

ParameterTypeDescription
video *string
include_timestampsboolean
languages
translate_to

list_transcripts

List the transcripts available for a YouTube video. Use this when get_transcript can't find your requested language. It reports each available transcript (language, code, whether it's auto-generated, whether it's translatable) plus the set of languages you can pass to get_transcript's translate_to. Args: video: A YouTube URL or an 11-character video ID.

ParameterTypeDescription
video *string

get_video_metadata

Get a YouTube video's metadata: title, channel, upload date, duration, view/like counts, chapters and tags. Use this to answer questions about a video (its name, who made it, how long it is, when it came out) without fetching its transcript. Args: video: A YouTube URL (watch, youtu.be, shorts, embed, live) or an 11-character video ID. include_description: If true, also return the (often long) description; otherwise it's omitted to keep the response small.

ParameterTypeDescription
video *string
include_descriptionboolean

get_most_replayed

Get a YouTube video's "most replayed" moments -- the peaks of its viewer-interest heatmap (the curve shown above the timeline marking where people rewatch most). Use this for "what are the best / most-rewatched parts?", "jump me to the good part", or to weight a summary toward what viewers actually care about. Each peak is a high-interest *region* (region_start_seconds..region_end_seconds) with the hottest instant at peak_start_seconds, a ready-to-share url that opens the video at the start of the stretch, and the chapter it falls in. relative_intensity is 0..1 *within this video* (1.0 = its…

ParameterTypeDescription
video *string
top_ninteger

get_video_frame

Capture a single still frame (screenshot) from a YouTube video at a moment and return it as an image, so a multimodal model can answer "what's on screen here?". Use this to see the video at a specific time -- e.g. read a slide, a caption burned into the video, or a UI being demoed. Pair it with get_most_replayed or get_transcript(include_timestamps =True) to pick an interesting moment, then grab the frame there. Requires ffmpeg on the server. The captured frame is the nearest keyframe at or just before the requested moment (it can be off by a second or two) and is downscaled to max_width to…

ParameterTypeDescription
at *
video *string
max_widthinteger

get_video_preview

Get a visual overview of a YouTube video as ONE tiled contact-sheet image: `tiles` frames sampled evenly across the video (or across a start..end window of it), plus a text legend mapping each tile to its mm:ss timestamp. Use this to see what's going on across a video (talking head vs slides vs demo footage, scene changes, "is there a chart anywhere?") and to pick moments worth a closer look. To inspect one part in more detail, call it again with start/end around that part -- but pick the window from the transcript, chapters, or get_most_replayed first and zoom once; don't binary-search the v…

ParameterTypeDescription
video *string
end
start
tile_widthinteger
tilesinteger