R

Rytdl

by dinglebear.ai · ai.dinglebear/rytdl

MCP server and CLI for yt-dlp to search and download media, embed metadata and cover art, and deliver to local, SSH, rclone, or Plex targets.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ai-dinglebear-rytdl": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/rytdl"
      ],
      "env": {
        "YTDLP_PLEX_URL": "http://plex.local:32400",
        "YTDLP_PLEX_TOKEN": "<YOUR_VALUE>",
        "YTDLP_ACOUSTID_CLIENT_KEY": "<YOUR_VALUE>",
        "YTDL_RMCP_BINARY_VERSION": "v1.0.1",
        "YTDL_RMCP_RELEASE_BASE_URL": "https://github.com/dinglebear-ai/rytdl/releases/download",
        "RUST_LOG": "info",
        "YTDLP_LOG": "info",
        "YTDLP_PATH": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FPCALC_PATH": "<VALUE>",
        "YTDLP_REMOTE": "<VALUE>",
        "YTDLP_SHA256": "<VALUE>",
        "FFMPEG_SHA256": "<VALUE>",
        "YTDLP_SSH_OPTS": "<VALUE>",
        "YTDLP_UPDATE_PRE": "0",
        "YTDLP_ARCHIVE_DIR": "<VALUE>",
        "YTDLP_AUTO_UPDATE": "1",
        "YTDLP_REMOTE_PATH": "<VALUE>",
        "YTDLP_STAGING_DIR": "<VALUE>",
        "YTDLP_TARGET_PATH": "<VALUE>",
        "YTDLP_AUDIO_FORMAT": "mp3",
        "YTDLP_HISTORY_PATH": "per-user state dir `downloads.jsonl`",
        "YTDLP_MAX_AGE_DAYS": "14",
        "YTDLP_TIMEOUT_SECS": "1800",
        "YTDLP_PLEX_PLAYLIST": "yt-dlp Downloads when Plex URL/token are set",
        "YTDLP_CLEAN_METADATA": "1",
        "YTDLP_EXTRACTOR_ARGS": "<VALUE>",
        "YTDLP_VIDEO_REMOTE_PATH": "<VALUE>",
        "YTDLP_VIDEO_TARGET_PATH": "<VALUE>",
        "YTDLP_ALLOW_LOCAL_TARGETS": "0",
        "YTDLP_MUSICBRAINZ_CONTACT": "<VALUE>",
        "YTDLP_TRANSFER_TIMEOUT_SECS": "600"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "ai-dinglebear-rytdl": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/rytdl"
      ],
      "env": {
        "YTDLP_PLEX_URL": "http://plex.local:32400",
        "YTDLP_PLEX_TOKEN": "<YOUR_VALUE>",
        "YTDLP_ACOUSTID_CLIENT_KEY": "<YOUR_VALUE>",
        "YTDL_RMCP_BINARY_VERSION": "v1.0.1",
        "YTDL_RMCP_RELEASE_BASE_URL": "https://github.com/dinglebear-ai/rytdl/releases/download",
        "RUST_LOG": "info",
        "YTDLP_LOG": "info",
        "YTDLP_PATH": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FPCALC_PATH": "<VALUE>",
        "YTDLP_REMOTE": "<VALUE>",
        "YTDLP_SHA256": "<VALUE>",
        "FFMPEG_SHA256": "<VALUE>",
        "YTDLP_SSH_OPTS": "<VALUE>",
        "YTDLP_UPDATE_PRE": "0",
        "YTDLP_ARCHIVE_DIR": "<VALUE>",
        "YTDLP_AUTO_UPDATE": "1",
        "YTDLP_REMOTE_PATH": "<VALUE>",
        "YTDLP_STAGING_DIR": "<VALUE>",
        "YTDLP_TARGET_PATH": "<VALUE>",
        "YTDLP_AUDIO_FORMAT": "mp3",
        "YTDLP_HISTORY_PATH": "per-user state dir `downloads.jsonl`",
        "YTDLP_MAX_AGE_DAYS": "14",
        "YTDLP_TIMEOUT_SECS": "1800",
        "YTDLP_PLEX_PLAYLIST": "yt-dlp Downloads when Plex URL/token are set",
        "YTDLP_CLEAN_METADATA": "1",
        "YTDLP_EXTRACTOR_ARGS": "<VALUE>",
        "YTDLP_VIDEO_REMOTE_PATH": "<VALUE>",
        "YTDLP_VIDEO_TARGET_PATH": "<VALUE>",
        "YTDLP_ALLOW_LOCAL_TARGETS": "0",
        "YTDLP_MUSICBRAINZ_CONTACT": "<VALUE>",
        "YTDLP_TRANSFER_TIMEOUT_SECS": "600"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "ai-dinglebear-rytdl": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/rytdl"
      ],
      "env": {
        "YTDLP_PLEX_URL": "http://plex.local:32400",
        "YTDLP_PLEX_TOKEN": "<YOUR_VALUE>",
        "YTDLP_ACOUSTID_CLIENT_KEY": "<YOUR_VALUE>",
        "YTDL_RMCP_BINARY_VERSION": "v1.0.1",
        "YTDL_RMCP_RELEASE_BASE_URL": "https://github.com/dinglebear-ai/rytdl/releases/download",
        "RUST_LOG": "info",
        "YTDLP_LOG": "info",
        "YTDLP_PATH": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FPCALC_PATH": "<VALUE>",
        "YTDLP_REMOTE": "<VALUE>",
        "YTDLP_SHA256": "<VALUE>",
        "FFMPEG_SHA256": "<VALUE>",
        "YTDLP_SSH_OPTS": "<VALUE>",
        "YTDLP_UPDATE_PRE": "0",
        "YTDLP_ARCHIVE_DIR": "<VALUE>",
        "YTDLP_AUTO_UPDATE": "1",
        "YTDLP_REMOTE_PATH": "<VALUE>",
        "YTDLP_STAGING_DIR": "<VALUE>",
        "YTDLP_TARGET_PATH": "<VALUE>",
        "YTDLP_AUDIO_FORMAT": "mp3",
        "YTDLP_HISTORY_PATH": "per-user state dir `downloads.jsonl`",
        "YTDLP_MAX_AGE_DAYS": "14",
        "YTDLP_TIMEOUT_SECS": "1800",
        "YTDLP_PLEX_PLAYLIST": "yt-dlp Downloads when Plex URL/token are set",
        "YTDLP_CLEAN_METADATA": "1",
        "YTDLP_EXTRACTOR_ARGS": "<VALUE>",
        "YTDLP_VIDEO_REMOTE_PATH": "<VALUE>",
        "YTDLP_VIDEO_TARGET_PATH": "<VALUE>",
        "YTDLP_ALLOW_LOCAL_TARGETS": "0",
        "YTDLP_MUSICBRAINZ_CONTACT": "<VALUE>",
        "YTDLP_TRANSFER_TIMEOUT_SECS": "600"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "ai-dinglebear-rytdl": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/rytdl"
      ],
      "env": {
        "YTDLP_PLEX_URL": "http://plex.local:32400",
        "YTDLP_PLEX_TOKEN": "<YOUR_VALUE>",
        "YTDLP_ACOUSTID_CLIENT_KEY": "<YOUR_VALUE>",
        "YTDL_RMCP_BINARY_VERSION": "v1.0.1",
        "YTDL_RMCP_RELEASE_BASE_URL": "https://github.com/dinglebear-ai/rytdl/releases/download",
        "RUST_LOG": "info",
        "YTDLP_LOG": "info",
        "YTDLP_PATH": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FPCALC_PATH": "<VALUE>",
        "YTDLP_REMOTE": "<VALUE>",
        "YTDLP_SHA256": "<VALUE>",
        "FFMPEG_SHA256": "<VALUE>",
        "YTDLP_SSH_OPTS": "<VALUE>",
        "YTDLP_UPDATE_PRE": "0",
        "YTDLP_ARCHIVE_DIR": "<VALUE>",
        "YTDLP_AUTO_UPDATE": "1",
        "YTDLP_REMOTE_PATH": "<VALUE>",
        "YTDLP_STAGING_DIR": "<VALUE>",
        "YTDLP_TARGET_PATH": "<VALUE>",
        "YTDLP_AUDIO_FORMAT": "mp3",
        "YTDLP_HISTORY_PATH": "per-user state dir `downloads.jsonl`",
        "YTDLP_MAX_AGE_DAYS": "14",
        "YTDLP_TIMEOUT_SECS": "1800",
        "YTDLP_PLEX_PLAYLIST": "yt-dlp Downloads when Plex URL/token are set",
        "YTDLP_CLEAN_METADATA": "1",
        "YTDLP_EXTRACTOR_ARGS": "<VALUE>",
        "YTDLP_VIDEO_REMOTE_PATH": "<VALUE>",
        "YTDLP_VIDEO_TARGET_PATH": "<VALUE>",
        "YTDLP_ALLOW_LOCAL_TARGETS": "0",
        "YTDLP_MUSICBRAINZ_CONTACT": "<VALUE>",
        "YTDLP_TRANSFER_TIMEOUT_SECS": "600"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "ai-dinglebear-rytdl": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/rytdl"
      ],
      "env": {
        "YTDLP_PLEX_URL": "http://plex.local:32400",
        "YTDLP_PLEX_TOKEN": "<YOUR_VALUE>",
        "YTDLP_ACOUSTID_CLIENT_KEY": "<YOUR_VALUE>",
        "YTDL_RMCP_BINARY_VERSION": "v1.0.1",
        "YTDL_RMCP_RELEASE_BASE_URL": "https://github.com/dinglebear-ai/rytdl/releases/download",
        "RUST_LOG": "info",
        "YTDLP_LOG": "info",
        "YTDLP_PATH": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FPCALC_PATH": "<VALUE>",
        "YTDLP_REMOTE": "<VALUE>",
        "YTDLP_SHA256": "<VALUE>",
        "FFMPEG_SHA256": "<VALUE>",
        "YTDLP_SSH_OPTS": "<VALUE>",
        "YTDLP_UPDATE_PRE": "0",
        "YTDLP_ARCHIVE_DIR": "<VALUE>",
        "YTDLP_AUTO_UPDATE": "1",
        "YTDLP_REMOTE_PATH": "<VALUE>",
        "YTDLP_STAGING_DIR": "<VALUE>",
        "YTDLP_TARGET_PATH": "<VALUE>",
        "YTDLP_AUDIO_FORMAT": "mp3",
        "YTDLP_HISTORY_PATH": "per-user state dir `downloads.jsonl`",
        "YTDLP_MAX_AGE_DAYS": "14",
        "YTDLP_TIMEOUT_SECS": "1800",
        "YTDLP_PLEX_PLAYLIST": "yt-dlp Downloads when Plex URL/token are set",
        "YTDLP_CLEAN_METADATA": "1",
        "YTDLP_EXTRACTOR_ARGS": "<VALUE>",
        "YTDLP_VIDEO_REMOTE_PATH": "<VALUE>",
        "YTDLP_VIDEO_TARGET_PATH": "<VALUE>",
        "YTDLP_ALLOW_LOCAL_TARGETS": "0",
        "YTDLP_MUSICBRAINZ_CONTACT": "<VALUE>",
        "YTDLP_TRANSFER_TIMEOUT_SECS": "600"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "ai-dinglebear-rytdl": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/rytdl"
      ],
      "env": {
        "YTDLP_PLEX_URL": "http://plex.local:32400",
        "YTDLP_PLEX_TOKEN": "<YOUR_VALUE>",
        "YTDLP_ACOUSTID_CLIENT_KEY": "<YOUR_VALUE>",
        "YTDL_RMCP_BINARY_VERSION": "v1.0.1",
        "YTDL_RMCP_RELEASE_BASE_URL": "https://github.com/dinglebear-ai/rytdl/releases/download",
        "RUST_LOG": "info",
        "YTDLP_LOG": "info",
        "YTDLP_PATH": "<VALUE>",
        "FFMPEG_PATH": "<VALUE>",
        "FPCALC_PATH": "<VALUE>",
        "YTDLP_REMOTE": "<VALUE>",
        "YTDLP_SHA256": "<VALUE>",
        "FFMPEG_SHA256": "<VALUE>",
        "YTDLP_SSH_OPTS": "<VALUE>",
        "YTDLP_UPDATE_PRE": "0",
        "YTDLP_ARCHIVE_DIR": "<VALUE>",
        "YTDLP_AUTO_UPDATE": "1",
        "YTDLP_REMOTE_PATH": "<VALUE>",
        "YTDLP_STAGING_DIR": "<VALUE>",
        "YTDLP_TARGET_PATH": "<VALUE>",
        "YTDLP_AUDIO_FORMAT": "mp3",
        "YTDLP_HISTORY_PATH": "per-user state dir `downloads.jsonl`",
        "YTDLP_MAX_AGE_DAYS": "14",
        "YTDLP_TIMEOUT_SECS": "1800",
        "YTDLP_PLEX_PLAYLIST": "yt-dlp Downloads when Plex URL/token are set",
        "YTDLP_CLEAN_METADATA": "1",
        "YTDLP_EXTRACTOR_ARGS": "<VALUE>",
        "YTDLP_VIDEO_REMOTE_PATH": "<VALUE>",
        "YTDLP_VIDEO_TARGET_PATH": "<VALUE>",
        "YTDLP_ALLOW_LOCAL_TARGETS": "0",
        "YTDLP_MUSICBRAINZ_CONTACT": "<VALUE>",
        "YTDLP_TRANSFER_TIMEOUT_SECS": "600"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
YTDLP_PLEX_URL No Plex server URL, e.g. `http://plex.local:32400`, used when adding audio downloads to a Plex playlist. Must be paired with YTDLP_PLEX_TOKEN.
YTDLP_PLEX_TOKEN secret No Plex auth token for playlist/search API calls. Must be paired with YTDLP_PLEX_URL.
YTDLP_ACOUSTID_CLIENT_KEY secret No AcoustID application API key. Required by `youtube_identify`; when set, `youtube_download` also writes high-confidence MusicBrainz tags to downloaded audio before transfer.
YTDL_RMCP_BINARY_VERSION No Optional GitHub release tag override for the downloaded YTDL RMCP binary.
YTDL_RMCP_RELEASE_BASE_URL No Optional release download base URL override. Default: https://github.com/dinglebear-ai/rytdl/releases/download
RUST_LOG No Tracing filter for YTDL RMCP logs. Default: info
YTDLP_LOG No `tracing` filter written to stderr only. Never send logs to stdout because stdout is the MCP JSON-RPC channel. Default: info
YTDLP_PATH No Use a specific yt-dlp executable instead of auto-resolution/auto-download.
FFMPEG_PATH No Use a specific ffmpeg executable instead of auto-resolution/auto-download.
FPCALC_PATH No Optional explicit path to the Chromaprint `fpcalc` executable.
YTDLP_REMOTE No Legacy SSH remote alias or `user@host`.
YTDLP_SHA256 No Optional SHA-256 digest required for the resolved yt-dlp executable.
FFMPEG_SHA256 No Optional SHA-256 digest required for the resolved ffmpeg executable.
YTDLP_SSH_OPTS No Extra ssh options parsed with shell-word syntax and appended after forced non-interactive defaults. Example: `-i "~/.ssh/ytdl key" -o ProxyJump=media-bastion`.
YTDLP_UPDATE_PRE No Track yt-dlp's nightly pre-release channel instead of stable. Default: 0
YTDLP_ARCHIVE_DIR No Directory that stores `use_archive` download archives. Separate per-mode archive files are created inside it.
YTDLP_AUTO_UPDATE No Re-download yt-dlp when stale. Disable only when YTDLP_PATH/hash pins are managing the executable externally. Default: 1
YTDLP_REMOTE_PATH No Legacy absolute SSH path for audio. Requires YTDLP_REMOTE; relative paths are rejected.
YTDLP_STAGING_DIR No Local directory where media is staged before transfer. On transfer failure this staging copy is kept for retry.
YTDLP_TARGET_PATH Yes Destination for audio. Use `/path` for local, `host:/path` for SSH, or `remote:path` or `rclone:remote:/path` for rclone.
YTDLP_AUDIO_FORMAT No Default audio codec: `mp3`, `m4a`, `opus`, `flac`, `wav`, or `best`. Default: mp3
YTDLP_HISTORY_PATH No JSONL download ledger used by `youtube_stats`. Default: per-user state dir `downloads.jsonl`
YTDLP_MAX_AGE_DAYS No Staleness threshold in days for yt-dlp auto-update. Default: 14
YTDLP_TIMEOUT_SECS No Timeout for each yt-dlp search/probe/download command. Default: 1800
YTDLP_PLEX_PLAYLIST No Default Plex playlist title or ID; can be overridden per call with `plex_playlist`. Default: yt-dlp Downloads when Plex URL/token are set
YTDLP_CLEAN_METADATA No Strip common YouTube title noise before embedding metadata. Set to `0` to preserve source titles exactly. Default: 1
YTDLP_EXTRACTOR_ARGS No Passed to yt-dlp `--extractor-args`. The Android YouTube client (`youtube:player_client=android`) fixes common `This video is not available` metadata failures for official music videos.
YTDLP_VIDEO_REMOTE_PATH No Legacy absolute SSH path for video. Requires YTDLP_REMOTE; falls back to the audio target when unset.
YTDLP_VIDEO_TARGET_PATH No Destination for video when video files should land somewhere different from audio. Same target forms. Defaults to YTDLP_TARGET_PATH if unset.
YTDLP_ALLOW_LOCAL_TARGETS No Permit local filesystem targets such as `/path`. Keep disabled unless you trust MCP callers to choose local write locations. Default: 0
YTDLP_MUSICBRAINZ_CONTACT No Contact URL/email included in MusicBrainz lookup User-Agent strings.
YTDLP_TRANSFER_TIMEOUT_SECS No Timeout for each transfer phase. Default: 600

Similar servers