MCP YouTube-DLP
Provides tools to download YouTube videos as MP4 and audio as MP3.
Click on "Install 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 YouTube-DLPDownload the audio from 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.
MCP YouTube-DLP
A Model Context Protocol (MCP) server that provides tools for downloading YouTube videos and audio using yt-dlp.
Features
Download YouTube videos in MP4 format
Download YouTube audio in MP3 format
Integration with MCP for AI assistant integration
Related MCP server: YouTube Search & Download MCP Server
Prerequisites
Python 3.13 or higher
yt-dlp installed on your system
Installation
Clone this repository
Install dependencies:
pip install -e .Or using uv:
uv pip install -e .Usage
Running the Server
Start the MCP server:
python main.pyThe server will start in stdio mode with debug enabled.
Environment Variables
YT_DLP_PATH: Path to the yt-dlp executable (default:/usr/local/bin/yt-dlp)DEFAULT_DOWNLOAD_DIR: Directory where videos will be downloaded (default:~/Downloads/youtube_downloads)
MCP Configuration
Add this configuration to your MCP setup:
{
"mcpServers": {
"mcp_youtube_dlp": {
"command": "uvx",
"args": [
"mcp[cli]",
"run",
"<install path>/mcp_youtube_dlp/main.py"
],
"env": {
"YT_DLP_PATH": "/usr/local/bin/yt-dlp",
"DEFAULT_DOWNLOAD_DIR": "~/Downloads/youtube_downloads"
}
}
}
}Replace <install path> with the actual path where you installed this package.
Available Tools
download_youtube_video
Downloads a YouTube video in MP4 format.
Parameters:
url: The YouTube video URL
Returns:
A success or error message
download_youtube_audio
Downloads a YouTube video's audio in MP3 format.
Parameters:
url: The YouTube video URL
Returns:
A success or error message
MCP Integration
This server implements the Model Context Protocol, allowing AI assistants to access tools for downloading YouTube content. The server can be connected to any MCP-compatible client.
License
This project is licensed under the GNU General Public License, version 2 (GPL-2.0) - see the GNU website for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceConnects 'yt-dlp' with LLMs via the Model Context Protocol, allowing users to download YouTube content and integrate it with Dive and other MCP-compatible LLMs.Last updated244265MIT
- AlicenseAqualityCmaintenanceEnables searching, retrieving metadata, and downloading YouTube videos or audio without requiring an API key. It utilizes yt-dlp to support media retrieval and playlist management within MCP-compliant clients like Claude and Cursor.Last updated81MIT
- Alicense-qualityCmaintenanceMCP server for downloading videos and audio from YouTube and hundreds of other sites using yt-dlp.Last updatedMIT
- AlicenseAqualityAmaintenanceEnables AI agents to inspect, plan, download, and postprocess media from YouTube and other sites using yt-dlp, with safety and full option support.Last updated2812MIT
Related MCP Connectors
Download YouTube, TikTok, Vimeo, SoundCloud and 6 more platforms from any MCP AI chatbot.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yorickchan/mcp_youtube_dlp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server