Add to Claude Code
148 addsAdd this MCP server to Claude Code.
Name: YouTube MCP
Merge into: ~/.claude/mcp.json under mcpServers
---
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "youtube-mcp"],
"env": {
"YOUTUBE_API_KEY": "<YOUR_API_KEY>"
}
}
}
}
// ── Setup ────────────────────────────────────────────────────────────────────
// 1. Go to Google Cloud Console > APIs & Services
// 2. Enable the YouTube Data API v3
// 3. Create an API key (or OAuth credentials for write access)
// 4. For transcript access, the server uses a built-in transcript fetcher
//
// ── Available tools ──────────────────────────────────────────────────────────
// search_videos search YouTube videos by query
// get_video get video details (title, description, stats)
// get_transcript get the video's transcript/captions
// get_channel get channel info and stats
// get_playlist list videos in a playlist
// get_comments get top comments on a video
// get_trending get trending videos by category/region
//
// ── Tips ─────────────────────────────────────────────────────────────────────
// - Video IDs are in the URL: youtube.com/watch?v=VIDEO_ID
// - Transcripts are auto-generated if no manual captions exist
// - Use get_transcript + summarization for video research
// - API quota: 10,000 units/day (search = 100 units, most reads = 1 unit)
Paste into Claude Code to connect this MCP server.
How to add
Full guide →Click Add, then paste into Claude Code. Claude will connect the MCP server in your settings.
Target: .claude/mcp.json → mcpServers