YouTube MCP Server

YouTube MCP Server

By MCP-Mirror GitHub

Mirror of

youtube mcp-server
Overview

what is YouTube MCP Server?

YouTube MCP Server is a Model Context Protocol (MCP) server implementation that utilizes the YouTube Data API, allowing AI language models to interact with YouTube content through a standardized interface.

how to use YouTube MCP Server?

To use the YouTube MCP Server, you can install it via npm or Smithery, configure your environment with the required YouTube API key, and then utilize various MCP tools to interact with YouTube data.

key features of YouTube MCP Server?

  • Retrieve detailed video information including title, description, and statistics.
  • Manage video transcripts with multi-language support.
  • Analyze channel statistics and growth metrics.
  • Access trending videos by region and category.

use cases of YouTube MCP Server?

  1. Analyzing video engagement metrics for content creators.
  2. Retrieving and displaying video transcripts for accessibility.
  3. Monitoring trending content in specific categories for market research.

FAQ from YouTube MCP Server?

  • What is required to run the YouTube MCP Server?

You need Node.js 18.0.0 or higher and a valid YouTube Data API key.

  • Can I customize the language for video transcripts?

Yes, you can specify language preferences for transcripts in the configuration.

  • Is there a license for this project?

Yes, the project is licensed under the MIT License.

Content

YouTube MCP Server

smithery badge

A Model Context Protocol (MCP) server implementation utilizing the YouTube Data API. It allows AI language models to interact with YouTube content through a standardized interface.

Key Features

Video Information

  • Retrieve detailed video information (title, description, duration, statistics)
  • Search for videos by keywords
  • Get related videos based on a specific video
  • Calculate and analyze video engagement ratios

Transcript/Caption Management

  • Retrieve video captions with multi-language support
  • Specify language preferences for transcripts
  • Access time-stamped captions for precise content reference

Channel Analysis

  • View detailed channel statistics (subscribers, views, video count)
  • Get top-performing videos from a channel
  • Analyze channel growth and engagement metrics

Trend Analysis

  • View trending videos by region and category
  • Compare performance metrics across multiple videos
  • Discover popular content in specific categories

Available Tools

The server provides the following MCP tools:

Tool NameDescriptionRequired Parameters
getVideoDetailsGet detailed information about multiple YouTube videos including metadata, statistics, and content detailsvideoIds (array)
searchVideosSearch for videos based on a query stringquery, maxResults (optional)
getTranscriptsRetrieve transcripts for multiple videosvideoIds (array), lang (optional)
getRelatedVideosGet videos related to a specific video based on YouTube's recommendation algorithmvideoId, maxResults (optional)
getChannelStatisticsRetrieve detailed metrics for multiple channels including subscriber count, view count, and video countchannelIds (array)
getChannelTopVideosGet the most viewed videos from a specific channelchannelId, maxResults (optional)
getVideoEngagementRatioCalculate engagement metrics for multiple videos (views, likes, comments, and engagement ratio)videoIds (array)
getTrendingVideosGet currently popular videos by region and categoryregionCode (optional), categoryId (optional), maxResults (optional)
compareVideosCompare statistics across multiple videosvideoIds (array)

Installation

Automatic Installation via Smithery

Automatically install YouTube MCP Server for Claude Desktop via Smithery:

npx -y @smithery/cli install @icraft2170/youtube-data-mcp-server --client claude

Manual Installation

# Install from npm
npm install youtube-data-mcp-server

# Or clone repository
git clone https://github.com/icraft2170/youtube-data-mcp-server.git
cd youtube-data-mcp-server
npm install

Environment Configuration

Set the following environment variables:

  • YOUTUBE_API_KEY: YouTube Data API key (required)
  • YOUTUBE_TRANSCRIPT_LANG: Default caption language (optional, default: 'ko')

MCP Client Configuration

Add the following to your Claude Desktop configuration file:

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

YouTube API Setup

  1. Access Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable YouTube Data API v3
  4. Create API credentials (API key)
  5. Use the generated API key in your environment configuration

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build
npm run build

Network Configuration

The server exposes the following ports for communication:

  • HTTP: 3000
  • gRPC: 3001

System Requirements

  • Node.js 18.0.0 or higher

Security Considerations

  • Always keep your API key secure and never commit it to version control systems
  • Manage your API key through environment variables or configuration files
  • Set usage limits for your API key to prevent unauthorized use

License

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

No tools information available.

Mirror of

image-generation mcp-server
View Details

Secure MCP server for analyzing Excel files with oletools

oletools mcp-server
View Details

Mirror of

bigquery mcp-server
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details
YouTube MCP Server
YouTube MCP Server by IA-Programming

YouTube MCP Server is an AI-powered solution designed to revolutionize your YouTube experience. It empowers users to search for YouTube videos, retrieve detailed transcripts, and perform semantic searches over video content—all without relying on the official API. By integrating with a vector database, this server streamlines content discovery.

youtube ai
View Details
Dealx
Dealx by DealExpress

-

dealx mcp-server
View Details

Google Analytics MCP server for accessing analytics data through tools and resources

google-analytics mcp-server
View Details