A

Ads MCP

by gudlab · io.github.gudlab/ads-mcp

Enables direct management of Google Ads and Meta Ads campaigns, keywords, ads, and ad review status through the official APIs, without third-party quotas or intermediaries.

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-gudlab-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gudlab/ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "META_APP_ID": "<VALUE>",
        "META_APP_SECRET": "<YOUR_VALUE>",
        "META_ACCESS_TOKEN": "<YOUR_VALUE>",
        "META_AD_ACCOUNT_ID": "<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-gudlab-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gudlab/ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "META_APP_ID": "<VALUE>",
        "META_APP_SECRET": "<YOUR_VALUE>",
        "META_ACCESS_TOKEN": "<YOUR_VALUE>",
        "META_AD_ACCOUNT_ID": "<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-gudlab-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gudlab/ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "META_APP_ID": "<VALUE>",
        "META_APP_SECRET": "<YOUR_VALUE>",
        "META_ACCESS_TOKEN": "<YOUR_VALUE>",
        "META_AD_ACCOUNT_ID": "<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-gudlab-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gudlab/ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "META_APP_ID": "<VALUE>",
        "META_APP_SECRET": "<YOUR_VALUE>",
        "META_ACCESS_TOKEN": "<YOUR_VALUE>",
        "META_AD_ACCOUNT_ID": "<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-gudlab-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gudlab/ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "META_APP_ID": "<VALUE>",
        "META_APP_SECRET": "<YOUR_VALUE>",
        "META_ACCESS_TOKEN": "<YOUR_VALUE>",
        "META_AD_ACCOUNT_ID": "<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-gudlab-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gudlab/ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "<YOUR_VALUE>",
        "GOOGLE_ADS_CLIENT_SECRET": "<YOUR_VALUE>",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_ADS_CUSTOMER_ID": "<VALUE>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<VALUE>",
        "META_APP_ID": "<VALUE>",
        "META_APP_SECRET": "<YOUR_VALUE>",
        "META_ACCESS_TOKEN": "<YOUR_VALUE>",
        "META_AD_ACCOUNT_ID": "<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_CLIENT_ID secret Yes Google Cloud OAuth client ID (from a Desktop app OAuth client).
GOOGLE_ADS_CLIENT_SECRET secret Yes Google Cloud OAuth client secret (from a Desktop app OAuth client).
GOOGLE_ADS_DEVELOPER_TOKEN secret Yes Google Ads API developer token, obtained from the Google Ads API Center.
GOOGLE_ADS_REFRESH_TOKEN secret Yes Google Ads refresh token, generated by running the local OAuth flow.
GOOGLE_ADS_CUSTOMER_ID Yes 10-digit Google Ads customer ID (no dashes).
GOOGLE_ADS_LOGIN_CUSTOMER_ID No Optional MCC customer ID, only needed if the account is managed under an MCC account.
META_APP_ID Yes Meta App ID from the Meta developer app.
META_APP_SECRET secret Yes Meta App Secret from the Meta developer app.
META_ACCESS_TOKEN secret Yes Long-lived Meta System User access token with ads_management scope.
META_AD_ACCOUNT_ID Yes Numeric Meta ad account ID (the client adds the act_ prefix).

Similar servers