google-ads-mcp

v0.1.3
io.github.davidmosiah/google-ads-mcp Checked 1 hour ago Published 5 months ago

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

Values you need

VariableWhat it is
GOOGLE_ADS_DEVELOPER_TOKENoptional secret Google Ads API developer token from your Google Ads Manager account. Required.
GOOGLE_ADS_CLIENT_IDoptional Google OAuth2 client ID. Required.
GOOGLE_ADS_CLIENT_SECREToptional secret Google OAuth2 client secret. Prefer storing in ~/.google-ads-mcp/config.json via setup.
GOOGLE_ADS_LOGIN_CUSTOMER_IDoptional 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_URIoptional OAuth redirect URI. Defaults to http://127.0.0.1:3000/callback.
GOOGLE_ADS_TOKEN_PATHoptional Optional local path for OAuth tokens. Defaults to ~/.google-ads-mcp/tokens.json (0600).
GOOGLE_ADS_PRIVACY_MODEoptional Optional payload mode: summary, structured, or raw. Defaults to structured. raw returns full Google Ads API payloads.
GOOGLE_ADS_ALLOW_MUTATIONSoptional 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_CACHEoptional Optional SQLite cache toggle. Set to true or sqlite to enable.
GOOGLE_ADS_CACHE_PATHoptional Optional local SQLite cache path. Defaults to ~/.google-ads-mcp/cache.sqlite.
GOOGLE_ADS_CACHE_TTL_SECONDSoptional 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_RETRYoptional Set to true to disable the HTTP retry middleware. Default false.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add google-ads-mcp -- npx -y google-ads-mcp-unofficial@0.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "google-ads-mcp": {
      "args": [
        "-y",
        "google-ads-mcp-unofficial@0.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "google-ads-mcp": {
      "args": [
        "-y",
        "google-ads-mcp-unofficial@0.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "google-ads-mcp": {
      "args": [
        "-y",
        "google-ads-mcp-unofficial@0.1.3"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.google-ads-mcp]
command = "npx"
args = ["-y", "google-ads-mcp-unofficial@0.1.3"]

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: google_ads_data_inventory, google_ads_capabilities, google_ads_agent_manifest, google_ads_connection_status, google_ads_privacy_audit, google_ads_cache_status, google_ads_clear_cache, google_ads_profile_get, ….
  4. 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