yt-dlp MCP Server
Download video and audio with yt-dlp via AI agents: inspect, batch, subtitles, convert.
yt-dlp MCP scores 68 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 4 tools. Filed under Media. GitHub shows 3 stars. Package registries report about 87 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
68 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
81/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 68 comes from
22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "fanyzp-ytdlp-mcp": { "command": "npx", "args": [ "-y", "@fanyzp/ytdlp-mcp@1.0.0" ], "env": { "YTDLP_DOWNLOAD_DIR": "", "YTDLP_COOKIES_FILE": "", "YTDLP_BIN": "yt-dlp", "FFMPEG_BIN": "ffmpeg" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
YTDLP_DOWNLOAD_DIR | Optional | Directory where downloaded files are saved. |
YTDLP_COOKIES_FILE | Optional | Path to a Netscape-format cookies.txt file for sites that require a signed-in session. Never paste cookie contents into chat. |
YTDLP_BIN | Optional | Path to the yt-dlp binary. |
FFMPEG_BIN | Optional | Path to the ffmpeg binary, used for merging and converting. |
Tools4Tool docs quality grade C
All capabilitiesfetch_alltoolDownload a batch of URLs with optional delays
get_audiotoolExtract audio as Opus, MP3, or M4A
get_subtitlestoolDownload manual or auto-generated subtitles as VTT
get_videotoolDownload video, default output is MP4
About
Example
Send a link, get the file. Or type /ytdlp-mcp in OpenCode, Gemini CLI, or Claude Code:

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
| Tool | What it does |
|---|---|
probe | Read title, duration, uploader, views, thumbnail, and description |
formats | List available media formats, quality, and estimated sizes |
supported | Check whether a URL matches a locally installed yt-dlp extractor |
inspect | Recommend a download action, quality, and available resolutions |
get_video | Download video, default output is MP4 |
get_audio | Extract audio as Opus, MP3, or M4A |
get_subtitles | Download manual or auto-generated subtitles as VTT |
advise | Answer yt-dlp configuration questions |
queue | Preview a batch of URLs and per-item download plans |
fetch_all | Download a batch of URLs with optional delays |
watch | List entries from a playlist or channel without downloading |
search | Search YouTube or SoundCloud and return compact metadata |
convert | Re-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.
| Provider | yt-dlp prefix |
|---|---|
youtube | ytsearch |
soundcloud | scsearch |
Env
| Variable | Default |
|---|---|
YTDLP_DOWNLOAD_DIR | ~/Downloads/ytdlp-mcp |
YTDLP_COOKIES_FILE | empty |
YTDLP_BIN / FFMPEG_BIN | yt-dlp / ffmpeg |
License
MIT: LICENSE
Frequently asked questions
What is yt-dlp MCP Server?
Download video and audio with yt-dlp via AI agents: inspect, batch, subtitles, convert.
How do I install yt-dlp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. yt-dlp MCP Server runs locally from the npm package @fanyzp/ytdlp-mcp with the command npx -y @fanyzp/ytdlp-mcp@1.0.0.
Is yt-dlp MCP Server free and open source?
Yes. yt-dlp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does yt-dlp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for yt-dlp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does yt-dlp MCP Server provide?
yt-dlp MCP Server provides 4 tools: fetch_all, get_audio, get_subtitles, and get_video. See the full tool list for descriptions and parameters.
How is yt-dlp MCP Server's trust score calculated?
yt-dlp MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.