GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.
npx -y mcp-gtm-ga4{
"GOOGLE_APPLICATION_CREDENTIALS": "YOUR_VALUE_HERE",
"GTM_ACCOUNT_ID": "YOUR_VALUE_HERE",
"GTM_CONTAINER_ID": "YOUR_VALUE_HERE",
"GA4_PROPERTY_ID": "YOUR_VALUE_HERE"
}Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
{
"mcpServers": {
"io-github-mharnett-gtm-ga4": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "YOUR_VALUE_HERE",
"GTM_ACCOUNT_ID": "YOUR_VALUE_HERE",
"GTM_CONTAINER_ID": "YOUR_VALUE_HERE",
"GA4_PROPERTY_ID": "YOUR_VALUE_HERE"
}
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonNo remote HTTP endpoint is advertised. Use the package or stdio setup shown in Install.
gtm-ga4 is an MCP server for GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.. It supports STDIO transport.
Use the generated config in Install. This server runs with npx -y mcp-gtm-ga4; add any required environment variables before starting your client.
Choose the Claude Desktop tab in Install and copy the config for npx -y mcp-gtm-ga4. Add required environment variables before starting Claude Desktop.
Choose the Claude Code tab in Install and copy the config for npx -y mcp-gtm-ga4. Add required environment variables before starting Claude Code.
Choose the Codex tab in Install and copy the config for npx -y mcp-gtm-ga4. Add required environment variables before starting Codex.
Choose the Cursor or VS Code tab in Install and copy the config for npx -y mcp-gtm-ga4. Add required environment variables before starting Cursor or VS Code.
gtm-ga4 uses STDIO transport. Use the package or command config in Install.
gtm-ga4 inventory is listed when the MCP endpoint exposes tools, resources, or prompts. Some servers require auth first.
gtm-ga4 is marked with Auth required by registry metadata auth. You may need provider login, an API key, a bearer token, or a session header.
| Package | Registry | Version | Inputs |
|---|---|---|---|
mcp-gtm-ga4stdio | npm | 1.0.1 | Env: GOOGLE_APPLICATION_CREDENTIALS required Env: GTM_ACCOUNT_ID required Env: GTM_CONTAINER_ID required Env: GA4_PROPERTY_ID |