io.github.mharnett/gtm-ga4 MCP Server
io.github.mharnett/gtm-ga4
What this kind of tool is for
- Automate a build, test, or deployment step you repeat by hand.
- Review or refactor code in an existing repository without leaving your agent.
- Bridge an internal service or CLI into the agent toolset.
How to compare servers like this
- Scope of control:
- Repos and CI are hard to undo; prefer tools that ask before anything irreversible.
- Environment fit:
- Match the runtime it expects (Node, Python, a container) to what you actually run.
- Maintenance signal:
- Check the last-commit date — dev tooling that lags upstream breaks first.
- Config surface:
- Prefer tools whose environment-variable or config keys are documented plainly.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the io.github.mharnett/gtm-ga4 MCP server?
GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.
How to install io.github.mharnett/gtm-ga4
Copy-paste configuration for popular MCP clients.
GOOGLE_APPLICATION_CREDENTIALSrequiredPath to service account JSON credentials file
GTM_ACCOUNT_IDrequiredGTM account ID
GTM_CONTAINER_IDrequiredGTM container ID
GA4_PROPERTY_IDGA4 property ID (numeric)
{
"mcpServers": {
"gtm-ga4": {
"command": "npx",
"args": [
"-y",
"mcp-gtm-ga4"
],
"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>"
}
}
}
}Related MCP servers

io.github.mharnett/linkedin-ads
MCP server for LinkedIn Campaign Manager — campaigns, creatives, and analytics

io.github.mharnett/reddit-ads
Reddit Ads MCP: campaigns, ad groups, ads, reporting, and audience targeting.

MCP server for Microsoft Advertising (Bing Ads) — campaigns, keywords, and reports

io.github.mharnett/ga4
Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.

Relay
MCP relay server for Claude Desktop <-> Claude Code communication
Real-time B2B data for agents: search and enrich 1B+ people and 200M+ company profiles.