youtube-organic-mcp

v1.0.0
io.github.lanternrow/youtube-organic-mcp Checked 4 days ago Published 5 months ago

YouTube organic analytics — channel stats, video performance, watch time & audience insights.

Values you need

VariableWhat it is
YOUTUBE_CLIENT_IDrequired Google OAuth client ID for the YouTube Data + Analytics APIs
YOUTUBE_CLIENT_SECRETrequired secret Google OAuth client secret
YOUTUBE_REFRESH_TOKENrequired 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.0
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_accounts, get_channel_info, get_videos, get_video_details, get_channel_analytics, get_video_analytics.
  5. 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