Gtm Ga4
GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.
Connector by mharnett · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/mharnett-gtm-ga4
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 10 read · 6 write · 1 delete · 1 not yet classified
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- Not scanned yet
- Runs as
- Node.js package
Tools by what they do 18
Read from the source code; the running server may list different tools.
Read 10 · Look things up without changing anything.
gtm_audit_consentgtm_ga4_list_custom_dimensionsgtm_ga4_realtime_reportgtm_get_client_contextgtm_get_taggtm_get_variablegtm_list_tagsgtm_list_triggersgtm_list_variablesgtm_preview
Write 6 · Create, change, send or run things.
gtm_create_taggtm_create_variablegtm_create_versiongtm_ga4_create_custom_dimensiongtm_update_taggtm_update_variable
Delete 1 · Delete, drop, revoke or wipe things.
gtm_delete_variable
Not yet classified 1 · We could not tell from the name and description.
gtm_ga4_run_report
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
GOOGLE_APPLICATION_CREDENTIALS
Other settings (environment variables or headers).
GA4_PROPERTY_IDGTM_ACCOUNT_IDGTM_CONTAINER_ID
Tools (18)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
gtm_audit_consentScan all tags in the sandbox workspace and report consent compliance. Returns tags with no consent, NOT_NEEDED tags, properly configured tags, and recommendations.
gtm_create_tagCreate a new tag in the sandbox workspace. Safety: only operates on sandbox workspace.
gtm_create_variableCreate a new variable in the sandbox workspace. Safety: only operates on sandbox workspace.
gtm_create_versionCreate a version (snapshot) of the sandbox workspace. Does NOT publish.
gtm_delete_variableDelete a variable from the sandbox workspace. Destructive. Safety: only operates on sandbox workspace.
gtm_ga4_create_custom_dimensionRegister a new custom dimension in the GA4 property linked to this GTM container.
gtm_ga4_list_custom_dimensionsList all registered custom dimensions for the GA4 property linked to this GTM container.
gtm_ga4_realtime_reportQuery GA4 Realtime Report (last 30 minutes) for the property linked to this GTM container.
gtm_ga4_run_reportQuery GA4 historical report for the property linked to this GTM container.
gtm_get_client_contextHealth check and status overview. Returns GTM container path, workspace ID, GA4 property ID, and server version. Use this to verify connectivity.
gtm_get_tagGet full details of a single tag by ID from the sandbox workspace.
gtm_get_variableGet full details of a single variable by ID from the sandbox workspace.
gtm_list_tagsList all tags in the sandbox GTM workspace with name, type, consent status, and firing triggers.
gtm_list_triggersList all triggers in the sandbox GTM workspace.
gtm_list_variablesList all variables in the sandbox GTM workspace.
Show 3 more tools
gtm_previewGenerate a GTM Preview URL for the sandbox workspace.
gtm_update_tagUpdate a tag in the sandbox workspace. Fetches current tag, merges updates, then saves. Safety: only operates on sandbox workspace.
gtm_update_variableUpdate a variable in the sandbox workspace. Fetches current variable, merges updates, then saves. Safety: only operates on sandbox workspace.
Signals
- Stars
- 2
- Forks
- 1
- Open issues
- 0
- Last commit
- Sep 4, 2026 (1 month ago)
- Last release
- Sep 3, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.mharnett/gtm-ga4- Version
- 1.0.1
- Auth
- No auth
- Packages
- npm mcp-gtm-ga4
- License
- MIT
- Repository
- github.com/mharnett/mcp-gtm-ga4
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from mharnett
- 0.602score
Google Ads
mharnett
Google Ads MCP with MCC support: 35 tools for campaigns, keywords, reporting, GAQL.
ConnectorAFreshness: ALocal★ 1Claude Code +5 - 0.580score
Reddit Ads
mharnett
Reddit Ads MCP: campaigns, ad groups, ads, reporting, and audience targeting.
ConnectorBFreshness: BLocal★ 3Claude Code +5 - 0.579score
Ga4
mharnett
Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.
ConnectorAFreshness: ALocalClaude Code +5 - 0.576score
Bing Ads
mharnett
MCP server for Microsoft Advertising (Bing Ads) — campaigns, keywords, and reports
ConnectorBFreshness: BLocal★ 4Claude Code +5 - 0.574score
Google Gsc
mharnett
Google Search Console MCP: search analytics, URL inspection, site management.
ConnectorBFreshness: BLocalRead-only★ 2Claude Code +5 - 0.528score
LinkedIn Ads
mharnett
MCP server for LinkedIn Campaign Manager — campaigns, creatives, and analytics
ConnectorBFreshness: BLocalClaude Code +5
Cite this page
Gtm Ga4 MCP server. Agent Mart. https://agentmart.dev/connectors/mharnett-gtm-ga4 (last updated 2026-10-24)