YouTube MCP Server
Provides read and write access to YouTube Data API v3 and YouTube Analytics API, enabling AI agents to fetch video metadata, search uploads, update titles/descriptions/tags, retrieve channel analytics, audience demographics, and traffic sources.
Supports YouTube Shorts-specific analytics (mentioned as a planned feature), allowing AI agents to analyze performance metrics specific to short-form video content on YouTube.
Integrates with YouTube Studio functionality through YouTube APIs, enabling AI agents to perform channel management tasks typically done in YouTube Studio, including video SEO updates and analytics review.
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 Servershow my top 5 videos by views this 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
Connect Claude to your YouTube channel. Read analytics, fetch full video metadata (including unlisted/private/draft), search your uploads, and update titles/descriptions/tags — all from Claude Desktop, Claude Code, or any MCP client.
What Is This?
A Model Context Protocol (MCP) server that connects Claude to the YouTube Data API v3 and YouTube Analytics API via OAuth2.
Instead of copying data from YouTube Studio into AI tools, just ask Claude:
"Pull the full title, description and tags for this video"
"What are my top performing videos this month?"
"Update the title and tags on my latest upload"
"Where is my traffic coming from?"
Claude reads your real private channel data and can update video SEO directly.
Claude → YouTube MCP Server → YouTube APIs → Your Channel Data
(you) (this repo) (OAuth2) (stays local)Everything runs on YOUR machine. Read + Write access. Nothing sent to third parties.
There are 10 Tools Available
Video Metadata (Read + Write)
Tool | What It Does |
| Full metadata for any video by ID or URL — title, full description, all tags, category, privacy status (public/unlisted/private/draft), stats, duration, thumbnail URL |
| Search your own channel's videos by keyword. Returns metadata + stats for matching videos |
| Update title, description, and/or tags on any video directly. Only changes fields you provide |
Channel Analytics
Tool | What It Does |
| Subscribers, total views, video count, channel description, creation date |
| List all videos with stats (views, likes, comments, tags, privacy status). Sort by date or views |
| Day-by-day views, watch time, subscribers gained/lost for any date range |
| Top performing videos ranked by views with retention %, watch time, subs gained |
| Audience breakdown: top countries, device types, age groups, gender |
| Where viewers come from: YouTube Search, Suggested, Browse, External, Direct |
| Pulls channel + top video data for AI-powered topic analysis |
Install
Option A: npx (Zero Install — just run it)
npx youtube-studio-mcpOption B: Global Install
npm install -g youtube-studio-mcp— Connecting to Claude Code
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"youtube-analytics": {
"command": "node",
"args": ["/full/path/to/youtube-studio-mcp/server.js"]
}
}
}Or if installed via npm:
{
"mcpServers": {
"youtube-analytics": {
"command": "npx",
"args": ["-y", "youtube-studio-mcp"]
}
}
}Claude Code (Terminal)
claude mcp add youtube-analytics node /full/path/to/youtube-studio-mcp/server.jsVS Code
Add to .vscode/settings.json:
{
"mcp.servers": {
"youtube-analytics": {
"command": "npx",
"args": ["-y", "youtube-studio-mcp"]
}
}
}Ready-to-Use Prompts
SEO Audit (any video)
Get the full details for this video: [paste URL or ID]
Check what keywords it's ranking for and suggest optimized title + tagsChannel Performance Report
Pull my channel overview, top 20 videos by watch time, 90-day analytics,
traffic sources and audience demographics. Give me a full performance report.Video Topic Research
Get my top 20 videos by watch time. What patterns do you see —
topics, lengths, title styles? Suggest 10 new video ideas.Update Video SEO
Search my videos for "elementor menu". Pull the full details.
Write an optimized title, description, and tags — then update it.Audience Deep Dive
Show my full audience demographics — age, gender, countries, devices.
What content style and posting schedule fits my actual audience?Underperformer Diagnosis
Get all my videos. Compare bottom 10 vs top 10 by views.
Why did the lower ones underperform? What would you change?How the Skills + MCP Work Together
You: "Optimize this video: youtube.com/watch?v=abc123"
Claude:
1. youtube-seo-optimizer skill activates
2. Calls get_video_details → pulls current title, description, tags
3. Checks YouTube SERP for current rankings
4. Lists PROTECTED keywords (won't remove)
5. Writes 3 new title options + full description + 20 tags
6. Can call update_video_seo to apply changes directlyThe skills tell Claude what to do. The MCP tools give Claude access to your data. Together they create a complete YouTube AI workflow.
Install Skills
Claude Desktop / Claude Code:
# Copy a skill to your Claude skills directory
cp skills/youtube-seo-optimizer.md ~/.claude/skills/Or install all 8:
cp skills/youtube-*.md ~/.claude/skills/OAuth Scopes
Scope | Purpose |
| Read + write video metadata (titles, descriptions, tags) |
| Read video data, search, list |
| Read private analytics (views, watch time, subs, demographics) |
| Extended channel audit data |
To enable write access (update_video_seo), delete tokens.json and re-run node auth.js. The new auth flow requests the youtube write scope.
Files
youtube-studio-mcp/
├── server.js ← MCP server (10 tools)
├── auth.js ← Run once to link YouTube account
├── package.json ← Dependencies + npm config
├── skills/ ← 8 AI skills for YouTube creators
├── LICENSE ← MIT
├── credentials.json ← YOU add this (never commit!)
└── tokens.json ← Auto-created after auth (never commit!)Contributing
features
Transcript extraction (YouTube captions API)
YouTube Shorts-specific analytics
Revenue/monetization data (YouTube Reporting API)
Playlist management tools
Comment management tools
Thumbnail upload
License
Adiya Sharma MIT
This server cannot be installed
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/hakanoz203/youtube-channel-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server