World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 102 tools.
Descripción del creador (original en inglés)
GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.
Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.
Elige la app de IA que usas y copia la configuración.
Pasó 2/2 revisiones · Funciona en tu computadora
Primero: ¿qué IA usas?
Elige tu app y los pasos aparecen abajo.
Funciona con Claude, pero hay que preparar algo antes
Necesitas una clave de Gtm Ga4 (regístrate en el sitio del autor; puede tener costo) · Instala Node.js en tu computadora primero (una sola vez) · Solo en la app de Claude para computadora (Windows o Mac), no en la web ni en el móvil
Una sola vez; sirve para todos los servidores que necesitan Node.js
Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.
Cómo obtener la clave está en el README del autor, más abajo
SettingsDeveloperEdit Config
{
"mcpServers": {
"gtm-ga4": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GTM_ACCOUNT_ID": "your-value",
"GTM_CONTAINER_ID": "your-value",
"GA4_PROPERTY_ID": "your-value"
}
}
}
}Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie
Usa Gtm Ga4 y dime qué puedes hacer por mí; luego muéstrame una cosa✓ Si Claude dice que está usando Gtm Ga4 o muestra una herramienta de Gtm Ga4 en la respuesta, ya está conectado
Nombres de menú comprobados con la ayuda de Anthropic el 11 nov 2026 · tu pantalla puede variar un poco según la versión
ChatGPT todavía no puede conectar Gtm Ga4
Gtm Ga4 se instala en tu computadora, pero ChatGPT solo conecta servidores que funcionan en la web
A · Usa una app que pueda conectar Gtm Ga4
B · Otros en Otros que funcionan con ChatGPT
Elegidos entre los más usados de la misma categoría, solo los que se conectan con una dirección y sin clave
Funciona con Claude Code, pero hay que preparar algo antes
Necesitas una clave de Gtm Ga4 (regístrate en el sitio del autor; puede tener costo) · Instala Node.js en tu computadora primero (una sola vez)
Una sola vez; sirve para todos los servidores que necesitan Node.js
Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.
Cómo obtener la clave está en el README del autor, más abajo
Mac: pulsa Command+Espacio y escribe Terminal · Windows: abre PowerShell
claude mcp add gtm-ga4 --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GTM_ACCOUNT_ID=your-value --env GTM_CONTAINER_ID=your-value --env GA4_PROPERTY_ID=your-value -- npx -y mcp-gtm-ga4Cambia “your-value” por tu clave antes de pulsar Enter
Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie
Deberías ver Gtm Ga4 en la lista como conectado
Usa Gtm Ga4 y dime qué puedes hacer por mí; luego muéstrame una cosa✓ Si Claude Code dice que está usando Gtm Ga4 o muestra una herramienta de Gtm Ga4 en la respuesta, ya está conectado
Nombres de menú comprobados con la ayuda de Anthropic el 11 nov 2026 · tu pantalla puede variar un poco según la versión
Funciona con Cursor, pero hay que preparar algo antes
Necesitas una clave de Gtm Ga4 (regístrate en el sitio del autor; puede tener costo) · Instala Node.js en tu computadora primero (una sola vez)
Una sola vez; sirve para todos los servidores que necesitan Node.js
Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.
Cómo obtener la clave está en el README del autor, más abajo
En la configuración de Gtm Ga4, GOOGLE_APPLICATION_CREDENTIALS, GTM_ACCOUNT_ID, GTM_CONTAINER_ID, GA4_PROPERTY_ID está vacío; añade tu clave y guarda
Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie
Usa Gtm Ga4 y dime qué puedes hacer por mí; luego muéstrame una cosa✓ Si Cursor dice que está usando Gtm Ga4 o muestra una herramienta de Gtm Ga4 en la respuesta, ya está conectado
Nombres de menú comprobados con la ayuda de Cursor el 11 nov 2026 · tu pantalla puede variar un poco según la versión
Funciona con VS Code, pero hay que preparar algo antes
Necesitas una clave de Gtm Ga4 (regístrate en el sitio del autor; puede tener costo) · Instala Node.js en tu computadora primero (una sola vez)
Una sola vez; sirve para todos los servidores que necesitan Node.js
Abre el sitio del autor, crea una cuenta y una clave de API para el siguiente paso. Puede tener costo.
Cómo obtener la clave está en el README del autor, más abajo
En la configuración de Gtm Ga4, GOOGLE_APPLICATION_CREDENTIALS, GTM_ACCOUNT_ID, GTM_CONTAINER_ID, GA4_PROPERTY_ID está vacío; añade tu clave y guarda
Pega la clave solo en el campo de la app; nunca en un chat ni se la envíes a nadie
Usa Gtm Ga4 y dime qué puedes hacer por mí; luego muéstrame una cosa✓ Si VS Code dice que está usando Gtm Ga4 o muestra una herramienta de Gtm Ga4 en la respuesta, ya está conectado
Nombres de menú comprobados con la ayuda de VS Code el 11 nov 2026 · tu pantalla puede variar un poco según la versión
Otras apps que usan MCP, como Windsurf, Zed o Gemini CLI, añaden servidores de forma distinta. Míralo en la lista de apps
Ver todas las apps que usan MCP →
La configuración JSON está en “Para desarrolladores”, abajo
Claude Code
claude mcp add gtm-ga4 --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GTM_ACCOUNT_ID=your-value --env GTM_CONTAINER_ID=your-value --env GA4_PROPERTY_ID=your-value -- npx -y mcp-gtm-ga4Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"gtm-ga4": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GTM_ACCOUNT_ID": "your-value",
"GTM_CONTAINER_ID": "your-value",
"GA4_PROPERTY_ID": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"gtm-ga4": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GTM_ACCOUNT_ID": "your-value",
"GTM_CONTAINER_ID": "your-value",
"GA4_PROPERTY_ID": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"gtm-ga4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GTM_ACCOUNT_ID": "your-value",
"GTM_CONTAINER_ID": "your-value",
"GA4_PROPERTY_ID": "your-value"
}
}
}
}GOOGLE_APPLICATION_CREDENTIALS obligatorio envGTM_ACCOUNT_ID obligatorio envGTM_CONTAINER_ID obligatorio envGA4_PROPERTY_ID envEsta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.
npm: mcp-gtm-ga4Según cómo se conecta este servidor y la documentación de cada app, comprobado el 10 nov 2026.
Se ejecutan en tu computadora en
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Se ejecuta en tu computadora; la lista de herramientas aparece en tu app de IA después de instalarlo.
Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 11 nov 2026
El nombre en el registro se verificó con la cuenta de GitHub mharnett, dueña del repo
Último cambio de código: ayer
Todavía no hemos leído este repo en GitHub
Este se ejecuta en tu computadora; no hay endpoint en internet
Se ejecuta en tu computadora y usa ajustes locales en su lugar
Se ejecuta en tu computadora; solo podemos leer listas de herramientas de endpoints en internet
Pregunta, comparte un consejo o avisa de que no funciona. Ordenado por lo que la gente marcó como útil.
Aún no hay publicaciones. Sé la primera persona en preguntar o compartir.
Lo publicado aquí lo escriben usuarios, no el equipo de PopNx.
Aún no hay reseñas
Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.
Superó 2 de 2 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.
Debes completar: GOOGLE_APPLICATION_CREDENTIALS, GTM_ACCOUNT_ID, GTM_CONTAINER_ID
Se ejecuta en tu computadora. Tu app de IA lo inicia cuando hace falta, y los datos no pasan por los servidores del creador (a menos que el propio servidor llame a un servicio en línea).
El repo de GitHub cambió por última vez ayer, y la última versión (1.0.1) llegó al registro hace 7 meses.
Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. También necesitas Node.js en tu computadora.
En la misma categoría: World Monitor, Claude Flow, Tldraw
Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.
Cómo leer una tarjeta:↓ Descargas por semanai★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 102 tools.
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.
MCP server for Google Tag Manager and GA4 -- tag management, consent auditing, workspace versioning, and analytics reporting via Claude.
npm install mcp-gtm-ga4
Or clone and build:
git clone https://github.com/mharnett/mcp-gtm-ga4.git
cd mcp-gtm-ga4 npm install npm run build
Security: Never share your .mcp.json file or commit it to git -- it may contain API credentials. Add .mcp.json to your .gitignore.
Runtime configuration is via environment variables.
| Variable | Required | Description |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS | Yes | Path to a Google credential JSON key file (service account or authorized-user — see Authentication below) |
GTM_ACCOUNT_ID | Yes | GTM account ID |
GTM_CONTAINER_ID | Yes | GTM container ID |
GA4_PROPERTY_ID | Yes | GA4 property ID |
GTM_SANDBOX_WORKSPACE_ID | No | Override workspace ID (auto-detects Default Workspace if omitted) |
MCP_SERVER_NAME | No | Server name (defaults to package name mcp-gtm-ga4) |
See config.example.json for a reference template. The only value read from disk is oauth.scope (in an optional config.json) — the single source of truth for the OAuth scope the onboarding paths request. If no config.json is present, the committed minimum scope is used.
This MCP supports two auth models. Both feed the same GOOGLE_APPLICATION_CREDENTIALS runtime path.
There is no runtime service-account-vs-OAuth toggle. Both models converge on a single slot — GOOGLE_APPLICATION_CREDENTIALS — which the runtime hands to GoogleAuth({ keyFile }). Whichever file you point that env var at *is* the credential:
auth subcommand writes (option 2) — a file that plugs into the exact same slot.So the only real precedence rule is failure handling: an explicitly-configured keyfile is used; when `GOOGLE_APPLICATION_CREDENTIALS` is unset the server fails loudly at startup with an onboarding error naming both the service-account path and the auth OAuth helper. It deliberately does not fall back to Google's Application Default Credentials (gcloud user creds / GCE metadata server) — no silent machine-local default, no silent runtime failover.
Create a service account in your GCP project, download its JSON key, grant it the GTM container role (on the target GTM container) and GA4 property access, and point GOOGLE_APPLICATION_CREDENTIALS at the key file. No OAuth flow, no browser, no refresh token. This is the recommended path for headless/server/unattended deployments.
If you can't use a service account, mint a user credential with your own Google OAuth client (a "Desktop app" OAuth 2.0 Client ID created in your own GCP project — enable the Tag Manager API and the Google Analytics Admin + Data APIs). Two equivalent onboarding commands, both hardened with PKCE (RFC 7636, S256) and both requesting the scope from config.json (oauth.scope) so they never drift:
export GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
export GOOGLE_CLIENT_SECRET=your-client-secret
node dist/index.js auth --output ./gtm-ga4-credentials.json
node get-refresh-token.cjs
The refresh token / credential is written by you and read from your environment only. Nothing is shared and no OAuth client keyfile is bundled. Do not run the helper with stdout redirected to a shared log — the refresh token is printed to stdout by design.
The onboarding paths request exactly the scopes this MCP's tools use (from config.example.json → oauth.scope):
| Scope | Needed by |
|---|---|
tagmanager.edit.containers | gtm_create_tag, gtm_update_tag, gtm_create_variable, gtm_update_variable, gtm_delete_variable, tag/trigger/variable reads |
tagmanager.edit.containerversions | gtm_create_version |
tagmanager.publish | gtm_create_version, gtm_preview (quick preview) |
analytics.readonly | gtm_ga4_run_report, gtm_ga4_realtime_report, gtm_ga4_list_custom_dimensions |
analytics.edit | gtm_ga4_create_custom_dimension |
tagmanager.readonly is intentionally not requested — the edit scopes already grant read access.
{
"mcpServers": { "gtm-ga4": { "command": "node", "args": ["/path/to/mcp-gtm-ga4/dist/index.js"], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json", "GTM_ACCOUNT_ID": "1234567890", "GTM_CONTAINER_ID": "9876543", "GA4_PROPERTY_ID": "331956119" } } } }
GTM_ACCOUNT_ID=1234567890 \
GTM_CONTAINER_ID=9876543 \ GA4_PROPERTY_ID=331956119 \ GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa.json \ npx mcp-gtm-ga4
Claude Desktop: Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
All write operations (gtm_update_tag, gtm_create_tag, gtm_preview, gtm_create_version) verify they target the resolved workspace before executing. If a request attempts to write to a different workspace, the server returns a SafetyError and blocks the operation.
This prevents accidental production changes when the MCP server is configured against a sandbox workspace.
| Tool | Description |
|---|---|
gtm_list_tags | List all tags in the workspace with consent status and firing triggers |
gtm_get_tag | Get full tag configuration by tag ID |
gtm_update_tag | Update an existing tag (merge patch via JSON) |
gtm_create_tag | Create a new tag from a JSON definition |
| Tool | Description |
|---|---|
gtm_list_triggers | List all triggers (ID, name, type) |
gtm_list_variables | List all variables (ID, name, type) |
| Tool | Description |
|---|---|
gtm_audit_consent | Audit all tags for consent configuration compliance |
| Tool | Description |
|---|---|
gtm_preview | Generate a quick preview of the current workspace |
gtm_create_version | Create a new container version from the workspace |
| Tool | Description |
|---|---|
gtm_ga4_run_report | Run a GA4 report with dimensions, metrics, date range, and filters |
gtm_ga4_realtime_report | Run a GA4 realtime report (last 30 minutes) |
| Tool | Description |
|---|---|
gtm_ga4_list_custom_dimensions | List all custom dimensions for the property |
gtm_ga4_create_custom_dimension | Create a new custom dimension |
googleapis (Tag Manager v2)@google-analytics/data (BetaAnalyticsDataClient)@google-analytics/admin (AnalyticsAdminServiceClient)cockatiel (retry, circuit breaker, timeout policies)pino with pino-prettyMIT
Built by Mark Harnett / drak-marketing