The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Youtube Organic MCP listing page.
MCP server for YouTube organic analytics — channel stats, video performance, watch time, and audience engagement via the YouTube Data API v3 and YouTube Analytics API v2.
Built for Claude Code and any MCP-compatible AI tool. Gives your AI assistant direct, read-only access to your own channel's organic data — subscribers, views, watch time, per-video engagement, and day-by-day trends.
Part of The SEO Engine toolkit by Rex Jones — AI-powered SEO and social media tooling for agencies and businesses.
| Tool | Description |
|---|---|
list_accounts | List configured channels and the default |
get_channel_info | Channel profile + lifetime stats (subscribers, total views, video count, uploads playlist) |
get_videos | Paginated uploads with per-video views, likes, comments, duration |
get_video_details | Details for specific video IDs (batch up to 50) |
get_channel_analytics | Channel analytics over a date range: views, watch time, avg view duration/%, subs gained/lost, likes, comments, shares — optionally by day |
get_video_analytics | The same metrics for a single video over a date range |
All tools accept an optional account parameter for multi-account setups.
In Google Cloud Console (any project — you can reuse an existing one), enable YouTube Data API v3 and YouTube Analytics API.
Create an OAuth client of type Desktop app and download its client_secret JSON. Then run the helper (needs pip install google-auth-oauthlib):
Authorize with the Google account that owns the channel (pick the Brand Account if prompted). It prints the three YOUTUBE_* values to drop into your config and writes them to .youtube_account.json (gitignored).
Add to your Claude Code MCP settings:
Or set YOUTUBE_ACCOUNTS to a JSON array for multiple channels (see .env.example).
fetch (Node 18+)MIT