mcp-gtm-ga4

mharnett/mcp-gtm-ga4
★ 0 stars TypeScript 🔒 Security Updated today
MCP server for Google Tag Manager + GA4 - tag management, consent auditing, workspace versioning, and analytics via Claude
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-gtm-ga4": {
      "command": "npx",
      "args": [
        "-y",
        "mharnett/mcp-gtm-ga4"
      ]
    }
  }
}

README Excerpt

MCP server for Google Tag Manager and GA4 -- tag management, consent auditing, workspace versioning, and analytics reporting via Claude. - **14 tools** spanning GTM workspace management (tags, triggers, variables), consent compliance auditing, workspace preview/versioning, and GA4 reporting - **Sandbox safety** -- all write operations verify they target the resolved workspace, refusing to write to non-sandbox workspaces

Tools (19)

GA4_PROPERTY_IDGOOGLE_APPLICATION_CREDENTIALSGTM_ACCOUNT_IDGTM_CONTAINER_IDGTM_SANDBOX_WORKSPACE_IDMCP_SERVER_NAMEgtm_audit_consentgtm_create_taggtm_create_versiongtm_ga4_create_custom_dimensiongtm_ga4_list_custom_dimensionsgtm_ga4_realtime_reportgtm_ga4_run_reportgtm_get_taggtm_list_tagsgtm_list_triggersgtm_list_variablesgtm_previewgtm_update_tag