Skip to main content
Glama

YouTube MCP Server

npm version npm downloads npm total downloads

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

Website: zubeidhendricks.github.io/youtube-mcp-server

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.

Related MCP server: mcp-youtube-transcript

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

Contributing

See CONTRIBUTING.md for information about contributing to this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Available Tools

1 tool
videos_searchVideosC

Search for videos on YouTube

ParametersJSON Schema
NameRequiredDescriptionDefault
orderNoSort order for results, such as relevance or date
queryYesSearch query
sortByNoOptional ranking mode such as relevance, indie_priority, subscribers_asc, subscribers_desc, or recent_activity
channelIdNoRestrict results to a specific channel ID
maxResultsNoMaximum number of results to return
creatorOnlyNoOnly include channels heuristically classified as creators
publishedAfterNoOnly include videos published after this ISO 8601 date
uniqueChannelsNoReturn only one matched video per unique channel
publishedBeforeNoOnly include videos published before this ISO 8601 date
channelMaxSubscribersNoMaximum subscriber count for the matched video channel
channelMinSubscribersNoMinimum subscriber count for the matched video channel
channelLastUploadAfterNoOnly include videos whose channel latest upload is after this ISO 8601 date
channelLastUploadBeforeNoOnly include videos whose channel latest upload is before this ISO 8601 date

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description must disclose behavioral traits. It only says 'Search for videos,' omitting any details about rate limits, pagination, return format, or side effects. This is insufficient for an agent to anticipate behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, which is too brief for a tool with 13 parameters. While concise, it is under-specified and does not earn its place; it should include more context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (13 parameters, no output schema), the description lacks completeness. It does not explain return values, default behaviors, or interaction effects between parameters, leaving the agent underinformed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, so the schema itself documents each parameter. The tool description adds no additional meaning beyond the schema, making the baseline score of 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb ('Search') and resource ('videos on YouTube'), making the tool's purpose immediately understandable. However, it lacks any differentiation from potential sibling tools (none provided) and is somewhat generic.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool, when not to use it, or any alternatives. With no sibling tools mentioned, the description could at least imply typical search scenarios, but it does not.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

C2.6/5.0
Disambiguation5/5

With only one tool, there is no possibility of confusion or overlap between tools, so disambiguation is perfect.

Naming Consistency2/5

The single tool name 'videos_searchVideos' mixes camelCase and an awkward verb_noun structure ('videos' as prefix then 'searchVideos'), showing internal inconsistency and lack of a clear pattern.

Tool Count1/5

One tool is far too few for a YouTube MCP server, which typically requires multiple operations (search, video details, channel info, etc.), making the tool count extremely inadequate.

Completeness1/5

The tool only supports searching for videos, missing critical operations like retrieving video details, listing playlists, or managing subscriptions, leaving severe gaps in covering the YouTube domain.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZubeidHendricks/youtube-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server