YouTube MCP server

Social media

MCP Server for YouTube API, enabling video management, Shorts creation, and advanced analytics.

Your AI app calls the YouTube MCP server, which does the social media work and sends the result back to the chat.

About YouTube

YouTube is a community MCP server from ZubeidHendricks, filed in our directory under social media. MCP Server for YouTube API, enabling video management, Shorts creation, and advanced analytics.

YouTube runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

The README for YouTube lists tools such as videoId, parts, query and maxResults, which your AI app can call once the server is connected.

At a glance

Publisher
ZubeidHendricks (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
TypeScript
License
MIT
GitHub stars
615

Tools YouTube gives your AI app

  • videoId(string): The YouTube video ID.
  • parts(string[], optional): Specific video resource parts to retrieve.
  • 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, subscribersasc, subscribersdesc, indiepriority, and recentactivity.
  • language(string, optional): Transcript language code. Falls back to YOUTUBETRANSCRIPTLANG or en.
  • latestVideoPublishedAt
  • normalizedMetadata
  • channelIds(string[]): A list of YouTube channel IDs.
  • includeLatestUpload(boolean, optional): Whether to include latestVideoPublishedAt. Defaults to true.
  • 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.
  • videoPublishedAfter/ videoPublishedBefore (string, optional): Recency filters for the matched videos.
  • sampleVideosPerChannel(number, optional): How many matched videos to include per returned channel.
  • playlistId(string): The YouTube playlist ID.

Tool names as the YouTube README lists them. Your AI app shows the live list once YouTube is connected.

How to set up YouTube

  1. Install Node.js on the machine that runs your AI app, because YouTube starts with npx and downloads its package on first run.
  2. Check the YouTube README for keys or settings; the registry lists none that YouTube requires.
  3. Add YouTube to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the YouTube tools to confirm the connection.
  5. Run one read-only task with YouTube first, such as a call to videoId, before you allow anything that writes or sends.

YouTube compared with similar servers

  • YouTube Transcript by kimtaeyoon83 has fewer GitHub stars than YouTube (610 against 615); both are community servers, and both run locally. The YouTube Transcript README lists 2 tools to YouTube's 24.
  • XActions by nirholas has more GitHub stars than YouTube (676 against 615); both are community servers, and both run locally.
  • YouTube (anaisbetts) by anaisbetts has fewer GitHub stars than YouTube (555 against 615); both are community servers, and both run locally.

Before you connect YouTube

  • Give YouTube its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each YouTube tool call until you trust what it does with them.
  • Treat text that YouTube fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for YouTube on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for YouTube

How marketing and sales teams put YouTube to work, by company size. Pick the size closest to yours and start YouTube on one use case.

Small business

  • A solo marketer can use YouTube to draft a week of posts from one idea and check what performed last month before planning the next.
  • Local businesses can ask YouTube which posts drove comments and follows, then do more of what worked instead of posting on guesswork.
  • YouTube runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Social teams can connect YouTube to pull engagement across accounts into one weekly summary their leads actually read.
  • Demand gen teams can use YouTube to spot posts that earned replies from target accounts and hand those names to sales.
  • Start with videoId and parts, the tools YouTube lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise brands can route YouTube drafts through legal and brand review, with publishing kept to approved people and every post logged.
  • Large social teams can use YouTube for listening across regions, surfacing complaints and trends to the right owner without a manual sweep.
  • YouTube is a community server, so have security review the code and pin a version before YouTube touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

YouTube README

From ZubeidHendricks/youtube-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

YouTube MCP Server

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.

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:

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.

Questions about YouTube

What is the YouTube MCP server?

MCP Server for YouTube API, enabling video management, Shorts creation, and advanced analytics. YouTube is maintained by ZubeidHendricks on GitHub at ZubeidHendricks/youtube-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the YouTube MCP server?

Add YouTube to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio youtube -- npx -y @smithery/cli. To run YouTube this way you need Node.js installed.

Does YouTube need an API key?

The registry lists no required keys for YouTube. Check the YouTube README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is YouTube an official MCP server?

No. YouTube is a community server maintained by ZubeidHendricks. Community servers can be excellent; read the code and the open issues before you give YouTube access to company data.

What license is YouTube under?

YouTube is released under the MIT license, according to its GitHub repository. The license covers the code of YouTube; the service it connects to has its own terms.