YouTube MCP Server
Provides tools to analyze YouTube channel performance, retrieve video details, comments, and search channel videos via the YouTube Data API v3.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
YouTube MCP Server 🎬
A local MCP (Model Context Protocol) server that connects Claude to your YouTube channel. Analyze videos, track performance, read comments, and get AI-powered niche suggestions — all inside Claude.
Features
Tool | What it does |
| Subscribers, total views, video count, keywords |
| Recent videos with views, likes, comments, duration |
| Deep stats + engagement rate for one video |
| Audience sentiment from top comments |
| Find videos on your channel by keyword |
| Avg views, top/bottom performers, tag analysis |
Related MCP server: YouTube Ultimate Toolkit MCP
Setup
1. Get a YouTube Data API Key
Go to Google Cloud Console
Create a new project (or use an existing one)
Go to APIs & Services → Library → search YouTube Data API v3 → Enable it
Go to APIs & Services → Credentials → Create Credentials → API Key
Copy the key
2. Find Your Channel ID
Go to your YouTube channel
The URL will be:
https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxxThe part after
/channel/is your Channel IDOr: Go to https://www.youtube.com/account_advanced to find it directly
3. Configure the Server
# In the youtube-mcp folder:
cp .env.example .envEdit .env and fill in:
YOUTUBE_API_KEY=AIzaSy...your key here...
YOUTUBE_CHANNEL_ID=UCxxxxxxxxxxxxxxxx4. Build the Server
npm install
npm run buildConnect to Claude.ai
Open Claude.ai → click your profile icon → Settings
Go to Integrations (or MCP Servers)
Click Add MCP Server
Fill in:
Name:
YouTube ChannelType:
stdioCommand:
nodeArgs:
/full/path/to/youtube-mcp/dist/index.jsEnv: Add
YOUTUBE_API_KEYandYOUTUBE_CHANNEL_IDfrom your.env
Alternative: claude_desktop_config.json
If you're using the Claude Desktop app, add this to your config file:
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"youtube": {
"command": "node",
"args": ["/full/path/to/youtube-mcp/dist/index.js"],
"env": {
"YOUTUBE_API_KEY": "your_api_key_here",
"YOUTUBE_CHANNEL_ID": "your_channel_id_here"
}
}
}
}Restart Claude after saving.
Usage Examples
Once connected, just ask Claude naturally:
"Show me my channel stats"
"List my last 20 videos sorted by views"
"Analyze my channel performance and suggest what niches are working"
"Get the top comments from video ID dQw4w9WgXcQ"
"Search my channel for videos about cooking"
Free Tier Limits
The YouTube Data API v3 gives you 10,000 units/day for free.
Approximate costs:
list_videos(20 videos) ≈ 102 unitsget_video_details≈ 3 unitsanalyze_channel_performance≈ 102 unitsget_top_comments≈ 3 units
You can easily do dozens of analyses per day within the free quota.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted YouTube MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
An MCP server that gives any LLM or agent clean YouTube transcripts on demand: a single video, a whole channel, or a playlist, plus AI cleanup of auto-generated captions. API-key auth, credit-based, same backend as the public v1 API. Get a free API key with 25 free credits at youtubetranscriptdownload.com/account.
An MCP server that gives your AI access to the source code and docs of all public github repos
Make, render and auto-post AI faceless videos to YouTube, TikTok and Instagram from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that allows Claude and other AI assistants to interact with the YouTube API, providing tools to search videos/channels and retrieve detailed information about them.13 npm1MIT
- AlicenseAqualityCmaintenanceA comprehensive MCP server that provides Claude AI with full access to YouTube content, including searchable transcripts, metadata, comments, and playlists. It uniquely supports capturing video screenshots and extracting audio clips for analysis across both local and remote platforms.522 npm3MIT
- AlicenseAqualityDmaintenanceA local stdio MCP server that gives Claude (or any MCP client) full programmatic control over a single YouTube channel, including video upload, channel management, comments, analytics, and more.4613 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that gives Claude access to YouTube video transcripts. Extract full transcripts, search for keywords with timestamps, and get direct YouTube links to matching moments.21MIT