Labsco
Gtvar logo

yt-dlp

โ˜… 1

from Gtvar

Download video and audio from YouTube and other platforms using the yt-dlp tool.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

yt-dlp-mcp

An MCP server implementation that integrates with yt-dlp, providing video and audio content download capabilities from YouTube and other platforms for LLMs.

Features

  • Video Download: Save videos to your specified folder with quality control
  • Audio Download: Extract and save audio in various formats (mp3, m4a, ogg, opus)
  • Video Information: Get metadata about videos without downloading
  • Privacy-Focused: Direct download without tracking
  • MCP Integration: Works with Claude Desktop and other MCP-compatible LLMs
  • Flexible Output: Customizable output paths and file formats

Tool Documentation

  • get_video_info

    • Get video metadata without downloading (title, duration, uploader, available formats)
    • Inputs:
      • url (string, required): URL of the video
  • download_video

    • Download video or extract audio to specified location with quality control
    • Inputs:
      • url (string, required): URL of the video
      • quality_preference (string, optional): Video quality preference
      • video_container_preference (string, optional): Preferred video format
      • audio_container_preference (string, optional): Preferred audio format (mp3, m4a, ogg, opus)
      • output_path (string, optional): Custom output path with filename template
      • extract_audio_only (boolean, optional): Extract audio only. Defaults to false

Manual Start

If needed, start the server manually:

npx @gtvar/yt-dlp-mcp

Environment Variables

  • YTDLP_PATH - Path to yt-dlp executable (default: 'yt-dlp')
  • YTDL_OUTPUT_DIR - Default output directory (default: '/tmp')
  • FFMPEG_PATH - Path to ffmpeg executable (optional)

Author

gtvar