MCP Connector

Integrate AI with YouTube Content

YouTube MCP Server gives AI assistants 10 tools to search videos, find creators, get transcripts, and query channels.

Works with youtube

91
Spark score
out of 100
Updated 4 months ago
Version 1.0.0
Models
universal

Add to Favorites

Why it matters

Enable AI language models to interact with YouTube content, facilitating video management, transcript processing, and channel operations through a standardized interface.

Outcomes

What it gets done

01

Retrieve video details and statistics.

02

Process and search video transcripts.

03

Manage channel and playlist content.

04

Search for videos and retrieve channel information.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-youtube | bash

Capabilities

Tools your agent gets

get_video_details

Get video details including title, description, duration, and other metadata.

list_channel_videos

List all videos from a specific YouTube channel.

get_video_statistics

Get video statistics including views, likes, and comments count.

search_videos

Search for videos on YouTube with specific terms and filters.

get_video_transcript

Get video transcripts with multi-language support and timestamps.

get_video_subtitles

Get video subtitles with timestamps for a specific video.

search_transcript

Search within video transcripts for specific terms or phrases.

get_channel_details

Get channel information including statistics and metadata.

list_channel_playlists

List all playlists from a specific YouTube channel.

Overview

YouTube MCP Server

YouTube MCP Server exposes 10 tools over the YouTube Data API, letting an AI assistant search videos and channels with advanced filters, discover creators by topic, pull transcripts, and browse playlists. Use it for creator research, competitive analysis, or content discovery needing filtered YouTube search rather than simple lookups; requires a YouTube Data API key, with optional fallback keys for quota resilience.

What it does

YouTube MCP Server (ZubeidHendricks) implements the Model Context Protocol over the YouTube Data API, giving an AI assistant 10 tools to search and analyze YouTube content: fetching video details, running filtered video searches, pulling transcripts, looking up single or multiple channels, searching or discovering creator channels with subscriber and activity filters, listing a channel's videos, and reading playlists and their items.

When to use - and when NOT to

Use this when you want an assistant to research YouTube content beyond a simple lookup - finding videos matching detailed criteria (publish date range, channel subscriber band, recent upload activity), discovering creator channels from video mentions of a topic or game, pulling a video's transcript in a specific language, or browsing a channel's or playlist's video list. It's well suited to creator research, competitive analysis, and content discovery workflows. It is not useful without a YouTube Data API key (up to three can be configured, with automatic failover when one exhausts its quota), and transcript availability depends on whether the video has captions in the requested language.

Capabilities

  • videos_getVideo: gets detailed information about a video by ID, with optional specific resource parts.
  • videos_searchVideos: searches videos with filters for date range, channel, subscriber band, upload recency, creator classification, and sort order (relevance, subscribers, indie priority, recent activity).
  • transcripts_getTranscript: gets a video's transcript, with a language override (falls back to YOUTUBE_TRANSCRIPT_LANG or English).
  • channels_getChannel / channels_getChannels: gets detailed info for one or multiple channels, including normalized metadata like country, join date, and contact links.
  • channels_searchChannels: searches channels by handle, name, or query, with subscriber and activity filters.
  • channels_findCreators: discovers creator channels from videos mentioning a topic or game, with subscriber and activity filters and a configurable sample of matched videos per channel.
  • channels_listVideos: lists videos from a specific channel.
  • playlists_getPlaylist / playlists_getPlaylistItems: gets playlist details or the videos it contains.

How to install

Install globally:

npm install -g zubeid-youtube-mcp-server

Add to Claude Desktop config with command: zubeid-youtube-mcp-server and environment variables YOUTUBE_API_KEY (required, at least one), plus optional YOUTUBE_API_KEY2, YOUTUBE_API_KEY3 (fallback keys used automatically on quota exhaustion), and YOUTUBE_TRANSCRIPT_LANG. Or run via npx without installing, or install via Smithery: npx -y @smithery/cli install @ZubeidHendricks/youtube --client claude. A Docker image is also available, defaulting to stateless HTTP transport on port 8088.

Who it's for

Content researchers, creator-partnership teams, and analysts who want an AI assistant to search YouTube with advanced filters, discover creators by niche, and pull transcripts and channel data directly, rather than manually digging through YouTube search and channel pages.

Source README

