home / mcp / youtube mcp server

YouTube MCP Server

Provides YouTube data access via MCP including video details, transcripts, channel stats, and trends.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "icraft2170-youtube-data-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "youtube-data-mcp-server"
      ],
      "env": {
        "YOUTUBE_API_KEY": "YOUR_API_KEY_HERE",
        "YOUTUBE_TRANSCRIPT_LANG": "ko"
      }
    }
  }
}

You can access and analyze YouTube data through an MCP server that exposes a standardized interface for video details, transcripts, channels, trends, and more. This enables AI language models to query YouTube content, retrieve metadata, fetch transcripts, compare videos, and perform trend analyses in an automated, scalable way.

How to use

Connect your MCP client to the YouTube MCP Server to start querying YouTube data. You can retrieve video details, search for videos, fetch transcripts in multiple languages, get related videos, analyze channel statistics, and compare performance across videos. Use the provided MCP tools to select the data you need and feed it back into your prompts for richer, data-backed responses. If you want trends, you can pull currently popular videos by region or category and use that data to inform recommendations or analyses. All interactions are performed through the MCP interface, so you don’t need to manage individual API calls directly.

What you can do with the server

- Retrieve detailed video information such as title, description, duration, and statistics.

- Search videos by keywords and filter results by a maximum number.

- Retrieve captions/transcripts in multiple languages with optional language preferences.

- Analyze channel statistics, fetch top videos from a channel, and assess growth and engagement metrics.

- View trending videos by region and category, and compare statistics across videos.

Available tools

getVideoDetails

Get detailed information about multiple YouTube videos including metadata, statistics, and content details

searchVideos

Search for videos based on a query string and return matching results

getTranscripts

Retrieve transcripts for multiple videos with optional language preference

getRelatedVideos

Fetch videos related to a specific video using YouTube's recommendation algorithm

getChannelStatistics

Retrieve detailed metrics for multiple channels including subscriber count, view count, and video count

getChannelTopVideos

Get the most viewed videos from a specific channel

getVideoEngagementRatio

Calculate engagement metrics for multiple videos, including views, likes, comments, and engagement ratio

getTrendingVideos

Get currently popular videos by region and category

compareVideos

Compare statistics across multiple videos