Gtm Ga4
GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.0.1
- Listing updated
- 5 days ago
About Gtm Ga4
Gtm Ga4 is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add gtm-ga4 --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' --env GTM_ACCOUNT_ID='<GTM_ACCOUNT_ID>' --env GTM_CONTAINER_ID='<GTM_CONTAINER_ID>' -- npx -y mcp-gtm-ga4Add to 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>"
}
}
}
}Add to ~/.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>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"gtm-ga4": {
"type": "stdio",
"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>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_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>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"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>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
GOOGLE_APPLICATION_CREDENTIALSPath to service account JSON credentials fileRequiredGTM_ACCOUNT_IDGTM account IDRequiredGTM_CONTAINER_IDGTM container IDRequiredGA4_PROPERTY_IDGA4 property ID (numeric)
Pricing
Open source
Gtm Ga4 FAQ
Is Gtm Ga4 free?
Yes. Gtm Ga4 is open source, so you can use and self-host it for free.
How do I add Gtm Ga4 to Claude Code?
Run this command in your terminal: claude mcp add gtm-ga4 --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' --env GTM_ACCOUNT_ID='<GTM_ACCOUNT_ID>' --env GTM_CONTAINER_ID='<GTM_CONTAINER_ID>' -- npx -y mcp-gtm-ga4
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.