YouTube MCP Server

smithery badge

A Model Context Protocol (MCP) server implementation for YouTube, enabling AI language models to interact with YouTube content through a standardized interface.

Available Tools

The server currently exposes 10 MCP tools.

Tool Description Required Parameters Optional Parameters
videos_getVideo Get detailed information about a YouTube video videoId parts
videos_searchVideos Search for videos on YouTube query maxResults, order, publishedAfter, publishedBefore, channelId, uniqueChannels, channelMinSubscribers, channelMaxSubscribers, channelLastUploadAfter, channelLastUploadBefore, creatorOnly, sortBy
transcripts_getTranscript Get the transcript of a YouTube video videoId language
channels_getChannel Get information about a YouTube channel channelId None
channels_getChannels Get information about multiple YouTube channels channelIds parts, includeLatestUpload
channels_searchChannels Search for YouTube channels by handle, name, or query query maxResults, order, channelType, minSubscribers, maxSubscribers, lastUploadAfter, lastUploadBefore, creatorOnly, sortBy
channels_findCreators Find creator channels from video mentions with channel-size and activity filters query maxResults, order, videoPublishedAfter, videoPublishedBefore, channelMinSubscribers, channelMaxSubscribers, channelLastUploadAfter, channelLastUploadBefore, creatorOnly, sortBy, sampleVideosPerChannel
channels_listVideos Get videos from a specific channel channelId maxResults
playlists_getPlaylist Get information about a YouTube playlist playlistId None
playlists_getPlaylistItems Get videos in a YouTube playlist playlistId maxResults

Tool Parameters

videos_getVideo
  • videoId (string): The YouTube video ID.
  • parts (string[], optional): Specific video resource parts to retrieve.
videos_searchVideos
  • query (string): Search query.
  • maxResults (number, optional): Maximum number of results to return.
  • order (string, optional): Result ordering such as relevance or date.
  • publishedAfter (string, optional): Only include videos published after this ISO 8601 date.
  • publishedBefore (string, optional): Only include videos published before this ISO 8601 date.
  • channelId (string, optional): Restrict results to a specific channel.
  • uniqueChannels (boolean, optional): Return only one video per unique channel.
  • channelMinSubscribers / channelMaxSubscribers (number, optional): Filter matched videos by the subscriber band of their channel.
  • channelLastUploadAfter / channelLastUploadBefore (string, optional): Filter matched videos by the latest upload activity of their channel.
  • creatorOnly (boolean, optional): Restrict results to channels heuristically classified as creators.
  • sortBy (string, optional): Supports relevance, subscribers_asc, subscribers_desc, indie_priority, and recent_activity.
transcripts_getTranscript
  • videoId (string): The YouTube video ID.
  • language (string, optional): Transcript language code. Falls back to YOUTUBE_TRANSCRIPT_LANG or en.
channels_getChannel
  • channelId (string): The YouTube channel ID.

Responses now include:

  • latestVideoPublishedAt
  • normalizedMetadata
    • includes country, defaultLanguage, joinedAt, customUrl, emailsFound, contactLinks, and creator-vs-brand heuristic fields
channels_getChannels
  • channelIds (string[]): A list of YouTube channel IDs.
  • includeLatestUpload (boolean, optional): Whether to include latestVideoPublishedAt. Defaults to true.
channels_searchChannels
  • query (string): Channel search query or handle.
  • maxResults (number, optional): Maximum number of channels to return.
  • order (string, optional): Result ordering such as relevance.
  • channelType (string, optional): Restrict the search to a channel type.
  • minSubscribers / maxSubscribers (number, optional): Filter channels by subscriber band.
  • lastUploadAfter / lastUploadBefore (string, optional): Filter channels by latest upload activity.
  • creatorOnly (boolean, optional): Restrict results to channels heuristically classified as creators.
  • sortBy (string, optional): Supports relevance, subscribers_asc, subscribers_desc, indie_priority, and recent_activity.
