yt-dlp
Download video and audio from YouTube and other platforms using the yt-dlp tool.
yt-dlp-mcp
An MCP server implementation that integrates with yt-dlp, providing video and audio content download capabilities from YouTube and other platforms for LLMs.
Features
- Video Download: Save videos to your specified folder with quality control
- Audio Download: Extract and save audio in various formats (mp3, m4a, ogg, opus)
- Video Information: Get metadata about videos without downloading
- Privacy-Focused: Direct download without tracking
- MCP Integration: Works with Claude Desktop and other MCP-compatible LLMs
- Flexible Output: Customizable output paths and file formats
Installation
Prerequisites
Install yt-dlp based on your operating system:
# macOS
brew install yt-dlp
# Linux
pip install yt-dlp
With Claude Desktop
-
Open your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- macOS:
-
Add the MCP server configuration:
{
"mcpServers": {
"yt-dlp-mcp": {
"command": "npx",
"args": [
"-y",
"@gtvar/yt-dlp-mcp"
]
}
}
}
- Save the file and restart Claude Desktop
Tool Documentation
-
get_video_info
- Get video metadata without downloading (title, duration, uploader, available formats)
- Inputs:
url(string, required): URL of the video
-
download_video
- Download video or extract audio to specified location with quality control
- Inputs:
url(string, required): URL of the videoquality_preference(string, optional): Video quality preferencevideo_container_preference(string, optional): Preferred video formataudio_container_preference(string, optional): Preferred audio format (mp3, m4a, ogg, opus)output_path(string, optional): Custom output path with filename templateextract_audio_only(boolean, optional): Extract audio only. Defaults to false
Usage Examples
Ask your LLM to:
"Get information about this video: https://youtube.com/watch?v=..."
"Download this YouTube video: https://youtube.com/watch?v=..."
"Extract audio from this video in mp3 format: https://youtube.com/watch?v=..."
"Download video with custom quality settings: https://youtube.com/watch?v=..."
"Save this video to a specific folder: https://youtube.com/watch?v=..."
Manual Start
If needed, start the server manually:
npx @gtvar/yt-dlp-mcp
Environment Variables
YTDLP_PATH- Path to yt-dlp executable (default: 'yt-dlp')YTDL_OUTPUT_DIR- Default output directory (default: '/tmp')FFMPEG_PATH- Path to ffmpeg executable (optional)
Requirements
- Node.js 20+
yt-dlpin system PATH- MCP-compatible LLM service (Claude Desktop, etc.)
- Optional:
ffmpegfor additional format support
License
MIT
Author
gtvar
Related Servers
Bright Data
sponsorDiscover, extract, and interact with the web - one interface powering automated access across the public internet.
HTML to Markdown MCP
Fetch web pages and convert HTML to clean, formatted Markdown. Handles large pages with automatic file saving to bypass token limits.
HDW MCP Server
Access and manage LinkedIn data and user accounts using the HorizonDataWave API.
LinkedIn Profile Scraper
Fetches LinkedIn profile information using the Fresh LinkedIn Profile Data API.
Chrome MCP Server
Control a Chrome browser instance using the Chrome DevTools Protocol (CDP).
Browserbase
Automate browser interactions in the cloud (e.g. web navigation, data extraction, form filling, and more)
BrowserAct
BrowserAct MCP Server is a standardized MCP service that lets MCP clients connect to the BrowserAct platform to discover and run browser automation workflows, access results/files and related storage, and trigger real-world actions via natural language.
Website Snapshot
A MCP server that provides comprehensive website snapshot capabilities using Playwright. This server enables LLMs to capture and analyze web pages through structured accessibility snapshots, network monitoring, and console message collection.
Open Crawler MCP Server
A web crawler and text extractor with robots.txt compliance, rate limiting, and page size protection.
Puppeteer
Browser automation using Puppeteer, with support for local, Docker, and Cloudflare Workers deployments.
Yahoo Finance
Fetch stock data, news, and financial information from Yahoo Finance.