youtube-organic-mcp
v1.0.0YouTube organic analytics — channel stats, video performance, watch time & audience insights.
Values you need
| Variable | What it is | |
|---|---|---|
YOUTUBE_CLIENT_ID | required | Google OAuth client ID for the YouTube Data + Analytics APIs |
YOUTUBE_CLIENT_SECRET | required secret | Google OAuth client secret |
YOUTUBE_REFRESH_TOKEN | required secret | Google OAuth refresh token (offline access) for the channel owner |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add youtube-organic-mcp -e 'YOUTUBE_CLIENT_ID=<YOUTUBE_CLIENT_ID>' -e 'YOUTUBE_CLIENT_SECRET=<YOUTUBE_CLIENT_SECRET>' -e 'YOUTUBE_REFRESH_TOKEN=<YOUTUBE_REFRESH_TOKEN>' -- npx -y youtube-organic-mcp@1.0.0Add to
claude_desktop_config.json{
"mcpServers": {
"youtube-organic-mcp": {
"args": [
"-y",
"youtube-organic-mcp@1.0.0"
],
"command": "npx",
"env": {
"YOUTUBE_CLIENT_ID": "<YOUTUBE_CLIENT_ID>",
"YOUTUBE_CLIENT_SECRET": "<YOUTUBE_CLIENT_SECRET>",
"YOUTUBE_REFRESH_TOKEN": "<YOUTUBE_REFRESH_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"youtube-organic-mcp": {
"args": [
"-y",
"youtube-organic-mcp@1.0.0"
],
"command": "npx",
"env": {
"YOUTUBE_CLIENT_ID": "<YOUTUBE_CLIENT_ID>",
"YOUTUBE_CLIENT_SECRET": "<YOUTUBE_CLIENT_SECRET>",
"YOUTUBE_REFRESH_TOKEN": "<YOUTUBE_REFRESH_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "YOUTUBE_CLIENT_ID",
"id": "youtube-client-id",
"password": true,
"type": "promptString"
},
{
"description": "YOUTUBE_CLIENT_SECRET",
"id": "youtube-client-secret",
"password": true,
"type": "promptString"
},
{
"description": "YOUTUBE_REFRESH_TOKEN",
"id": "youtube-refresh-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"youtube-organic-mcp": {
"args": [
"-y",
"youtube-organic-mcp@1.0.0"
],
"command": "npx",
"env": {
"YOUTUBE_CLIENT_ID": "${input:youtube-client-id}",
"YOUTUBE_CLIENT_SECRET": "${input:youtube-client-secret}",
"YOUTUBE_REFRESH_TOKEN": "${input:youtube-refresh-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.youtube-organic-mcp]
command = "npx"
args = ["-y", "youtube-organic-mcp@1.0.0"]
env = { "YOUTUBE_CLIENT_ID" = "<YOUTUBE_CLIENT_ID>", "YOUTUBE_CLIENT_SECRET" = "<YOUTUBE_CLIENT_SECRET>", "YOUTUBE_REFRESH_TOKEN" = "<YOUTUBE_REFRESH_TOKEN>" }For AI agents
- Ask the user for: YOUTUBE_CLIENT_ID, YOUTUBE_CLIENT_SECRET, YOUTUBE_REFRESH_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_accounts, get_channel_info, get_videos, get_video_details, get_channel_analytics, get_video_analytics.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json