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

@konanx/youtube-mcp

v0.1.0

Published

MCP server for exploring YouTube channels with API key access.

Readme

@konanx/youtube-mcp

MCP server for working with YouTube channels through YOUTUBE_API_KEY.

Features

  • Get all videos published on a channel.
  • Return views, likes, and comment counts for videos.
  • Return the public transcript for a video when captions are available.
  • Build an overview summary for a channel.
  • Show top videos by views, likes, or comments.
  • Search videos inside a channel by title, description, or tags.

Limitations

  • Channel and video data are fetched through YouTube Data API v3.
  • Transcripts are not available from YouTube Data API when using only an API key. This server uses a public captions flow, so transcripts are available only for videos with accessible public subtitles.
  • Free-text channel lookup uses search.list, which is significantly more expensive in quota than passing a direct channelId or @handle.

Environment Variables

YOUTUBE_API_KEY=your_youtube_data_api_key

Installation

npm install
npm run build

Publishing To npm

The package is already prepared for scoped public publishing.

npm login
npm run pack:check
npm publish --access public

Already configured:

  • bin points to dist/index.js
  • files publishes only dist and README.md
  • prepublishOnly rebuilds the project before publishing
  • publishConfig.access is fixed to public

Before publishing, make sure the @konanx scope belongs to your npm account.

Running Locally

YOUTUBE_API_KEY=your_key npm start

MCP Client Setup

A ready-to-use example config is available in mcp.json.

{
  "mcpServers": {
    "youtube": {
      "command": "npx",
      "args": ["-y", "@konanx/youtube-mcp"],
      "env": {
        "YOUTUBE_API_KEY": "YOUR_YOUTUBE_API_KEY"
      }
    }
  }
}

If you prefer installing the package globally first:

npm install -g @konanx/youtube-mcp

Then configure your MCP client like this:

{
  "mcpServers": {
    "youtube": {
      "command": "youtube-mcp",
      "args": [],
      "env": {
        "YOUTUBE_API_KEY": "YOUR_YOUTUBE_API_KEY"
      }
    }
  }
}

For local development before publishing, you can still run the built entrypoint directly:

{
  "mcpServers": {
    "youtube": {
      "command": "node",
      "args": [
        "/Projects/KonanX/mcp/youtube/dist/index.js"
      ],
      "env": {
        "YOUTUBE_API_KEY": "YOUR_YOUTUBE_API_KEY"
      }
    }
  }
}

MCP Tools

youtube_list_channel_videos

Input:

{
  "channel": "@GoogleDevelopers",
  "limit": 100
}

youtube_get_video_stats

Input:

{
  "videoIds": ["dQw4w9WgXcQ"]
}

youtube_get_video_transcript

Input:

{
  "videoId": "dQw4w9WgXcQ"
}

youtube_get_channel_overview

Input:

{
  "channel": "https://www.youtube.com/@GoogleDevelopers"
}

youtube_find_top_videos

Input:

{
  "channel": "@GoogleDevelopers",
  "sortBy": "views",
  "limit": 10
}

youtube_search_channel_videos

Input:

{
  "channel": "@GoogleDevelopers",
  "query": "gemini",
  "limit": 20
}