Skip to main content
Glama

mcp-yt-dlp

Inspect video URLs, download videos and available subtitles, and optionally extract screenshots for visual review. Supports the services handled by yt-dlp, including YouTube and Facebook.

Requirements

Use Node.js 22.18 or newer, npm, and uv with the uvx command available. FFmpeg and FFprobe are supplied by mcp-ffmpeg-runtime, which caches its downloaded binaries. First use requires internet access.

Related MCP server: yt-dlp

Start the MCP server

npx -y --prefer-online mcp-yt-dlp@latest mcp

Generic MCP configuration:

{
  "mcpServers": {
    "yt-dlp": {
      "command": "npx",
      "args": ["-y", "--prefer-online", "mcp-yt-dlp@latest", "mcp"]
    }
  }
}

Use npx.cmd on Windows if your client requires an executable command. Each CLI operation delegated by the published MCP adapter resolves the latest package through npm. yt-dlp itself runs through uvx --from "yt-dlp[default]@latest" yt-dlp, checking the configured Python package index for a compatible stable release.

Inspect, then download

Call inspect_video with a video URL. It returns a downloadId, title, duration and available resolutions. Then call download_video with that ID and the desired options, or supply a URL directly.

{
  "downloadId": 0,
  "maxHeight": 720,
  "extractFrames": true,
  "frameMode": "changes",
  "frameMaxCount": 24,
  "frameMaxHeight": 360
}

Option

Default

Meaning

url or downloadId

Required

Supply exactly one

maxHeight

Best available

Maximum video height, such as 720

extractFrames

false

Enable optional screenshot extraction

frameMode

changes

Adaptive visual selection, or interval for distributed samples

frameIntervalSeconds

0

Candidate spacing, with 0 selecting automatically

frameMaxCount

24

Maximum screenshots across the entire video

frameMaxHeight

360

Maximum PNG height without upscaling

frameChangeThreshold

4.5

Grayscale similarity threshold. Higher suppresses more similar images

Only enable screenshots when the task requires visual scene analysis. Long recordings take additional processing time. Sampling can miss brief changes. The legacy storyboard, one_per_second, keyframes and frameFps inputs remain accepted. storyboard maps to changes; one_per_second maps to interval. The codec-keyframe compatibility mode produces JPEGs and does not use the adaptive PNG limit.

Output

Downloads are stored in the operating system temporary directory under ytdlp/<MD5-of-URL>/. The persistent URL list in ytdlp/downloads.json assigns zero-based IDs. Keep this file to reuse IDs across restarts.

Videos and available subtitles share the video folder. Screenshot exports use separate subfolders containing time-labelled PNGs, a JSON manifest with original source times, and JPEG contact sheets with up to 12 images per sheet. Shared extraction is provided by mcp-extract-video-frames.

The result reports paths to the video, subtitles, screenshot manifest and contact sheets. Missing subtitles produce an empty list. Frame extraction errors report the saved video path. Existing matching video filenames are reused. Changes to a remote title or quality setting may produce a different filename.

CLI

npx -y --prefer-online mcp-yt-dlp@latest inspect "https://example.com/video"
npx -y --prefer-online mcp-yt-dlp@latest download --download-id 0 --extract-frames --frame-max-count 24

Run --help to see all extraction options. Increase your MCP client's tool timeout for long downloads.

FFmpeg runtime configuration follows mcp-ffmpeg-runtime: FFMPEG_CACHE_DIR, FFMPEG_CHANNEL, FFMPEG_OFFLINE and FFMPEG_PREFERRED_RUNTIME. The downloader omits the runtime preference by default, using latest with cached update checks every 24 hours. An explicit preference can select cached, local, an npm semver range or a build ID. cached and local fall back to latest when unavailable. Version ranges stay within the requested constraint. Offline mode requires a complete existing runtime cache. Runtime and extractor npm dependencies are refreshed within their declared version constraints by the release workflow.

License

MIT.

Available Tools

2 tools
download_videoA

Download a video and available subtitles to an identifiable temporary folder. Supply a URL or downloadId. Inspect and download videos with subtitles. Frame extraction is optional and should be enabled only for visual scene analysis, especially for long videos where it adds processing time and compute cost. Use low resolution and a small frame budget for an overview.

Inputs: frameMode (required), extractFrames (required), frameMaxCount (required), frameMaxHeight (required), +6 more.

inspect_videoA

Inspect a video URL without downloading. Returns duration, available resolutions and a downloadId.

Inputs: url (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools split cleanly along a metadata-vs-action boundary: inspect_video returns information without downloading, while download_video performs the download. The shared downloadId handoff makes the intended sequence explicit, so an agent cannot easily misselect.

    Naming Consistency5/5

    Both names follow the same verb_noun pattern (inspect_video, download_video) with a consistent snake_case style and a shared object noun. There is no mixing of conventions or vague verbs.

    Tool Count3/5

    Two tools is thin for a server whose descriptions imply several distinct capabilities (subtitles, frame extraction, resolution selection). The inspect-then-download pairing is well-scoped, but the surface feels minimal rather than complete.

    Completeness3/5

    The core inspect → download lifecycle is covered, but there is no way to clean up or delete the temporary download folders the server creates, and no status/progress or list operation for in-flight work. Frame extraction and subtitles are bundled into download_video rather than being separately controllable.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      A
      quality
      Not graded
      maintenance
      Enables downloading videos from 1000+ platforms including YouTube, Bilibili, TikTok, and Twitter using yt-dlp. Supports both MCP protocol and REST API modes with real-time progress tracking, multiple formats, and subtitle downloads.
      5
      14 npm
      1
      -
    • F
      license
      A
      quality
      D
      maintenance
      Enables video metadata extraction and downloading from platforms like TikTok and YouTube via yt-dlp, including direct MP4 links and local downloads with MP3 conversion.
      3
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to download, transcribe, and read metadata for any video or audio URL - YouTube, TikTok, X, podcasts and 1000+ sites - working from agent sandboxes and servers where direct downloads usually get blocked. $3 free credit, no card.
      10
      16 npm
      MIT