Skip to content
VS Code

Google Ads MCP (ctrlswing) for VS Code

io.github.ctrlswing/google-ads-mcp

Google Ads MCP server with GAQL querying, multi-MCC routing, and dry-run safe mutations.

client:VS Code transport:stdio runtime:npm

Install Google Ads MCP (ctrlswing) in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "google-ads-client-id",
      "description": "GOOGLE_ADS_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-ads-client-secret",
      "description": "GOOGLE_ADS_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-ads-refresh-token",
      "description": "GOOGLE_ADS_REFRESH_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-ads-login-customer-id",
      "description": "GOOGLE_ADS_LOGIN_CUSTOMER_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-ads-default-customer-id",
      "description": "GOOGLE_ADS_DEFAULT_CUSTOMER_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-ads-read-only",
      "description": "GOOGLE_ADS_READ_ONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-ads-developer-token",
      "description": "GOOGLE_ADS_DEVELOPER_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "google-ads-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ctrlswing/google-ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "${input:google-ads-client-id}",
        "GOOGLE_ADS_CLIENT_SECRET": "${input:google-ads-client-secret}",
        "GOOGLE_ADS_REFRESH_TOKEN": "${input:google-ads-refresh-token}",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "${input:google-ads-login-customer-id}",
        "GOOGLE_ADS_DEFAULT_CUSTOMER_ID": "${input:google-ads-default-customer-id}",
        "GOOGLE_ADS_READ_ONLY": "${input:google-ads-read-only}",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "${input:google-ads-developer-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Google Ads MCP (ctrlswing) in other clients