yt-dlp-mcp
Verified Safeby kevinwatt
Overview
This MCP server enables AI agents to interact with video platforms by providing tools for searching, extracting metadata, downloading content (video/audio), and generating transcripts/subtitles using the yt-dlp utility.
Installation
npx -y @kevinwatt/yt-dlp-mcpEnvironment Variables
- YTDLP_MAX_FILENAME_LENGTH
- YTDLP_DOWNLOADS_DIR
- YTDLP_TEMP_DIR_PREFIX
- YTDLP_SANITIZE_REPLACE_CHAR
- YTDLP_SANITIZE_TRUNCATE_SUFFIX
- YTDLP_SANITIZE_ILLEGAL_CHARS
- YTDLP_SANITIZE_RESERVED_NAMES
- YTDLP_DEFAULT_RESOLUTION
- YTDLP_DEFAULT_AUDIO_FORMAT
- YTDLP_DEFAULT_SUBTITLE_LANG
- YTDLP_CHARACTER_LIMIT
- YTDLP_MAX_TRANSCRIPT_LENGTH
- YTDLP_COOKIES_FILE
- YTDLP_COOKIES_FROM_BROWSER
Security Notes
The server executes 'yt-dlp' as a child process; while parameters are constructed using arrays (safer than string concatenation), reliance on an external binary always carries some inherent risk. The configurable download directory (YTDLP_DOWNLOADS_DIR) could be a vector for abuse if the server's environment is compromised, potentially allowing files to be written to arbitrary locations. Cookie handling via environment variables requires careful configuration to prevent sensitive data exposure or unauthorized access. No 'eval' or explicit malicious patterns found, and input validation helps mitigate some risks.
Similar Servers
mcp-servers
An MCP server for fetching, cleaning, and intelligently extracting content from web pages, designed for agent-building frameworks.
mcp-youtube
Provides token-optimized, structured YouTube Data API v3 data for LLM applications, enabling video search, details, transcripts, channel analysis, and trend discovery.
mcp-video-extraction-plus
The server extracts text from various video and audio sources using multiple Automatic Speech Recognition (ASR) providers, including local Whisper and online services from JianYing (CapCut) and Bilibili.
mcp-server-requests
An MCP server that provides HTTP request capabilities, enabling LLMs to fetch and process web content, including saving to files.