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

youtube-dl-mcp

v1.0.0-draft.1770992906137

Published

MCP server for downloading YouTube audio via yt-dlp

Readme

youtube-dl-mcp

MCP server for downloading YouTube audio via yt-dlp. Runs over stdio, designed as a child server for mcp-proxy or any MCP-compatible host.

Tools

| Tool | Description | |------|-------------| | youtube_download_audio | Download audio from a YouTube video as MP3. | | youtube_get_video_info | Get video metadata (title, channel, duration, etc.) without downloading. |

Prerequisites

Both must be available in PATH:

  • yt-dlp -- pip install yt-dlp
  • ffmpeg -- used by yt-dlp for audio extraction

Install

npm install youtube-dl-mcp

Requires Node.js >= 18.

Configuration

No API keys required. Just needs yt-dlp and ffmpeg installed.

Usage

Standalone (stdio)

npx youtube-dl-mcp

MCP proxy config

{
  "youtube-dl-mcp": {
    "command": "node",
    "args": ["/path/to/youtube-dl-mcp/dist/index.js"]
  }
}

Claude Desktop config

{
  "mcpServers": {
    "youtube-dl": {
      "command": "npx",
      "args": ["youtube-dl-mcp"]
    }
  }
}

Tool Details

youtube_download_audio

Downloads audio and converts to MP3. Creates output directories recursively.

| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | url | string | Yes | - | YouTube URL (youtube.com/watch?v=..., youtu.be/..., youtube.com/shorts/...) | | output_dir | string | No | /app/youtube-dl-output | Directory to save the MP3 | | filename | string | No | Sanitized video title | Custom filename (without .mp3 extension) | | audio_quality | string | No | 0 (best) | Quality from 0 (best) to 9 (worst) |

Returns: file_path, title, duration_seconds, file_size_bytes, channel.

Timeouts: Downloads time out after 300 seconds.

youtube_get_video_info

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | url | string | Yes | YouTube URL |

Returns: title, channel, duration_seconds, description (truncated to 500 chars), thumbnail_url, upload_date, view_count.

Timeouts: Info requests time out after 30 seconds.

Build

npm run build

License

MIT