YouTube MCP logo

YouTube MCP

Search YouTube, retrieve transcripts and metadata, inspect comments, and access account features through MCP.

Install YouTube MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "youtube-mcp-2": {
      "command": "npx",
      "args": [
        "-y",
        "@mrsknetwork/ytmcp@latest"
      ],
      "env": {
        "GOOGLE_API_KEY": "YOUR_VALUE_HERE",
        "GOOGLE_CLIENT_ID": "YOUR_VALUE_HERE",
        "GOOGLE_CLIENT_SECRET": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 19 tools correctly (2d ago).

Overview

YouTube MCP MCP server connects AI assistants to public YouTube data through the YouTube Data API v3 and yt-dlp. It supports keyword search, transcripts, video and channel metadata, comments, captions, playlists, trending videos, and regional or category filters. Guest mode retrieves transcripts without credentials, while an API key unlocks public-data tools and OAuth adds access to personal subscriptions and channel memberships. Reach for it when an agent needs structured YouTube research or account-specific YouTube data.

Use cases

  • Search YouTube by topic, date, region, duration, or quality
  • Extract spoken transcripts in a selected language
  • Inspect video metadata, captions, comments, and replies
  • Analyze channels, playlists, uploads, and trending videos
  • Review personal subscriptions or channel membership data

Key features

  • Transcript extraction through yt-dlp
  • YouTube Data API v3 search and metadata access
  • Video, channel, playlist, comment, and caption tools
  • Regional trending video and category lookup
  • OAuth access to subscriptions and memberships
  • Pagination for supported list operations

Tools19

What YouTube MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

4/4 checks healthy over the last 19d

What it can do

From the 19 tools this server returned when we ran it; 19 declare their own safety hints.

Can delete or modify data · 1Handles credentials · 4Makes network requests · 18Read-only tools · 18
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age237 days
Maintainers1

Observed 2026-10-26 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 22h ago via OSV.dev · @mrsknetwork/ytmcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
npm downloads246Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed19Callable tools this server registers over MCP.

How YouTube MCP works

What YouTube MCP does

YouTube MCP MCP server exposes YouTube research and account-data operations to MCP-compatible AI assistants. It can retrieve spoken transcripts, search for videos, channels, or playlists, and return metadata such as titles, descriptions, tags, durations, views, likes, and comment counts.

The server also covers channel and playlist inspection. Agents can look up channels by ID or @handle, list playlists and their items, inspect channel activity and page sections, and retrieve trending videos by region and optional category. Comment tools return top-level threads and replies, while caption tools identify available manual and auto-generated tracks.

Public-data access uses the YouTube Data API v3. OAuth extends the available account operations to personal subscriptions, channel members, and membership levels. The server includes a tool for revoking OAuth access and deleting stored Google credentials.

How it works

The package runs as a local stdio MCP server through npx, using the @mrsknetwork/ytmcp package. In guest mode, get_video_transcript uses yt-dlp and does not need an API key. This mode is appropriate when the main requirement is extracting a video's transcript.

Supplying GOOGLE_API_KEY enables the public YouTube Data API tools. Search supports ordering, publication date ranges, duration, definition, region, and pagination. Other API-backed tools support pagination where applicable, including trending videos, comments, replies, and subscriptions.

OAuth requires a Google OAuth 2.0 web application and the redirect URI http://localhost:31415/oauth2callback. On the first OAuth-enabled tool call, the assistant provides a login link for browser authorization. The session is then retained until access is revoked.

Setup and configuration

For a minimal configuration, add the package as an MCP command:

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

For public API access, enable YouTube Data API v3 in Google Cloud, create an API key, and pass it as GOOGLE_API_KEY in the MCP configuration or a .env file.

OAuth configuration uses GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET. The Google project must have YouTube Data API v3 enabled, and the OAuth consent screen must include the user as a test user when applicable. The client type should be a web application with the exact localhost callback listed above.

To build from source, clone the repository, run npm install, run npm run build, create .env from .env.example, and start node build/server/index.js.

Tools and capabilities

The YouTube MCP MCP server provides tools for:

  • Extracting full transcripts with a requested language and a preference for manual or auto-generated captions.
  • Searching content and filtering results by dates, duration, quality, order, and region.
  • Reading video, channel, playlist, caption, category, language, and region information.
  • Listing trending videos, channel activity, channel sections, playlists, and playlist entries.
  • Fetching comment threads and replies, with keyword filtering for comments.
  • Listing public or personal subscriptions, channel members, and membership tiers.
  • Revoking OAuth access and removing stored credentials.

Limitations and notes

Transcript extraction is the only documented guest-mode capability; the other public-data tools require a Google API key. Membership and personal subscription operations require OAuth, and listing channel members additionally requires an active channel memberships program. The server works with public YouTube information unless the OAuth flow grants access to the specified account data.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about YouTube MCP

YouTube MCP is an MCP server that connects AI assistants to YouTube through the Data API v3 and yt-dlp. Its main tools search content, extract transcripts, retrieve video and channel metadata, inspect comments and captions, list playlists and trending videos, and access subscriptions or memberships with OAuth.

Install it by configuring an MCP client to run `npx -y @mrsknetwork/ytmcp@latest` with no environment variables for guest transcript access. For a source build, clone the repository, run `npm install` and `npm run build`, then start `node build/server/index.js`.

No, a Google API key is not required for guest transcript extraction. Set `GOOGLE_API_KEY` after enabling YouTube Data API v3 in Google Cloud to use public search, metadata, comments, trending, playlist, channel, and other API-backed tools.

Use OAuth by configuring `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET` for a Google OAuth web application. OAuth enables personal subscriptions, channel members, and membership levels; the callback URI must be `http://localhost:31415/oauth2callback`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewYouTube MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/youtube-mcp-2?style=directory)](https://allmcps.com/mcp/youtube-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/youtube-mcp-2"><img src="https://allmcps.com/api/badge/youtube-mcp-2?style=directory" alt="YouTube MCP on AllMCPs" /></a>