This YouTube Data MCP server serves as a powerful digital bridge that allows AI models to "see" and understand what is happening on YouTube. In its simplest form, it gives an AI the ability to read video titles, descriptions, and full transcripts. This means a language model can summarize a hour-long tutorial, find specific information buried inside a lecture, or explain a video's content to a user without anyone having to manually watch the footage or copy-paste text. Beyond simple summaries, the tool provides a comprehensive suite of analytical features for deeper content exploration. It can perform targeted keyword searches, retrieve detailed channel statistics like subscriber counts and growth metrics, and even identify trending videos based on specific regions or categories. It also features robust multi-language caption support, allowing AI agents to process and translate global content with precision while maintaining time-stamped references for exact context. For developers building LLM-integrated systems, this server implements the Model Context Protocol to offer a standardized interface powered by the YouTube Data API v3. It includes specialized tools for engagement ratio calculations and multi-video comparisons, which are essential for sentiment analysis or automated market research. By integrating these capabilities, developers can transform an AI from a static text processor into a dynamic researcher capable of extracting structured insights, tracking channel performance, and navigating the vast landscape of public video data in real time.
Category: Data & Analytics
Tags: analytics, search, transcripts, video, youtube
bash npx -y @smithery/cli install @icraft2170/youtube-data-mcp-server --client claude Manual Installation You can install via npm: bash npm install youtube-data-mcp-server Or by cloning the repository: bash git clone https://github.com/icraft2170/youtube-data-mcp-server.git cd youtube-data-mcp-server npm install ---json { "mcpServers": { "youtube": { "command": "npx", "args": ["-y", "youtube-data-mcp-server"], "env": { "YOUTUBE_API_KEY": "YOUR_API_KEY_HERE", "YOUTUBE_TRANSCRIPT_LANG": "ko" } } } } Environment Variables - YOUTUBE_API_KEY: Your YouTube Data API key (Required). - YOUTUBE_TRANSCRIPT_LANG: Default caption language (Optional, default: 'ko'). ---getVideoDetails | Get detailed information about multiple YouTube videos including metadata, statistics, and content details | videoIds (array) | | searchVideos | Search for videos based on a query string | query, maxResults (optional) | | getTranscripts | Retrieve transcripts for multiple videos | videoIds (array), lang (optional) | | getRelatedVideos | Get videos related to a specific video | videoId, maxResults (optional) | | getChannelStatistics | Retrieve metrics for multiple channels (subscribers, views, etc.) | channelIds (array) | | getChannelTopVideos | Get the most viewed videos from a specific channel | channelId, maxResults (optional) | | getVideoEngagementRatio | Calculate engagement metrics (views, likes, comments, and ratio) | videoIds (array) | | getTrendingVideos | Get currently popular videos by region and category | regionCode (optional), categoryId (optional) | | compareVideos | Compare statistics across multiple videos | videoIds (array) | ---getTranscripts. The AI can then process the text to generate concise summaries, bulleted key takeaways, or even answer specific questions about the video's content using time-stamped references. Example: A user provides a URL for a 2-hour coding tutorial. The AI uses getTranscripts, analyzes the text, and provides a timestamped table of contents and a summary of the specific libraries used in the video.getChannelTopVideos and getVideoEngagementRatio, users can identify exactly which videos have the highest "stickiness" (likescomments relative to views) rather than just looking at raw view counts. Example: A tech reviewer asks the AI to "Analyze the top 5 videos from [Competitor Channel] from the last month." The AI uses the MCP to pull the data, calculates the engagement ratios, and identifies that "Comparison" videos are outperforming "Unboxing" videos for that specific audience.
getTrendingVideos tool allows users to filter by regionCode and categoryId. This provides a real-time snapshot of popular culture and viral content in specific locales. Example: A fashion brand wants to launch in South Korea. They ask the AI to "Show me the top 10 trending videos in the 'Entertainment' category in South Korea." The AI retrieves the list, describes the common themes, and helps the brand align its local marketing message with current trends.searchVideos to find initial results and then use getRelatedVideos and compareVideos to filter for the most relevant, highly-rated, and statistically significant content. Example: A user says, "I wantβ¦Part of MCP Servers