mcp-gtm-ga4 MCP
An open-source MCP server for Google Tag Manager and GA4 that provides tools for tag management, consent auditing, workspace versioning, and analytics reporting. It supports sandbox safety for write operations and multi-client configuration via environment variables.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Manage GTM tags, triggers, and variables
- Audit consent compliance settings
- Version and preview GTM workspaces
- Retrieve GA4 analytics reports
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
mcp-gtm-ga4 1.0.1
{
"version": "1.0.1",
"transport": "stdio",
"identifier": "mcp-gtm-ga4",
"registryType": "npm",
"environmentVariables": [
{
"name": "GOOGLE_APPLICATION_CREDENTIALS",
"isRequired": true,
"description": "Path to service account JSON credentials file"
},
{
"name": "GTM_ACCOUNT_ID",
"isRequired": true,
"description": "GTM account ID"
},
{
"name": "GTM_CONTAINER_ID",
"isRequired": true,
"description": "GTM container ID"
},
{
"name": "GA4_PROPERTY_ID",
"description": "GA4 property ID (numeric)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-gtm-ga4-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4@1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
"GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-gtm-ga4-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4@1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
"GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}VS Code
{
"servers": {
"mcp-gtm-ga4-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4@1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
"GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-gtm-ga4-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4@1.0.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GTM_ACCOUNT_ID": "<YOUR_GTM_ACCOUNT_ID>",
"GTM_CONTAINER_ID": "<YOUR_GTM_CONTAINER_ID>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}Let your agent find its tools
Find servers like mcp-gtm-ga4 MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.