Token Optimized Youtube Data And Transcript MCP Server

High-efficiency YouTube MCP server: Get token-optimized, structured data for your LLMs using the YouTube Data API v3.

Local serverstdioTypeScript

What is the Token Optimized Youtube Data And Transcript MCP Server?

High-efficiency YouTube MCP server: Get token-optimized, structured data for your LLMs using the YouTube Data API v3.

What you get

Unlike standard API wrappers that flood your LLM with redundant data, this server strips away YouTube's heavy payload bloat. It is designed to save you massive amounts of context window tokens, protect your daily API quotas via caching, and run reliably without breaking your workflows.

Configuration and credentials

  • Node.js (version specified in package.json engines field - currently >=20.0.0) - npm (usually comes with Node.js) - A YouTube Data API v3 Key (see YouTube API Setup)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
getVideoDetailsRetrieves detailed, **lean** information for multiple YouTube videos including metadata, statistics, engagement ratios, and content details.
searchVideosSearches for videos or channels based on a query string with various filtering options, returning **concise** results.
getTranscriptsRetrieves **token-efficient** transcripts (captions) for multiple videos, with options for full text or key segments (intro/outro).
getChannelStatisticsRetrieves **lean** statistics for multiple channels (subscriber count, view count, video count, creation date).
getChannelTopVideosRetrieves a list of a channel's top-performing videos with **lean** details and engagement ratios.
getTrendingVideosRetrieves a list of trending videos for a given region and optional category, with **lean** details and engagement ratios.
getVideoCategoriesRetrieves available YouTube video categories (ID and title) for a specific region, providing **essential data only**.
getVideoCommentsRetrieves comments for a YouTube video. Allows sorting, limiting results, and fetching a small number of replies per comment.
findConsistentOutlierChannelsIdentifies channels that consistently perform as outliers within a specific niche. **Requires a MongoDB connection.**

How to install the Token Optimized Youtube Data And Transcript MCP Server

{
  "mcpServers": {
    "youtube": {
      "command": "npx",
      "args": ["-y", "@kirbah/mcp-youtube"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js (version specified in package.json engines field - currently >=20.0.0) - npm (usually comes with Node.js) - A YouTube Data API v3 Key (see YouTube API Setup)
VariableDescriptionRequired
YOUTUBE_API_KEYCredential the server authenticates with.Yes
MDB_MCP_CONNECTION_STRINGConfiguration value read at startup.Optional

Example prompts to try

  • “Use Token Optimized Youtube Data And Transcript to getVideoDetails.”
  • “Use Token Optimized Youtube Data And Transcript to searchVideos.”
  • “Use Token Optimized Youtube Data And Transcript to getTranscripts.”

Frequently asked questions

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.