← Index

io.github.mharnett/gtm-ga4

io.github.mharnett/gtm-ga4·v1.0.1·Other
Quality Score
85
/100

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

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "gtm-ga4": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<google_application_credentials>",
        "GTM_ACCOUNT_ID": "<gtm_account_id>",
        "GTM_CONTAINER_ID": "<gtm_container_id>",
        "GA4_PROPERTY_ID": "<ga4_property_id>"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "gtm-ga4": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gtm-ga4"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<google_application_credentials>",
        "GTM_ACCOUNT_ID": "<gtm_account_id>",
        "GTM_CONTAINER_ID": "<gtm_container_id>",
        "GA4_PROPERTY_ID": "<ga4_property_id>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y mcp-gtm-ga4
§02  Environment variables
GOOGLE_APPLICATION_CREDENTIALS
required

Path to service account JSON credentials file

GTM_ACCOUNT_ID
required

GTM account ID

GTM_CONTAINER_ID
required

GTM container ID

GA4_PROPERTY_ID

GA4 property ID (numeric)

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
10
installability
25
documentation
15
stability
10
§04  Alternatives in Other