Feedback

YouTube Data API MCP Server

@kirbah Claim

Basic information

Transport
stdio
Runtime
TypeScript
Version
1.0.0
Category
Author
kirbah
Views
943

About YouTube Data API MCP Server

Unlock deep YouTube analytics: search videos, track channel stats, explore trends, and analyze high-performing YouTubers with powerful insights.

YouTube Data API is a MCP server in the Other category listed in the AddMCP.net directory, published by kirbah. It exposes 1 tool, including getTranscripts. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 22 GitHub stars. Source code is hosted on github.com. Related topics: analytics-data, community, other, youtube-ytcomment-subtitles.

Connection details

https://server.smithery.ai/@kirbah/mcp-youtube/mcp

Setup

claude mcp add mcp-youtube-kirbah --transport http https://server.smithery.ai/@kirbah/mcp-youtube/mcp

YouTube Data API MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "youtube": {
            "command": "npx",
            "args": [
                "-y",
                "@kirbah/mcp-youtube"
            ],
            "env": {
                "YOUTUBE_API_KEY": "YOUR_YOUTUBE_API_KEY_HERE",
                "MDB_MCP_CONNECTION_STRING": "mongodb+srv://user:[email protected]/youtube_niche_analysis"
            }
        }
    }
}

YouTube Data API MCP Server tools

  • getTranscripts — Retrieves specific, meaningful segments of a video's transcript. By default, it returns the intro 'hook' and the final 'outro' or call to action. It can also return the full transcript text. Use this to efficiently analyze a video's key messaging.
    videoIds:array*, lang:string, format:string

Overview

What is YouTube Data API?

Token Optimized Youtube Data and Transcript is a production-grade MCP server designed for AI agents to interact with YouTube data efficiently. It strips redundant payload from YouTube API responses to save context window tokens and includes optional MongoDB caching to protect API quotas. It supports zero-config mode for transcript fetching without an API key, and full video search, channel analytics, trending, and comment retrieval with a YouTube Data API v3 key.

How to use YouTube Data API?

Install via npx with npx -y @kirbah/mcp-youtube in your MCP client configuration. For full features, set the YOUTUBE_API_KEY environment variable and optionally MDB_MCP_CONNECTION_STRING for caching. The server provides tools like getVideoDetails, searchVideos, getTranscripts, getChannelStatistics, getTrendingVideos, and getVideoComments. Use zero-config mode by just adding the base npx command; transcripts work immediately without any API key.

Key features of YouTube Data API

  • Token‑efficient data structure saving up to 87% of LLM context tokens.
  • Optional MongoDB caching layer to avoid duplicate API quota consumption.
  • Multi‑language transcript retrieval with full text or key segments.
  • 97% test coverage, zero lint errors, and active Dependabot security patching.
  • Tools for video details, search, channel stats, trending, categories, and comments.
  • Zero‑config mode for transcripts; no API key required.

Use cases of YouTube Data API

  • Content summarization and analysis from video transcripts.
  • Market research and trend tracking by region and category.
  • Sentiment analysis and feedback extraction from video comments.
  • Niche outlier detection using channel performance metrics (requires MongoDB).
  • Building cost‑effective AI workflows with strict YouTube API quota limits.

Frequently asked questions

1 Do I need a YouTube API key to use this server?

No, you can use zero‑config mode to fetch transcripts without any API key. For video search, channel stats, trending, and comments you need a YouTube Data API v3 key set as the YOUTUBE_API_KEY environment variable.

2 How does the caching layer protect my API quota?

An optional MongoDB connection string (MDB_MCP_CONNECTION_STRING) enables a cache. If your agent requests the same data twice, the server returns the cached result, costing zero API quota units.

3 What are the runtime dependencies?

Node.js version 20.0.0 or higher and npm. For local development, clone the repository and run npm ci.

4 What is the API quota cost for each tool?

Most tools cost 1 unit per call (e.g., getVideoDetails, getChannelStatistics). getTranscripts costs 0 units. Search tools like searchVideos cost 100 units, and getVideoComments has a variable cost: 1 unit base plus 1 unit per top‑level comment if replies are requested.

5 How does authentication work?

Authentication is handled via the YOUTUBE_API_KEY environment variable.

Videos

Tutorials, guides, and showcases related to YouTube Data API MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