YouTube MCP Server
A local MCP server that connects Claude to your YouTube channel, enabling video analysis, performance tracking, comment reading, and niche suggestions.
README
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 |
|---|---|
get_channel_info |
Subscribers, total views, video count, keywords |
list_videos |
Recent videos with views, likes, comments, duration |
get_video_details |
Deep stats + engagement rate for one video |
get_top_comments |
Audience sentiment from top comments |
search_channel_videos |
Find videos on your channel by keyword |
analyze_channel_performance |
Avg views, top/bottom performers, tag analysis |
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/UCxxxxxxxxxxxxxxxx - The part after
/channel/is your Channel ID - Or: Go to https://www.youtube.com/account_advanced to find it directly
3. Configure the Server
# In the youtube-mcp folder:
cp .env.example .env
Edit .env and fill in:
YOUTUBE_API_KEY=AIzaSy...your key here...
YOUTUBE_CHANNEL_ID=UCxxxxxxxxxxxxxxxx
4. Build the Server
npm install
npm run build
Connect 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 Channel - Type:
stdio - Command:
node - Args:
/full/path/to/youtube-mcp/dist/index.js - Env: Add
YOUTUBE_API_KEYandYOUTUBE_CHANNEL_IDfrom your.env
- Name:
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.