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

@mrsknetwork/ytmcp

v1.0.9

Published

YouTube MCP Server

Readme

YouTube MCP

Connect AI assistants to YouTube - search, transcripts, metadata, and more.

npm MIT MCP


What can it do?

Once connected, your AI can:

  • Extract clean, word-for-word video transcripts - no credentials required.
  • Search YouTube for videos, channels, and playlists.
  • Retrieve video stats, metadata, comments, and captions.
  • Access private data like subscriptions and memberships (with OAuth).

Getting Started

The server supports three access tiers. Pick the one that fits your use case.

Guest Mode (No Setup)

Works out of the box. The get_video_transcript tool uses yt-dlp to extract transcripts without any API credentials.

{
  "mcpServers": {
    "youtube-mcp": {
      "command": "npx",
      "args": ["-y", "@mrsknetwork/ytmcp@latest"]
    }
  }
}

API Key (Recommended)

Unlocks all public data tools. Best for search, metadata, comments, and transcripts.

1. Get a Google API Key

  1. Open the Google Cloud Console.
  2. Enable YouTube Data API v3 for your project.
  3. Go to Credentials and create an API Key.

2. Add to your MCP client config

{
  "mcpServers": {
    "youtube-mcp": {
      "command": "npx",
      "args": ["-y", "@mrsknetwork/ytmcp@latest", "YOUR_GOOGLE_API_KEY"]
    }
  }
}

OAuth 2.0

1. Create an OAuth 2.0 Client

  1. Open the Google Cloud Console.
  2. Enable YouTube Data API v3 for your project.
  3. Go to Credentials > Create Credentials > OAuth 2.0 Client ID.
  4. Set Application type to Web application.
  5. Add this exact Redirect URI: http://localhost:31415/oauth2callback.
  6. Go to OAuth Consent Screen > Test Users and add your Gmail address.

2. Add to your MCP client config

Credentials are passed securely via environment variables in the MCP config. They are never stored in files.

{
  "mcpServers": {
    "youtube-mcp": {
      "command": "npx",
      "args": ["-y", "@mrsknetwork/ytmcp@latest"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
        "GOOGLE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

3. First-time login

On your first tool call, the AI will share a login link. Click it, authorize the app in your browser, then tell the AI you are done. Your session is saved - you won't need to log in again unless you revoke access.


Available Tools

| Tool | Auth Required | Description | |------|--------------|-------------| | get_video_transcript | None | Extract a full video transcript via yt-dlp. | | search_content | API Key / OAuth | Search for videos, channels, or playlists. | | get_video_metadata | API Key / OAuth | Fetch metadata and stats for specific videos. | | get_channel_metadata | API Key / OAuth | Fetch channel profile and subscriber info. | | list_playlists | API Key / OAuth | Retrieve playlists for a channel. | | list_playlist_items | API Key / OAuth | List videos inside a playlist. | | list_video_comments | API Key / OAuth | Get top-level comments for a video or channel. | | list_comment_replies | API Key / OAuth | Get replies to a specific comment. | | list_video_captions | API Key / OAuth | List available caption tracks for a video. | | list_video_categories | API Key / OAuth | List YouTube video categories by region. | | list_supported_languages | API Key / OAuth | List languages supported by YouTube. | | list_supported_regions | API Key / OAuth | List regions supported by YouTube. | | list_channel_activities | API Key / OAuth | Get recent activity for a channel. | | list_channel_sections | API Key / OAuth | Get the sections on a channel page. | | list_subscriptions | OAuth only | List subscriptions for a channel or your account. | | list_channel_members | OAuth only | List members of your channel. | | list_membership_levels | OAuth only | List membership tiers for your channel. |


Building from Source

git clone https://github.com/mrsknetwork/ytmcp.git
cd ytmcp
npm install
npm run build
node build/server/index.js "YOUR_API_KEY"

License

Licensed under the MIT License.