yt-dlp MCP

v1.0.0
io.github.fanyzp/ytdlp-mcp Checked 4 days ago Published 19 days ago

Download video and audio with yt-dlp via AI agents: inspect, batch, subtitles, convert.

Values you need

VariableWhat it is
YTDLP_DOWNLOAD_DIRoptional Directory where downloaded files are saved.
YTDLP_COOKIES_FILEoptional Path to a Netscape-format cookies.txt file for sites that require a signed-in session. Never paste cookie contents into chat.
YTDLP_BINoptional Path to the yt-dlp binary. Default: yt-dlp
FFMPEG_BINoptional Path to the ffmpeg binary, used for merging and converting. Default: ffmpeg

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add ytdlp-mcp -- npx -y @fanyzp/ytdlp-mcp@1.0.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ytdlp-mcp": {
      "args": [
        "-y",
        "@fanyzp/ytdlp-mcp@1.0.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ytdlp-mcp": {
      "args": [
        "-y",
        "@fanyzp/ytdlp-mcp@1.0.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "ytdlp-mcp": {
      "args": [
        "-y",
        "@fanyzp/ytdlp-mcp@1.0.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ytdlp-mcp]
command = "npx"
args = ["-y", "@fanyzp/ytdlp-mcp@1.0.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: probe, formats, supported, inspect, get_video, get_audio, get_subtitles, advise, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json