
YouTube DLP
STDIOMCP server for AI to extract YouTube video information, subtitles, and comments
MCP server for AI to extract YouTube video information, subtitles, and comments
🎬 A Model Context Protocol (MCP) server that lets your AI interact with YouTube videos - extract video information, subtitles, and top comments without downloading.
uvx youtube-dlp-server
pip install youtube-dlp-server youtube-dlp-server
git clone <repository-url> cd youtube-dlp-server pip install -e . python -m youtube_dlp_server
Extract comprehensive video metadata:
{ "name": "get-video-info", "arguments": { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" } }
Extract subtitles and captions:
{ "name": "get-video-subtitles", "arguments": { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "languages": ["en", "es"], "include_auto_captions": true } }
Get top comments (max 20, default 10):
{ "name": "get-top-comments", "arguments": { "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "count": 10 } }
Set the PROXY_URL
environment variable:
# HTTP/HTTPS proxy export PROXY_URL="http://proxy.example.com:8080" # SOCKS proxy with auth export PROXY_URL="socks5://user:[email protected]:1080/" # Run with proxy youtube-dlp-server
npx @modelcontextprotocol/inspector youtube-dlp-server
python -c " import asyncio from youtube_dlp_server.helper import extract_video_info async def test(): info = await extract_video_info('https://www.youtube.com/watch?v=dQw4w9WgXcQ') print(f'✅ Video: {info[\"title\"]}') asyncio.run(test()) "
MIT License - see LICENSE file for details.
Made with ❤️ for the AI community