io.github.mharnett/gtm-ga4
GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.
Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.
- Repository
- github.com/mharnett/mcp-gtm-ga4
- Version
- 1.3.2
- Author
- mharnett (namespace verified by the registry)
- Source
- Official MCP registry (updated Nov 25, 2026)
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Questions for the author
No question yet.
Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.
How to install it
Variables to fill in: GOOGLE_APPLICATION_CREDENTIALS, GTM_ACCOUNT_ID, GTM_CONTAINER_ID, GA4_PROPERTY_ID.
On your machine
Claude Code
The server runs on your machine (npm package). In a terminal:
claude mcp add gtm-ga4 -e GOOGLE_APPLICATION_CREDENTIALS=YOUR_GOOGLE_APPLICATION_CREDENTIALS -e GTM_ACCOUNT_ID=YOUR_GTM_ACCOUNT_ID -e GTM_CONTAINER_ID=YOUR_GTM_CONTAINER_ID -e GA4_PROPERTY_ID=YOUR_GA4_PROPERTY_ID -- npx -y [email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"gtm-ga4": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"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"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"gtm-ga4": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"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 .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"gtm-ga4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"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"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
This server runs on your machine: we cannot test it remotely.
Cite this entry
For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.
io.github.mharnett/gtm-ga4 · L’Agora
[io.github.mharnett/gtm-ga4 — L’Agora](https://lagora.dev/en/entry/io.github.mharnett/gtm-ga4)
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.mharnett/gtm-ga4)HTML
<a href="https://lagora.dev/en/entry/io.github.mharnett/gtm-ga4"><img src="https://lagora.dev/badge/io.github.mharnett/gtm-ga4.svg?lang=en" alt="io.github.mharnett/gtm-ga4 on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.
By the same author
io.github.mharnett/reddit-ads Local
io.github.mharnett/linkedin-ads Local
io.github.mharnett/google-ads Local
io.github.mharnett/ga4 Local