npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gtvar/yt-dlp-mcp

v1.0.5

Published

Model Context Protocol (MCP) Server for yt-dlp

Readme

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

Installation

Prerequisites

Install yt-dlp based on your operating system:


# macOS
brew install yt-dlp

# Linux
pip install yt-dlp

With Claude Desktop

  1. Open your Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  2. Add the MCP server configuration:

{
  "mcpServers": {
    "yt-dlp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gtvar/yt-dlp-mcp"
      ]
    }
  }
}
  1. Save the file and restart Claude Desktop

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

Usage Examples

Ask your LLM to:

"Get information about this video: https://youtube.com/watch?v=..."
"Download this YouTube video: https://youtube.com/watch?v=..."
"Extract audio from this video in mp3 format: https://youtube.com/watch?v=..."
"Download video with custom quality settings: https://youtube.com/watch?v=..."
"Save this video to a specific folder: https://youtube.com/watch?v=..."

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)

Requirements

  • Node.js 20+
  • yt-dlp in system PATH
  • MCP-compatible LLM service (Claude Desktop, etc.)
  • Optional: ffmpeg for additional format support

License

MIT

Author

gtvar