G

Google Ads MCP

by davidmosiah · io.github.davidmosiah/google-ads-mcp

Unofficial Google Ads MCP for campaigns, keywords, budgets, reports and gated mutations.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-davidmosiah-google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-ads-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_ID": "<VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_REDIRECT_URI": "<VALUE>",
        "GOOGLE_ADS_TOKEN_PATH": "<VALUE>",
        "GOOGLE_ADS_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_ADS_ALLOW_MUTATIONS": "<VALUE>",
        "GOOGLE_ADS_CACHE": "<VALUE>",
        "GOOGLE_ADS_CACHE_PATH": "<VALUE>",
        "GOOGLE_ADS_CACHE_TTL_SECONDS": "<VALUE>",
        "GOOGLE_ADS_NO_RETRY": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-davidmosiah-google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-ads-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_ID": "<VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_REDIRECT_URI": "<VALUE>",
        "GOOGLE_ADS_TOKEN_PATH": "<VALUE>",
        "GOOGLE_ADS_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_ADS_ALLOW_MUTATIONS": "<VALUE>",
        "GOOGLE_ADS_CACHE": "<VALUE>",
        "GOOGLE_ADS_CACHE_PATH": "<VALUE>",
        "GOOGLE_ADS_CACHE_TTL_SECONDS": "<VALUE>",
        "GOOGLE_ADS_NO_RETRY": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-davidmosiah-google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-ads-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_ID": "<VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_REDIRECT_URI": "<VALUE>",
        "GOOGLE_ADS_TOKEN_PATH": "<VALUE>",
        "GOOGLE_ADS_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_ADS_ALLOW_MUTATIONS": "<VALUE>",
        "GOOGLE_ADS_CACHE": "<VALUE>",
        "GOOGLE_ADS_CACHE_PATH": "<VALUE>",
        "GOOGLE_ADS_CACHE_TTL_SECONDS": "<VALUE>",
        "GOOGLE_ADS_NO_RETRY": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-davidmosiah-google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-ads-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_ID": "<VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_REDIRECT_URI": "<VALUE>",
        "GOOGLE_ADS_TOKEN_PATH": "<VALUE>",
        "GOOGLE_ADS_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_ADS_ALLOW_MUTATIONS": "<VALUE>",
        "GOOGLE_ADS_CACHE": "<VALUE>",
        "GOOGLE_ADS_CACHE_PATH": "<VALUE>",
        "GOOGLE_ADS_CACHE_TTL_SECONDS": "<VALUE>",
        "GOOGLE_ADS_NO_RETRY": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-davidmosiah-google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-ads-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_ID": "<VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_REDIRECT_URI": "<VALUE>",
        "GOOGLE_ADS_TOKEN_PATH": "<VALUE>",
        "GOOGLE_ADS_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_ADS_ALLOW_MUTATIONS": "<VALUE>",
        "GOOGLE_ADS_CACHE": "<VALUE>",
        "GOOGLE_ADS_CACHE_PATH": "<VALUE>",
        "GOOGLE_ADS_CACHE_TTL_SECONDS": "<VALUE>",
        "GOOGLE_ADS_NO_RETRY": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-davidmosiah-google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-ads-mcp-unofficial"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_ID": "<VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_REDIRECT_URI": "<VALUE>",
        "GOOGLE_ADS_TOKEN_PATH": "<VALUE>",
        "GOOGLE_ADS_PRIVACY_MODE": "<VALUE>",
        "GOOGLE_ADS_ALLOW_MUTATIONS": "<VALUE>",
        "GOOGLE_ADS_CACHE": "<VALUE>",
        "GOOGLE_ADS_CACHE_PATH": "<VALUE>",
        "GOOGLE_ADS_CACHE_TTL_SECONDS": "<VALUE>",
        "GOOGLE_ADS_NO_RETRY": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GOOGLE_ADS_DEVELOPER_TOKEN secret No Google Ads API developer token from your Google Ads Manager account. Required.
GOOGLE_ADS_CLIENT_ID No Google OAuth2 client ID. Required.
GOOGLE_ADS_CLIENT_SECRET secret No Google OAuth2 client secret. Prefer storing in ~/.google-ads-mcp/config.json via setup.
GOOGLE_ADS_LOGIN_CUSTOMER_ID No Manager (MCC) customer ID used as login-customer-id header, no dashes (e.g., 1234567890). Optional but required for multi-account access.
GOOGLE_ADS_REDIRECT_URI No OAuth redirect URI. Defaults to http://127.0.0.1:3000/callback.
GOOGLE_ADS_TOKEN_PATH No Optional local path for OAuth tokens. Defaults to ~/.google-ads-mcp/tokens.json (0600).
GOOGLE_ADS_PRIVACY_MODE No Optional payload mode: summary, structured, or raw. Defaults to structured. raw returns full Google Ads API payloads.
GOOGLE_ADS_ALLOW_MUTATIONS No Set to true to enable write tools (pause/resume keywords/campaigns, set bids, set budgets). Default false (read-only). Agents changing real ad spend is high-stakes; review every change.
GOOGLE_ADS_CACHE No Optional SQLite cache toggle. Set to true or sqlite to enable.
GOOGLE_ADS_CACHE_PATH No Optional local SQLite cache path. Defaults to ~/.google-ads-mcp/cache.sqlite.
GOOGLE_ADS_CACHE_TTL_SECONDS No Optional cache TTL in seconds. Defaults to 60. Set to 0 to keep entries indefinitely (entries are still overwritten on each hit).
GOOGLE_ADS_NO_RETRY No Set to true to disable the HTTP retry middleware. Default false.

Similar servers