kevinwatt/yt-dlp-mcp
A Model Context Protocol (MCP) server that bridges Video & Audio content with Large Language Models using yt-dlp.
What it solves
AI assistants typically cannot directly interact with video platforms. This server bridges that gap by exposing yt-dlp's functionality as structured tools that an AI can call. It lets users ask for video searches, metadata, transcripts, downloads, and comments in plain language, without needing to know command-line details.
How it works
The server wraps yt-dlp behind the Model Context Protocol (MCP). It exposes tools prefixed with ytdlp_ such as ytdlp_search_videos, ytdlp_get_video_metadata, ytdlp_download_transcript, ytdlp_download_video, and ytdlp_get_video_comments. Each tool validates inputs with Zod schemas, supports JSON or Markdown output, and includes safety features like URL checks to block internal addresses. The server can be run via npx and configured in any MCP-compatible client (Claude, Dive, Cursor, etc.) with a simple JSON config.
Who it's for
Anyone using an MCP-compatible AI assistant (Claude, Dive, Cursor, VS Code Copilot, etc.) who needs to work with YouTube or other video platforms programmatically. It's especially useful for tasks like summarising video content, creating reports with metadata, downloading media, or analysing comments.
Highlights
- Search YouTube with pagination and date filtering, returning results in JSON or Markdown.
- Extract rich metadata (views, likes, upload date, tags) and get summaries without downloading.
- Download subtitles (VTT) and clean text transcripts with multi-language support.
- Download videos in chosen resolutions (480p to 1080p) with optional trimming, and extract audio in M4A/MP3.
- Fetch comments in flat or threaded views, with formatted summaries for AI analysis.
- Safety-first design: strict URL validation blocks private/local addresses, Zod schema validation prevents injection, and output length limits protect LLM context.
- Uses your existing yt-dlp config file for proxies, cookies, and other options automatically.
Related
- Project
- Project
- Project
- Project