ytdlp-mcp

An MCP server that enables AI agents to inspect, download, and convert video and audio using yt-dlp and FFmpeg through natural language instructions.

Documentation

ytdlp-mcp

License Version Node.js Platforms

An MCP server that lets AI agents inspect, download, and convert video and audio using yt-dlp and FFmpeg through natural language instructions.

Example

Send a link, get the file. Or type /ytdlp-mcp in OpenCode, Gemini CLI, or Claude Code:

chat

Install

git clone https://github.com/fanyzp/ytdlp-mcp.git && cd ytdlp-mcp && npm run setup

Requires yt-dlp, ffmpeg, Node 18. Or copy PROMPT.md into any AI agent and let it install for you.

Tools

ToolWhat it does
probeRead title, duration, uploader, views, thumbnail, and description
formatsList available media formats, quality, and estimated sizes
supportedCheck whether a URL matches a locally installed yt-dlp extractor
inspectRecommend a download action, quality, and available resolutions
get_videoDownload video, default output is MP4
get_audioExtract audio as Opus, MP3, or M4A
get_subtitlesDownload manual or auto-generated subtitles as VTT
adviseAnswer yt-dlp configuration questions
queuePreview a batch of URLs and per-item download plans
fetch_allDownload a batch of URLs with optional delays
watchList entries from a playlist or channel without downloading
searchSearch YouTube or SoundCloud and return compact metadata
convertRe-encode a local video using FFmpeg presets

Search providers

The search tool uses yt-dlp search extractor prefixes. YouTube (ytsearch) and SoundCloud (scsearch) were verified against the installed yt-dlp build. Other installed extractors include search-related entries, but not all provide a supported search prefix, so they are not exposed as providers unless the prefix works in a real query. Search results return metadata only and are limited to 1-50 items.

Provideryt-dlp prefix
youtubeytsearch
soundcloudscsearch

Env

VariableDefault
YTDLP_DOWNLOAD_DIR~/Downloads/ytdlp-mcp
YTDLP_COOKIES_FILEempty
YTDLP_BIN / FFMPEG_BINyt-dlp / ffmpeg

License

MIT: LICENSE