YTDL RMCP logo

YTDL RMCP

yt-dlp search, download, metadata, delivery, and Plex workflows over MCP and CLI.

Install YTDL RMCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ytdl-rmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/rytdl"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @dinglebear/rytdl

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Tools8

What YTDL RMCP lets your agent do. Expand a tool for its parameters.

Self-reported~197 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

28/28 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @dinglebear/rytdl (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads429Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed8Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

ytdl-rmcp

npm version release CI

yt-dlp search, download, metadata, delivery, and Plex workflows over MCP and CLI.

Written in Rust on the rmcp crate. yt-dlp and ffmpeg are auto-downloaded into a per-user cache on first run, so the host needs neither pre-installed — the one binary is the whole install.

30-second path: npx -y @dinglebear/rytdl setup -> configure a target path -> call youtube_search or youtube_probe; use youtube_download only after the destination and trust boundary are clear.

Status: production personal-media MCP server. Read-only search/probe/stats paths are safe; download, playlist, queue-drain, and tag-writing paths create or move state and are intended for trusted callers.

Not for: a generic web-downloader SaaS, a multi-tenant media ingestion boundary, a replacement for yt-dlp's upstream site handling, or an arbitrary filesystem writer for untrusted MCP callers.

Contents

Naming

SurfaceThis repo
Repositorydinglebear-ai/rytdl
Cargo crateytdl-rmcp
npm package@dinglebear/rytdl
CLI / binaryrytdl
MCP toolsyoutube_search, youtube_search_ui, youtube_download, youtube_probe, youtube_identify, youtube_stats, youtube_plex_playlist, youtube_transfer_queue
Env prefixYTDLP_*, plus FFMPEG_*, FPCALC_PATH, and YTDLP_LOG
Transportstdio only — no HTTP listener, no service port

The crate and npm package use the *-rmcp family naming pattern, while the repository and runtime binary are rytdl so local shells get a short Rust-native command.

Capabilities And Boundaries

  • Searches YouTube through yt-dlp without downloading media.
  • Downloads audio, video, or both into a staging tree, tags audio metadata, and transfers the result to local, SSH, or rclone destinations.
  • Optionally fingerprints audio through AcoustID/MusicBrainz and syncs completed audio downloads into a Plex playlist.
  • Builds Plex playlists from successful transfer history and drains server-made retained-staging transfer manifests.
  • Exposes an MCP App search UI for hosts that can render embedded widgets.
  • Keeps a JSONL ledger for repeat-safe downloads and stats.
This repo ownsUpstream ownsExplicitly out of scope
MCP tools, CLI setup, media staging, tagging, transfer policy, queue manifests, config validation, response shaping, plugin/package metadata.yt-dlp extraction behavior, source-site availability, ffmpeg media conversion, Plex library indexing, SSH/rclone authentication.Multi-tenant isolation, arbitrary local writes for untrusted callers, credential brokering, site-specific scraping guarantees, media-server replacement.

Features

  • Audio, video, or both — audio-first by default, with separate targets for audio and video.
  • Proper tagging — embeds title / artist / album / date and cover art, and organizes output as Artist/Title [id].ext so media servers (Plex, etc.) index it cleanly. A non-greedy Artist - Title parse recovers the artist from free-form video titles. Source .info.json, thumbnail, and description sidecars are preserved next to the media for future retagging/indexing. Common YouTube title noise like (Official Video), [Official Audio], and trailing channel handles is stripped from embedded title metadata by default.
  • Self-contained paths — the binary downloads/caches yt-dlp + ffmpeg when run directly; the container image bakes in ffmpeg, fpcalc, SSH, and rsync for media-host batch jobs.
  • Self-installing — ytdl-rmcp setup registers the server into Claude Code, Codex, and/or Gemini CLI via each tool's own mcp add.
  • Robust transfers — local paths (/path) are copied in-process by the binary itself, SSH targets (host:/path) use rsync -a --partial --protect-args with an scp fallback when rsync is missing, and rclone targets (remote:path or rclone:remote:/path) use rclone copy. On transfer failure the local staging copy is kept for retry and recorded as a drainable manifest for youtube_transfer_queue.
  • Repeat-safe — use_archive records downloaded IDs (per mode) and skips them on later runs; YouTube mix/radio URLs are auto-cleaned to the seed video.
  • Stats-ready ledger — every completed download call appends a JSONL entry with timestamp, destinations, files, bytes, uploader, and transfer status.
  • Plex playlist sync — when Plex credentials are configured, downloaded audio is added to yt-dlp Downloads by default.

MCP Tool Reference

ToolPurpose
youtube_searchSearch YouTube with yt-dlp and return result URLs without downloading.
youtube_search_uiOpen an interactive YouTube search UI in MCP App-capable hosts.
youtube_downloadDownload one or more URLs (audio/video/both) and transfer them to a target path.
youtube_probeRead-only: resolve title/duration/uploader/format counts without downloading.
youtube_identifyFingerprint local audio with fpcalc, return AcoustID/MusicBrainz candidates, preview canonical tags, and optionally write high-confidence tags.
youtube_statsSummarize the download ledger: totals, file kinds, uploaders, and recent entries.
youtube_plex_playlistBuild or preview Plex audio playlists from successful transferred audio history.
youtube_transfer_queueList and drain retained-staging transfer failure manifests.

youtube_download parameters

ParamDefaultMeaning
urls— (required)One URL string or an array of URLs.
modeaudioaudio, video, or both.
audio_formatenv YTDLP_AUDIO_FORMAT → mp3mp3/m4a/opus/flac/wav/best.
audio_quality0yt-dlp quality for lossy codecs: 0–9 or a bitrate like 192K.
max_heightbestCap video resolution (e.g. 1080).
containermp4mp4 or mkv for video.
target_pathenv YTDLP_TARGET_PATHDestination for audio. Use /path for local, host:/path for SSH, or remote:path or rclone:remote:/path for rclone.
video_target_pathenv YTDLP_VIDEO_TARGET_PATH → target_pathDestination for video when it should land somewhere different from audio. Same target forms.
keep_localfalseKeep the local staging copy after transfer.
use_archivefalseRecord + skip already-downloaded IDs (per mode).
plex_playlistenv YTDLP_PLEX_PLAYLIST → yt-dlp Downloads when Plex is configuredPlex playlist title or ID to add downloaded audio tracks to. Requires YTDLP_PLEX_URL and YTDLP_PLEX_TOKEN.
response_formatmarkdownmarkdown or json.

When Plex credentials are configured, successful downloads that produced audio files search Plex for each downloaded track, create the target playlist if needed, and add missing tracks while skipping entries already present. The default playlist is yt-dlp Downloads; set YTDLP_PLEX_PLAYLIST or pass plex_playlist to override it. Plex errors are reported as plex_playlist_error and do not make the completed download fail. JSON responses include a plex_playlist summary with matched, added, already_present, and missing counts.

Canonical metadata matching through MusicBrainz/AcoustID is documented in docs/musicbrainz-acoustid.md. youtube_download automatically runs high-confidence MusicBrainz retagging for downloaded audio when YTDLP_ACOUSTID_CLIENT_KEY is configured; youtube_identify remains available for previewing or repairing existing library files, with manual tag writes enabled by write_tags=true.

youtube_download JSON response

With response_format=json, the call returns a single object describing the batch:

FieldMeaning
transferredtrue if every produced subtree reached its target.
transfer_errornull on success, else the failure/timeout message (string).
target_path / destination / destinationsThe per-kind target destination(s) actually used.
staging_kept_atLocal staging path retained for retry (set when the transfer failed or keep_local was requested).
total_files / total_bytes / total_sizeAggregate counts across all items.
partial_itemsCount of items that errored but still produced files.
failed_itemsCount of items that errored and produced no files.
items[]Per-URL results, each with a status, title, video_id, error, and a files[] list.

Each items[].status is one of:

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about YTDL RMCP

YTDL RMCP is an MCP server that provides yt-dlp-powered YouTube search, metadata probing, downloads, delivery, and Plex workflows through MCP tools and a CLI. It is written in Rust, uses stdio transport, and auto-downloads yt-dlp and ffmpeg into a per-user cache on first run.

Run `npx -y @dinglebear/rytdl setup`, then configure a target path. yt-dlp and ffmpeg are downloaded automatically into a per-user cache on first run, so they do not need to be pre-installed.

YTDL RMCP provides `youtube_search`, `youtube_search_ui`, `youtube_download`, `youtube_probe`, `youtube_identify`, `youtube_stats`, `youtube_plex_playlist`, and `youtube_transfer_queue`. Search, probe, and stats are read-only paths, while downloads, queue draining, and tag writing create or move state.

YTDL RMCP can deliver downloaded media to local, SSH, or rclone destinations. Downloads first use a staging tree, and the server also supports audio tagging, optional AcoustID/MusicBrainz fingerprinting, transfer history, and Plex playlist workflows.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewYTDL RMCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ytdl-rmcp?style=directory)](https://allmcps.com/mcp/ytdl-rmcp)
HTML Embed
<a href="https://allmcps.com/mcp/ytdl-rmcp"><img src="https://allmcps.com/api/badge/ytdl-rmcp?style=directory" alt="YTDL RMCP on AllMCPs" /></a>