MCP yt-dlp Server
Allows downloading videos from Facebook.
Allows downloading videos from Instagram.
Allows downloading audio tracks from SoundCloud.
Allows downloading videos from TikTok.
Allows downloading live streams and videos from Twitch.
Allows downloading videos from Vimeo.
Allows downloading videos, audio, subtitles, and playlists from YouTube.
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., "@MCP yt-dlp Server Download this YouTube video: https://youtu.be/abc123"
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.
MCP yt-dlp Server
A Model Context Protocol (MCP) server for downloading videos and streams using yt-dlp. This server enables MCP-compatible clients (like Claude Desktop) to download videos from YouTube and 1000+ supported sites, extract audio, download subtitles, and capture live streams.
Credits
This project is built on top of the incredible work by the yt-dlp team. yt-dlp is a feature-rich command-line audio/video downloader that supports thousands of sites. For more information about yt-dlp, visit their GitHub repository or wiki.
Related MCP server: MCP YouTube Downloader
Features
Video Download: Download videos from YouTube and 1000+ supported sites
Stream Download: Capture live streams and HLS/m3u8 streams
Video Info: Get metadata without downloading
Format Listing: List all available formats for a video
Search: Search videos directly through yt-dlp extractors
Audio Extraction: Download audio-only with format conversion (MP3, M4A, WAV, FLAC)
Subtitles: Download subtitles in multiple languages
Playlist Support: Download full or partial playlists
Prerequisites
Node.js 18+
yt-dlp installed and available in the same directory as the server (or in PATH)
Installation Guide
Step 1: Install Node.js
Download and install Node.js 18+ from nodejs.org.
Verify installation:
node --version
npm --versionStep 2: Download yt-dlp (Easy Method)
We provide setup scripts that automatically download the latest yt-dlp to the correct directory.
Windows:
Double-click setup.bat or run in Command Prompt:
setup.batLinux / macOS:
chmod +x setup.sh
./setup.shThe script will:
Detect your operating system
Download the latest yt-dlp binary
Place it in the same directory as the MCP server
Verify the installation
Step 2 Alternative: Manual Download
If you prefer to install yt-dlp manually:
Windows:
Download
yt-dlp.exefrom the latest releasesPlace
yt-dlp.exein the same directory as the MCP server
macOS:
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlpLinux:
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlpPython (all platforms):
pip install yt-dlpFor more installation options, see the yt-dlp installation guide.
Step 3: Clone the Repository
git clone https://github.com/timyee22/yt-dlp-MCP.git
cd yt-dlp-MCPStep 4: Install Dependencies
npm installStep 5: Configure MCP Client
Add the server to your MCP client configuration:
Claude Desktop (Windows):
Edit %APPDATA%\Claude\settings.json:
{
"mcpServers": {
"yt-dlp": {
"command": "node",
"args": ["C:\\path\\to\\yt-dlp-MCP\\index.js"]
}
}
}Claude Desktop (macOS/Linux):
Edit ~/Library/Application Support/Claude/settings.json (macOS) or the appropriate config path:
{
"mcpServers": {
"yt-dlp": {
"command": "node",
"args": ["/path/to/yt-dlp-MCP/index.js"]
}
}
}Important: Make sure yt-dlp.exe (Windows) or yt-dlp (macOS/Linux) is either:
In the same directory as
index.jsOr available in your system PATH
Step 6: Restart Claude Desktop
After adding the configuration, restart Claude Desktop to load the new MCP server.
Usage
Once configured, you can ask Claude to:
"Download this YouTube video: [URL]"
"Download just the audio from this video as MP3"
"Get information about this video without downloading it"
"List all available formats for this video"
"Search for videos about [topic] on YouTube"
"Download subtitles for this video in Spanish"
Available Tools
download_video
Download videos from URLs.
Parameters:
url(required): Video URLoutputDir: Output directory (default: current directory)format: Format selection (default: "best")quality: Video quality (e.g., "1080p", "720p")audioOnly: Download audio only (default: false)audioFormat: Audio format for extraction (default: "mp3")subtitles: Download subtitles (default: false)subtitleLangs: Subtitle languages (default: "en")playlistStart/playlistEnd: Playlist rangenoPlaylist: Download single video only (default: false)additionalArgs: Extra yt-dlp arguments
Examples:
Download a YouTube video:
{
"url": "https://www.youtube.com/watch?v=...",
"quality": "1080p",
"subtitles": true
}Download audio only:
{
"url": "https://www.youtube.com/watch?v=...",
"audioOnly": true,
"audioFormat": "mp3"
}download_stream
Download live streams or HLS streams.
Parameters:
url(required): Stream URLoutputDir: Output directoryduration: Capture duration in secondsformat: Format preference (default: "best")outputName: Custom output filenamehlsUseMpegts: Use MPEG-TS for HLS (default: true)additionalArgs: Extra arguments
get_video_info
Get video metadata without downloading.
Parameters:
url(required): Video URLflatPlaylist: Faster playlist info (default: false)
list_formats
List all available formats for a URL.
Parameters:
url(required): Video URL
search_videos
Search for videos using yt-dlp extractors.
Parameters:
query(required): Search queryextractor: Search extractor prefix (default: "ytsearch10")getInfo: Get detailed info (default: true)
Example:
{
"query": "programming tutorials",
"extractor": "ytsearch5"
}update_yt_dlp
Update yt-dlp to the latest version.
Supported Sites
yt-dlp supports 1000+ sites including:
YouTube
Twitch
Vimeo
Twitter/X
Instagram
TikTok
Facebook
SoundCloud
And many more...
See yt-dlp supported sites for the full list.
Troubleshooting
yt-dlp not found
Make sure
yt-dlp.exe(Windows) oryt-dlp(macOS/Linux) is in the same directory as the server or in your PATHOn Windows, you may need to add the directory to your PATH environment variable
Node.js errors
Ensure you have Node.js 18+ installed:
node --versionMake sure dependencies are installed:
npm install
Format not available
Some videos may not have the requested format. Use
list_formatsto see available optionsYouTube may restrict some formats. Try different quality settings
License
Unlicense
Acknowledgments
yt-dlp - The powerful video downloader that makes this possible
Model Context Protocol - The protocol enabling AI assistants to use tools
Available Tools
6 toolsdownload_streamB
Download a live stream or m3u8/HLS stream using yt-dlp.
Inputs: url (required), format, duration, outputDir, +3 more.
download_videoC
Download a video from a URL using yt-dlp. Supports YouTube and many other sites.
Inputs: url (required), format, quality, audioOnly, +8 more.
get_video_infoB
Get information about a video or stream URL without downloading it.
Inputs: url (required), flatPlaylist.
list_formatsA
List all available formats for a video URL.
Inputs: url (required).
search_videosB
Search for videos using yt-dlp's extractors.
Inputs: query (required), getInfo, extractor.
update_yt_dlpA
Update yt-dlp to the latest version.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct action: updating the tool, downloading videos, downloading streams, fetching metadata, listing formats, and searching. There is no overlap between download_video and download_stream (explicitly split by content type), and get_video_info/list_formats serve separate informational purposes.
All tool names follow a consistent snake_case verb_noun pattern: update, download, get, list, search. The verbs clearly indicate the action and the nouns specify the target, making the convention uniform and predictable.
With 6 tools, the server is well-scoped for a yt-dlp wrapper. Each tool covers a core functionality (update, video download, stream download, info retrieval, format listing, search) without redundancy or bloat, fitting neatly in the typical 3-15 tool range.
The tool set covers the essential lifecycle for video retrieval: searching, inspecting (info/formats), and downloading (video/stream). Minor gaps exist, such as playlist downloads or extracting audio, but agents can likely work around these via download options, so the surface is adequate for most primary workflows.
Maintenance
Related MCP Connectors
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
SubDownload exposes YouTube as an MCP-native data source. Connect via OAuth and your AI agent can summarize videos, fetch full transcripts (even for videos with no captions, via AI ASR), search across channels, and save everything into a private knowledge base. Works with Claude, ChatGPT, Cursor, and 40+ MCP clients. Free credits on signup, no card required.
Real-time YouTube transcripts, comments, channels & video search MCP. Local npx or hosted OAuth.
Unofficial YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
Related MCP Servers
- -licenseAqualityNot gradedmaintenanceEnables downloading videos from 1000+ platforms including YouTube, Bilibili, TikTok, and Twitter using yt-dlp. Supports both MCP protocol and REST API modes with real-time progress tracking, multiple formats, and subtitle downloads.514 npm1-
- AlicenseNot gradedqualityDmaintenanceMCP server for downloading videos and audio from YouTube and hundreds of other sites using yt-dlp.MIT
- FlicenseNot gradedqualityCmaintenanceA multimedia downloading and conversion MCP server supporting YouTube, HLS streams, podcasts, and images, with features like batch downloads, subtitle extraction, format query, and whitelist management.-
- 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