Back to Home
kevinwatt icon

yt-dlp-mcp

Verified Safe

by 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

Run Command
npx -y @kevinwatt/yt-dlp-mcp

Environment 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

Stats

Interest Score57
Security Score8
Cost ClassMedium
Avg Tokens5000
Stars156
Forks42
Last Update2025-12-06

Tags

Video processingAI agent toolMedia downloadMetadata extractionSubtitles & Transcripts