Back to blog

YouTube MCP Server: Connect YouTube to Claude AI

December 21, 2025
5 min read
By InsightfulPipe
YouTube MCP Server: Connect YouTube to Claude AI

YouTube MCP Server: Connect YouTube to Claude AI

Your YouTube channel generates data with every view. Watch time. Audience retention. Subscriber conversion. Engagement patterns. Traffic sources.

YouTube Studio shows you all of it. Eventually. After clicking through tabs, adjusting date ranges, and figuring out which report has the metric you need.

The YouTube MCP server connects your channel data directly to Claude AI. Ask questions in plain English. Get answers from your actual analytics.

"Which videos have the highest audience retention past 30 seconds?" Just ask.

What Is the YouTube MCP Server

The YouTube MCP server uses Model Context Protocol to give Claude direct access to your YouTube channel analytics.

MCP is Anthropic's open standard for connecting AI to external data sources. Instead of navigating YouTube Studio's interface, you ask Claude questions. Claude queries your channel data and provides analysis.

For creators and video marketers, this means faster insights without the dashboard diving.

What Data You Can Access

The YouTube MCP server pulls data from YouTube's Analytics and Data APIs.

Channel Metrics:

  • Total views, watch time, and subscribers

  • Subscriber gains and losses

  • Revenue (for monetized channels)

  • Channel growth trends

Video Performance:

  • Views and watch time by video

  • Average view duration

  • Audience retention curves

  • Click-through rate from impressions

Engagement Data:

  • Likes, dislikes, comments, shares

  • End screen clicks

  • Card clicks

  • Playlist additions

Traffic Sources:

  • YouTube search

  • Suggested videos

  • Browse features

  • External sources

  • Direct and unknown

Audience Insights:

  • Demographics: age, gender

  • Geography

  • Subscriber vs. non-subscriber viewing

  • Returning vs. new viewers

Use Cases

Identify Your Best-Performing Content

Not all videos are equal. Some drive subscribers. Some drive watch time. Understanding the difference helps guide your content strategy.

Ask Claude: "Which videos from the last year have the highest subscriber conversion rate? What percentage of viewers subscribe after watching?"

Find the content that actually grows your channel.

Diagnose Watch Time Problems

YouTube's algorithm rewards watch time. If viewers click but don't watch, your reach suffers.

"Which videos have high CTR but low average view duration? The thumbnail promises something the video doesn't deliver."

Let Claude identify where you're losing viewers.

Optimize for Traffic Sources

Different videos perform better in different contexts. Some crush in search. Others get recommended.

"Compare my top 10 videos by traffic source. Which ones get the most suggested video traffic? Which rank best in search?"

Understand where your views actually come from.

Track Channel Growth

Growing a channel requires understanding momentum. What's working? What's changing?

"How has my subscriber growth changed over the last 6 months? Are there specific videos that drove growth spikes?"

Connect content decisions to channel outcomes.

How to Set Up

Setting up the YouTube MCP server takes about 15 minutes.

Step 1: Enable YouTube APIs

Go to Google Cloud Console. Enable both the YouTube Data API and YouTube Analytics API.

Step 2: Create OAuth Credentials

Create OAuth 2.0 credentials for a desktop application. Download the client secrets JSON file.

Step 3: Authenticate

Run the initial authentication flow. You'll authorize access to your YouTube channel. This generates refresh tokens for ongoing access.

Step 4: Configure the MCP Server

Install the YouTube MCP server package. Configure it with your OAuth credentials.

Step 5: Connect to Claude

Add the server to your Claude configuration file. Test with a query about your recent video performance.

Example Queries

Once connected, you can ask Claude:

  • "What's my total watch time this month compared to last month?"

  • "Which videos have the highest audience retention at the 30-second mark?"

  • "Show me subscriber growth over the last 90 days. Which weeks had the biggest gains?"

  • "What percentage of my views come from suggested videos vs. YouTube search?"

  • "Which videos have the most comments relative to views? Those drive engagement."

  • "Are my Shorts performing better or worse than long-form content for subscriber growth?"

Specific questions with clear metrics yield the most useful answers.

Common Questions

Does this include YouTube Shorts data?

Yes. Shorts data is included in YouTube Analytics and accessible through the MCP server. You can compare Shorts performance to standard videos.

Can I see individual comment content?

The MCP server provides aggregate engagement metrics. Individual comments require YouTube Studio or the YouTube Data API for content retrieval.

Does this work for multiple channels?

You can configure the MCP server for any channel you have owner or manager access to. Multiple channel setups may require separate configurations.

How far back does the data go?

YouTube Analytics stores historical data going back to when your channel was created. The MCP server can query anything available in your YouTube Analytics.

Can I see real-time views?

YouTube Analytics has reporting delays. Real-time data is limited to what YouTube's APIs provide, which typically has a 24-48 hour lag for complete metrics.

Start Analyzing Your YouTube Data

YouTube success requires understanding your data. What content keeps viewers watching. What drives subscriptions. What traffic sources deliver results.

YouTube Studio has the answers, buried in menus and tabs. The YouTube MCP server brings those answers to Claude. Ask questions, get insights, grow your channel.

Ready to connect YouTube to Claude? Get the YouTube MCP server and start querying your video performance data today.

About this article

Published:

December 21, 2025

Author:

InsightfulPipe

Reading time:

5 min read

Related articles