channels_findCreators
  • query (string): Topic, game, or mention query to discover channels from matched videos.
  • videoPublishedAfter / videoPublishedBefore (string, optional): Recency filters for the matched videos.
  • channelMinSubscribers / channelMaxSubscribers (number, optional): Subscriber band filters for returned channels.
  • channelLastUploadAfter / channelLastUploadBefore (string, optional): Latest-upload activity filters for returned channels.
  • creatorOnly (boolean, optional): Restrict results to channels heuristically classified as creators.
  • sortBy (string, optional): Supports relevance, subscribers_asc, subscribers_desc, indie_priority, and recent_activity.
  • sampleVideosPerChannel (number, optional): How many matched videos to include per returned channel.
channels_listVideos
  • channelId (string): The YouTube channel ID.
  • maxResults (number, optional): Maximum number of videos to return.
playlists_getPlaylist
  • playlistId (string): The YouTube playlist ID.
playlists_getPlaylistItems
  • playlistId (string): The YouTube playlist ID.
  • maxResults (number, optional): Maximum number of playlist items to return.

Installation

Quick Setup for Claude Desktop

  1. Install the package:
npm install -g zubeid-youtube-mcp-server
  1. Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
  "mcpServers": {
    "zubeid-youtube-mcp-server": {
      "command": "zubeid-youtube-mcp-server",
      "env": {
        "YOUTUBE_API_KEY": "your_primary_youtube_api_key",
        "YOUTUBE_API_KEY2": "your_secondary_youtube_api_key",
        "YOUTUBE_API_KEY3": "your_tertiary_youtube_api_key"
      }
    }
  }
}

Alternative: Using NPX (No Installation Required)

Add this to your Claude Desktop configuration:

{
  "mcpServers": {
    "youtube": {
      "command": "npx",
      "args": ["-y", "zubeid-youtube-mcp-server"],
      "env": {
        "YOUTUBE_API_KEY": "your_primary_youtube_api_key",
        "YOUTUBE_API_KEY2": "your_secondary_youtube_api_key",
        "YOUTUBE_API_KEY3": "your_tertiary_youtube_api_key"
      }
    }
  }
}

Installing via Smithery

To install YouTube MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @ZubeidHendricks/youtube --client claude

Configuration

Set the following environment variables:

  • YOUTUBE_API_KEY: Primary YouTube Data API key
  • YOUTUBE_API_KEY2: Secondary fallback API key
  • YOUTUBE_API_KEY3: Third fallback API key
  • YOUTUBE_TRANSCRIPT_LANG: Default language for transcripts (optional, defaults to 'en')

At least one of YOUTUBE_API_KEY, YOUTUBE_API_KEY2, or YOUTUBE_API_KEY3 must be set. When a request fails because a key has exhausted its quota, the server retries the same request with the next configured key.

Using with VS Code

For one-click installation, click one of the install buttons below:

Install with NPX in VS Code Install with NPX in VS Code Insiders

Manual Installation

If you prefer manual installation, first check the install buttons at the top of this section. Otherwise, follow these steps:

Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "apiKey",
        "description": "YouTube API Key",
        "password": true
      }
    ],
    "servers": {
      "youtube": {
        "command": "npx",
        "args": ["-y", "zubeid-youtube-mcp-server"],
        "env": {
          "YOUTUBE_API_KEY": "${input:apiKey}"
        }
      }
    }
  }
}

Optionally, you can add it to a file called .vscode/mcp.json in your workspace:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "apiKey",
      "description": "YouTube API Key",
      "password": true
    }
  ],
  "servers": {
    "youtube": {
      "command": "npx",
      "args": ["-y", "zubeid-youtube-mcp-server"],
      "env": {
        "YOUTUBE_API_KEY": "${input:apiKey}"
      }
    }
  }
}

Development

# Install dependencies
npm install

# Build
npm run build

# Start the server (requires at least one configured YouTube API key)
npm start

# Development mode with auto-rebuild
npm run dev

Docker

The included Docker image starts the server over HTTP by default.

  • Default transport: http
  • Default endpoint: http://localhost:8088/mcp
  • Readiness endpoint: http://localhost:8088/ready
  • Default mode: stateless

The Docker build copies .env into the runtime image and the server loads it automatically on startup. That means the container can run without passing API credentials at docker run time, as long as .env was present during docker build.

docker build -t youtube-mcp-server .
docker run --rm -p 8088:8088 youtube-mcp-server

The container defaults to:

MCP_TRANSPORT=http
MCP_HOST=0.0.0.0
MCP_PORT=8088
MCP_STATELESS=true

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.