Skip to content
VS Code

Google Ads for VS Code

io.github.zleventer/google-ads-mcp

MCP server for Google Ads — 22 tools for spend diagnosis, impression share, and asset performance.

client:VS Code transport:stdio runtime:npm

Install Google Ads in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "google-ads-developer-token",
      "description": "GOOGLE_ADS_DEVELOPER_TOKEN",
      "password": true
    },
    {
      "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-customer-id",
      "description": "GOOGLE_ADS_CUSTOMER_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "google-ads-login-customer-id",
      "description": "GOOGLE_ADS_LOGIN_CUSTOMER_ID",
      "password": true
    }
  ],
  "servers": {
    "google-ads-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zleventer/google-ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "${input:google-ads-developer-token}",
        "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_CUSTOMER_ID": "${input:google-ads-customer-id}",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "${input:google-ads-login-customer-id}"
      }
    }
  }
}

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 in other clients