YouTube Data

YouTube Data

icraft2170

Connects to YouTube's API to fetch video details, transcripts, channel stats, and trending content. Analyze YouTube data and engagement metrics without switching tools.

Integrates with YouTube Data API to retrieve and analyze video content, transcripts, channel statistics, and engagement metrics across different regions and categories without leaving the conversation interface.

58330 views31Local (stdio)

What it does

  • Search YouTube videos by keywords
  • Retrieve video transcripts in multiple languages
  • Get channel statistics and subscriber counts
  • Fetch trending videos by region and category
  • Calculate video engagement ratios
  • Access detailed video metadata and descriptions

Best for

Content creators analyzing performance metricsResearchers studying video trends and engagementMarketing teams tracking competitor contentDevelopers building YouTube-integrated applications
Multi-language transcript supportRegional trending analysisTime-stamped captions

About YouTube Data

YouTube Data is a community-built MCP server published by icraft2170 that provides AI assistants with tools and capabilities via the Model Context Protocol. Retrieve and transcribe YouTube transcripts, channel stats, and video engagement seamlessly using YouTube Data API integ It is categorized under other, analytics data.

How to install

You can install YouTube Data in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

YouTube Data is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

MseeP.ai Security Assessment Badge

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.

Alternatives

Related Skills

Browse all skills
content-trend-researcher

Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven article outlines based on user intent analysis

13
markitdown

Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing. Use when converting documents to markdown, extracting text from PDFs/Office files, transcribing audio, performing OCR on images, extracting YouTube transcripts, or processing batches of files. Supports 20+ formats including DOCX, XLSX, PPTX, PDF, HTML, EPUB, CSV, JSON, images with OCR, and audio with transcription.

41
video-downloader

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

34
data-storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

13
youtube-automation

Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.

12
stock-analyzer

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

6