Skip to content
VS Code

ads mcp for VS Code

io.github.gudlab/ads-mcp

MCP server for Google Ads and Meta Ads. Wraps both APIs directly to manage campaigns.

client:VS Code transport:stdio runtime:npm

Install ads mcp 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-developer-token",
      "description": "GOOGLE_ADS_DEVELOPER_TOKEN",
      "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
    },
    {
      "type": "promptString",
      "id": "meta-app-id",
      "description": "META_APP_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meta-app-secret",
      "description": "META_APP_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meta-access-token",
      "description": "META_ACCESS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meta-ad-account-id",
      "description": "META_AD_ACCOUNT_ID",
      "password": true
    }
  ],
  "servers": {
    "ads-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@gudlab/ads-mcp"
      ],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "${input:google-ads-client-id}",
        "GOOGLE_ADS_CLIENT_SECRET": "${input:google-ads-client-secret}",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "${input:google-ads-developer-token}",
        "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}",
        "META_APP_ID": "${input:meta-app-id}",
        "META_APP_SECRET": "${input:meta-app-secret}",
        "META_ACCESS_TOKEN": "${input:meta-access-token}",
        "META_AD_ACCOUNT_ID": "${input:meta-ad-account-id}"
      }
    }
  }
}

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

ads mcp in other clients