yt-dlp-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yt-dlp-mcp get info on https://youtu.be/dQw4w9WgXcQ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
yt-dlp-mcp
A tiny standalone MCP server that wraps yt-dlp so any MCP-compatible client — Claude Desktop, Claude Code, HomeBot, or anything else — can look up video metadata and download videos.
Tools
Tool | Description | Confirmation |
| Title, uploader, duration, view count, thumbnail, available qualities. Read-only. | Not required |
| Downloads a video to | Recommended — tool is annotated |
Related MCP server: MCP YouTube-DLP
Requirements
Node.js 18+
yt-dlp installed separately and on
PATH:Windows:
winget install yt-dlp.yt-dlpmacOS:
brew install yt-dlpAny OS:
pip install yt-dlp
This server does not bundle yt-dlp. If it's missing, both tools return a clear error telling the user how to install it instead of failing silently.
Using it from an MCP client
Point any MCP host at this repo with npx — no npm publish or local clone
needed:
{
"mcpServers": {
"yt-dlp": {
"command": "npx",
"args": ["-y", "github:kingithegreat/yt-dlp-mcp"]
}
}
}Claude Desktop / Claude Code: add the block above to your MCP config file.
HomeBot: add the same shape to your
mcp-servers.json(type: "stdio",command: "npx",args: ["-y", "github:kingithegreat/yt-dlp-mcp"]).
Local development
npm install
npm run build # compiles src/ -> dist/
npm test # jest, mocks child_process — no real yt-dlp calls in CI
npm start # run the server on stdio directlySafety notes
All yt-dlp invocations use
execFilewith argv arrays — the URL is never interpolated into a shell string, so there's no shell-injection surface.download_videowrites are confined to the user's home directory (resolveOutputDirrejects anything that resolves outside of it).Playlist URLs are refused by default (
--no-playlist) unlessallow_playlistis explicitly passed, to avoid an accidental mass-download.A single download is capped at a 10-minute timeout.
License
MIT
Available Tools
2 toolsdownload_videoA
Download a video from a URL (YouTube and hundreds of other sites via yt-dlp) to disk. Saves into ~/Downloads by default. Refuses playlist URLs unless allow_playlist is set, to avoid downloading an entire playlist by accident. yt-dlp must be installed separately and reachable on PATH.
Inputs: url (required), quality, output_dir, allow_playlist.
get_video_infoARead-onlyIdempotent
Look up metadata for a video URL (YouTube and hundreds of other sites via yt-dlp) without downloading it. Returns title, uploader, duration, view count, thumbnail, and available video qualities. For playlist URLs, only the first video is inspected.
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes—one retrieves metadata, the other downloads content—with no overlap in functionality.
Both tool names follow a consistent verb_noun pattern (download_video, get_video_info), making them predictable and easy to distinguish.
With only two tools, the set is minimal but sufficient for its core purpose of retrieving video info and downloading. A few more utility tools might enhance coverage, but the count is reasonable for a focused wrapper.
The tools cover the two primary actions (metadata retrieval and download) but lack features like format selection or playlist handling (only via flag). Gaps are minor given the scope.
Maintenance
Related MCP Connectors
Download YouTube videos and clips as MP4 or MP3/AAC, and look up video metadata.
YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
YouTube transcripts, search, channel browsing, and playlists for AI agents via MCP.
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for downloading videos and audio from YouTube and hundreds of other sites using yt-dlp.MIT
- FlicenseNot gradedqualityDmaintenanceProvides tools for downloading YouTube videos and audio using yt-dlp, enabling integration with AI assistants via MCP.5-
- AlicenseAqualityDmaintenanceMCP server wrapping yt-dlp for downloading videos and audio from URLs, providing tools to check dependencies, retrieve video metadata, and perform downloads.4MIT
- AlicenseAqualityCmaintenanceAn MCP server that extracts rich metadata (title, description, duration, chapters, subtitles, statistics, etc.) from media URLs across thousands of sites using yt-dlp, and also provides transcript fetching and search capabilities.31MIT