youtube-studio-mcp
Provides tools for analyzing YouTube channels and videos, including channel overview, video details, top-performing videos, video listings, and comment retrieval for sentiment analysis.
Provides access to YouTube Studio analytics, enabling retrieval of channel metrics such as views, watch time, subscriber changes, likes, impressions, CTR, traffic sources, and audience demographics over custom date ranges.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@youtube-studio-mcpShow me my top performing videos from the last 28 days."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
YouTube Studio & Channel Analytics MCP Server
A Production-Grade Model Context Protocol (MCP) Server for YouTube Studio & Channel Intelligence
Empower AI assistants (Claude, Cursor, Antigravity, etc.) to analyze your YouTube channel, track video metrics, deep-dive into YouTube Studio analytics, discover audience traffic sources, and analyze community sentiment — configured entirely through .env.
🚀 Features & MCP Tool Suite
YouTube Studio MCP provides 8 specialized tools:
Tool | Category | Description |
| Channel Stats | Returns channel title, handle, subscriber count, total lifetime views, video count, topic categories, and description. |
| Studio Analytics | Queries core Studio metrics ( |
| Demographics & Traffic | Detailed breakdowns by dimension: |
| Video Intelligence | Ranks your top videos by views, watch time minutes, or subscribers gained in any date range. |
| Video Deep-Dive | Deep-dive analytics on a single specific video (daily trajectory, watch time, audience retention, traffic sources). |
| Content Inventory | Lists uploaded videos with current views, likes, comments, duration, and privacy status. |
| Video Metadata | Returns full metadata, tags, description, category, and statistics for specified video IDs. |
| Community & Sentiment | Retrieves top comment threads and replies across your channel or on a specific video for sentiment analysis and feedback. |
Related MCP server: YouTube MCP Server
⚙️ Environment Configuration (.env)
All credentials and settings are read directly from .env:
# Google OAuth 2.0 Credentials (from Google Cloud Console)
YOUTUBE_CLIENT_ID=your_client_id.apps.googleusercontent.com
YOUTUBE_CLIENT_SECRET=your_client_secret
# OAuth Refresh Token (written automatically by run_auth.py)
YOUTUBE_REFRESH_TOKEN=🛠️ Step-by-Step Setup Guide
1. Clone & Install Dependencies with uv
git clone https://github.com/Dhananjayrbiraris/youtube-mcp.git
cd youtube-mcp
uv venv
uv pip install -e .2. Set Up Google Cloud Project (One-Time)
Open Google Cloud Console.
Create a new project (e.g.
YouTube-Studio-MCP).In APIs & Services > Library, enable:
YouTube Data API v3
YouTube Analytics API
In OAuth consent screen:
User Type: External -> fill app name & your email.
Under Test users, add your Google email address.
In Credentials:
Click Create Credentials > OAuth client ID.
Application Type: Desktop App.
Copy the Client ID and Client Secret.
Paste them into
.env:YOUTUBE_CLIENT_ID=123456789-xxxx.apps.googleusercontent.com YOUTUBE_CLIENT_SECRET=GOCSPX-xxxx
3. Run 1-Click Authenticator
uv run run_auth.pyThis launches your browser for a 1-click Google OAuth login. It automatically writes the YOUTUBE_REFRESH_TOKEN directly into your .env file.
4. Connect to your AI Client
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"youtube-studio": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/youtube-mcp",
"run",
"youtube-studio-mcp"
]
}
}
}💡 Example AI Prompts
"Give me an overview of my YouTube channel's performance over the last 28 days."
"Where is most of my traffic coming from (search, suggested videos, or browse features)?"
"Which of my videos generated the most subscribers this month?"
"Summarize common themes and questions from the comments on my latest video."
"Show me my audience breakdown by age group and country."
🧪 Testing
Run the test suite:
pytest📄 License
This project is licensed under the MIT License.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to search videos, read channels, browse playlists, fetch comments, and get transcripts from YouTube using the YouTube Data API v3 and InnerTube API for captions.2GPL 3.0
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with comprehensive YouTube analytics and channel management capabilities, including channel performance, video analytics, audience insights, and content strategy tools.381
- AlicenseAqualityCmaintenanceEnables AI assistants to access YouTube organic analytics, including channel stats, video performance, watch time, and audience engagement, via the YouTube Data API v3 and Analytics API v2.621MIT
- FlicenseAqualityCmaintenanceEnables AI assistants to analyze YouTube channels, videos, transcripts, and content strategy through structured tool calls.1738
Related MCP Connectors
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
Provide token-optimized, structured YouTube data to enhance your LLM applications. Access efficien…
Manage your Vidalytics videos and analytics from your AI assistant.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dhananjayrbiraris/youtube-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server