Built on Python with comprehensive video downloading capabilities, supporting video extraction and processing.
Uses TOML for secure configuration management, allowing customization of download locations, security settings, and yt-dlp options.
Supports downloading videos from YouTube with various quality options, format selection, and metadata extraction.
🎬 Video Downloader MCP Server
A powerful Model Context Protocol (MCP) server that transforms video downloading into a tool-based system for LLM orchestration. Built on yt-dlp with comprehensive security features and intelligent fallback mechanisms.
🌟 Features
- 🛠️ 7 MCP Tools for intelligent video processing workflows
- 🔒 Enterprise Security with path validation and sandboxed downloads
- 🌐 1000+ Platforms supported via yt-dlp integration
- 🧠 LLM-Orchestrated workflows with granular tool control
- 🔄 Fallback Analysis for unsupported sites
- 📁 Organized Downloads with configurable secure locations
- ⚡ High Performance with efficient format selection
🚀 Quick Start
Installation
Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
First Download
🛠️ Available Tools
Tool | Purpose | Example Usage |
---|---|---|
check_ytdlp_support | Quick URL validation | "Is this video URL supported?" |
get_video_info | Extract metadata | "What's the video duration and quality?" |
get_video_formats | List quality options | "What download formats are available?" |
download_video | Secure download | "Download this video in 1080p" |
get_download_locations | Show safe locations | "Where can I save downloaded files?" |
analyze_webpage | Fallback analysis | "yt-dlp failed, analyze the page" |
extract_media_patterns | Pattern matching | "Find video URLs in this HTML" |
🔒 Security Features
Built-in Protection
- Path Traversal Prevention - Blocks
../
directory escape attempts - Location Restrictions - Downloads only to configured safe directories
- Extension Validation - Allows only safe file types (video/audio/subtitles)
- Template Sanitization - Removes dangerous shell characters
- TOML Configuration - No deserialization vulnerabilities
Secure Download Example
Default Security Configuration
🎯 Usage Examples
Basic Video Download
Quality Selection Workflow
Fallback Analysis
Organized Downloads
⚙️ Configuration
The server creates ~/.config/video-downloader-mcp/config.toml
automatically. Customize as needed:
🧠 LLM Integration Examples
With Claude Code
With ChatGPT + MCP
🔧 Development
Architecture Overview
Key Components
- YtDlpExtractor: Wraps yt-dlp with structured interfaces
- WebpageAnalyzer: Fallback analysis for unsupported sites
- SecureConfigManager: TOML-based configuration with security defaults
- PathValidator: Multi-layer path security validation
- LocationManager: Manages configured download locations
Testing
🤝 Contributing
We welcome contributions! Please see our contributing guidelines for details.
Development Setup
📋 Requirements
- Python 3.8+
- yt-dlp (latest version recommended)
- MCP library (
pip install mcp
) - Additional dependencies:
requests
,aiohttp
,tomli
(Python < 3.11)
🔍 Troubleshooting
Common Issues
MCP server not loading:
Downloads failing:
Security validation errors:
Debug Mode
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- yt-dlp - The powerful video extraction engine that makes this possible
- Model Context Protocol - Enabling seamless LLM-tool integration
- Anthropic - For Claude and the MCP specification
🚀 Related Projects
- MCP Specification - Official MCP documentation
- Claude Code - Claude's code editing environment
- yt-dlp - The underlying video extraction library
Transform your video downloading workflow with intelligent LLM orchestration! 🎬✨
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Model Context Protocol server that transforms video downloading into a tool-based system for LLM orchestration, allowing users to download videos from 1000+ platforms with intelligent workflows and security features.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that allows LLMs to interact with web content through standardized tools, currently supporting web scraping functionality.Last updated -PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.Last updated -6Python
- -securityFlicense-qualityA comprehensive Model Context Protocol server that bridges LLMs with self-hosted media services, enabling natural language control of TV shows, movies, downloads, and notifications while maintaining traditional API access.Last updated -TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.Last updated -54TypeScript