← Back to browse

gtm-ga4

Indexed by io.github.mharnett

About

GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsGOOGLE_APPLICATION_CREDENTIALS GTM_ACCOUNT_ID GTM_CONTAINER_ID GA4_PROPERTY_ID
Claude Code
claude mcp add --env GOOGLE_APPLICATION_CREDENTIALS= --env GTM_ACCOUNT_ID= --env GTM_CONTAINER_ID= --env GA4_PROPERTY_ID= gtm-ga4 -- npx mcp-gtm-ga4
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"gtm-ga4","command":"npx","args":["mcp-gtm-ga4"],"env":{"GOOGLE_APPLICATION_CREDENTIALS":"","GTM_ACCOUNT_ID":"","GTM_CONTAINER_ID":"","GA4_PROPERTY_ID":""}}'
JSON
{
  "mcpServers": {
    "gtm-ga4": {
      "command": "npx",
      "args": [
        "mcp-gtm-ga4"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "",
        "GTM_ACCOUNT_ID": "",
        "GTM_CONTAINER_ID": "",
        "GA4_PROPERTY_ID": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.