Skip to content
Agentmart
Submit a tool

Gtm Ga4

GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.

Connector by mharnett · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 2
Write a review

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.

We use your email only for this newsletter. Privacy

About

GTM + GA4 MCP: tag management, consent auditing, workspace versioning, reports.

No 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_consent
  • gtm_ga4_list_custom_dimensions
  • gtm_ga4_realtime_report
  • gtm_get_client_context
  • gtm_get_tag
  • gtm_get_variable
  • gtm_list_tags
  • gtm_list_triggers
  • gtm_list_variables
  • gtm_preview

Write 6 · Create, change, send or run things.

  • gtm_create_tag
  • gtm_create_variable
  • gtm_create_version
  • gtm_ga4_create_custom_dimension
  • gtm_update_tag
  • gtm_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_ID
  • GTM_ACCOUNT_ID
  • GTM_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_consent

    Scan 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_tag

    Create a new tag in the sandbox workspace. Safety: only operates on sandbox workspace.

  • gtm_create_variable

    Create a new variable in the sandbox workspace. Safety: only operates on sandbox workspace.

  • gtm_create_version

    Create a version (snapshot) of the sandbox workspace. Does NOT publish.

  • gtm_delete_variable

    Delete a variable from the sandbox workspace. Destructive. Safety: only operates on sandbox workspace.

  • gtm_ga4_create_custom_dimension

    Register a new custom dimension in the GA4 property linked to this GTM container.

  • gtm_ga4_list_custom_dimensions

    List all registered custom dimensions for the GA4 property linked to this GTM container.

  • gtm_ga4_realtime_report

    Query GA4 Realtime Report (last 30 minutes) for the property linked to this GTM container.

  • gtm_ga4_run_report

    Query GA4 historical report for the property linked to this GTM container.

  • gtm_get_client_context

    Health check and status overview. Returns GTM container path, workspace ID, GA4 property ID, and server version. Use this to verify connectivity.

  • gtm_get_tag

    Get full details of a single tag by ID from the sandbox workspace.

  • gtm_get_variable

    Get full details of a single variable by ID from the sandbox workspace.

  • gtm_list_tags

    List all tags in the sandbox GTM workspace with name, type, consent status, and firing triggers.

  • gtm_list_triggers

    List all triggers in the sandbox GTM workspace.

  • gtm_list_variables

    List all variables in the sandbox GTM workspace.

Show 3 more tools
  • gtm_preview

    Generate a GTM Preview URL for the sandbox workspace.

  • gtm_update_tag

    Update a tag in the sandbox workspace. Fetches current tag, merges updates, then saves. Safety: only operates on sandbox workspace.

  • gtm_update_variable

    Update 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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mharnett

Cite this page

Gtm Ga4 MCP server. Agent Mart. https://agentmart.dev/connectors/mharnett-gtm-ga4 (last updated 2026-10-24)