YouTube MCP Server
Provides comprehensive access to YouTube Data API v3, Analytics API, and Reporting API, enabling AI agents to manage videos, playlists, comments, channel analytics, transcripts, and bulk reporting.
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 MCP Serverget my channel's analytics for the last month"
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 MCP Server
A comprehensive Model Context Protocol server for the YouTube Data API v3, Analytics API, and Reporting API. Gives AI assistants full access to your YouTube channel — analytics, video management, comments, and more.
40 tools covering:
Channel & video data
YouTube Analytics (performance, audience, retention, revenue)
Video publishing & playlist management
Transcript extraction
YouTube SEO (search suggestions, trending)
Comments
Bulk reporting
Why This Server?
Existing YouTube MCP servers focus narrowly on transcript scraping or basic search. This server covers three YouTube APIs and is the only open-source MCP server that provides:
YouTube Analytics API — channel performance, top videos/Shorts, audience retention curves, traffic sources, demographics, revenue, day-of-week analysis
YouTube Reporting API — schedule and download bulk CSV reports
Full Data API coverage — not just read, but also upload videos, manage playlists, post comments, set thumbnails
YouTube SEO tools — autocomplete suggestions, trending videos, category discovery
Dual transcript strategy — official captions API for your own videos,
youtube-transcript-apifallback for any public videoQuota tracking — client-side tracking with hard-fail protection so you don't silently exhaust your daily quota
Feature | This server | Others |
Analytics API (watch time, retention, CTR) | Yes | No |
Reporting API (bulk CSV exports) | Yes | No |
Video upload & management | Yes | Rare |
Playlist management | Yes | Rare |
Comments (read + write) | Yes | No |
SEO / trending / suggestions | Yes | No |
Transcript extraction | Yes | Yes |
Quota tracking | Yes | No |
Total tools | 40 | 1-5 |
Prerequisites
Python 3.11+
A Google Cloud project with YouTube APIs enabled
OAuth 2.0 credentials
Google Cloud Setup
1. Create a Google Cloud Project
Go to Google Cloud Console
Create a new project (or use an existing one)
2. Enable APIs
Enable all three APIs in APIs & Services > Library:
YouTube Data API v3
YouTube Analytics API
YouTube Reporting API
3. Configure OAuth Consent Screen
Go to APIs & Services > OAuth consent screen
Set User Type to External
Fill in the app name and required fields
Add the Google account that owns your YouTube channel as a test user
Important: You must sign in with the Google account that owns the YouTube channel, not a manager. Only the owner account can access Analytics data.
4. Create OAuth Credentials
Go to APIs & Services > Credentials
Click Create Credentials > OAuth client ID
Application type: Desktop app
Download the JSON file
Save it as
~/.youtube-mcp/client_secret.json
Alternatively, set the YOUTUBE_MCP_CLIENT_SECRET environment variable to the path of your credentials file.
Installation
pip install youtube-studio-mcpOr with uv:
uv pip install youtube-studio-mcpMCP Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"youtube": {
"command": "youtube-studio-mcp"
}
}
}Claude Code
Add to your MCP settings:
{
"mcpServers": {
"youtube": {
"command": "youtube-studio-mcp"
}
}
}With environment variables
{
"mcpServers": {
"youtube": {
"command": "youtube-studio-mcp",
"env": {
"YOUTUBE_MCP_CLIENT_SECRET": "/path/to/client_secret.json",
"YOUTUBE_API_KEY": "your-api-key-for-public-data"
}
}
}
}First Run
On first use, the server will open a browser window for Google OAuth consent. Sign in with the account that owns your YouTube channel and grant the requested permissions. The token is saved to ~/.youtube-mcp/token.json and auto-refreshes.
Tools Reference
Auth & Setup (2 tools)
Tool | Description |
| Initiate OAuth 2.0 flow |
| Check auth state and quota usage |
Channel & Video (3 tools)
Tool | Description |
| Get channel details by ID, handle, or |
| List videos from a channel or playlist |
| Get detailed video metadata and stats |
Search & SEO (4 tools)
Tool | Description |
| Search YouTube (100 quota units per call) |
| Get autocomplete suggestions (no quota cost) |
| Get trending videos by region/category |
| List video categories for a region |
Transcripts (2 tools)
Tool | Description |
| Get video transcript (official API or scraping fallback) |
| List caption tracks for own videos |
Analytics — Performance (4 tools)
Tool | Description |
| Channel summary (views, watch time, subs, likes) |
| Top videos by views (excludes Shorts) |
| Top Shorts by views |
| Daily metrics for a specific video |
Analytics — Audience (3 tools)
Tool | Description |
| Traffic source breakdown |
| Age and gender breakdown |
| Views by country |
Analytics — Schedule & Reach (3 tools)
Tool | Description |
| Daily performance over time |
| Average performance by weekday |
| Shorts vs long-form vs live comparison |
Analytics — Revenue & Retention (3 tools)
Tool | Description |
| Revenue breakdown (requires YouTube Partner Program) |
| Per-video revenue |
| Audience retention curve for a video |
Publishing (4 tools)
Tool | Description |
| Upload a video (1,600 quota units) |
| Update video metadata |
| Upload custom thumbnail |
| Delete a video |
Playlists (4 tools)
Tool | Description |
| List playlists for a channel |
| Create a new playlist |
| Add a video to a playlist |
| Remove a video from a playlist |
Comments (3 tools)
Tool | Description |
| List comments on a video |
| Post a top-level comment |
| Reply to a comment |
Bulk Reporting (5 tools)
Tool | Description |
| List available report types |
| Schedule a daily report job |
| List active reporting jobs |
| List generated reports for a job |
| Download a report CSV |
Quota Management
The YouTube Data API v3 has a default daily quota of 10,000 units. This server tracks quota usage client-side and hard-fails when the quota is exhausted.
Key costs:
Most read operations: 1 unit
Search: 100 units
Write operations: 50 units
Video upload: 1,600 units
Use youtube_auth_status to check current quota usage.
Environment Variables
Variable | Description |
| Path to |
| Config directory (default: |
| API key for public-only operations |
Development
git clone https://github.com/pauling-ai/youtube-studio-mcp.git
cd youtube-studio-mcp
uv venv && uv pip install -e ".[dev]"
.venv/bin/python -m pytest tests/ -vLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/pauling-ai/youtube-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server