Skip to main content

Samarth Gtm MCP

io.github.samarthanalytics-sj/samarth-gtm-mcp

v1.19.0Updated Jun 12, 2026stdio · npm

Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add samarth-gtm-mcp -e 'GOOGLE_OAUTH_CLIENT_ID=<your-google-oauth-client-id>' -e 'GOOGLE_OAUTH_CLIENT_SECRET=<your-google-oauth-client-secret>' -- npx -y [email protected]

Configuration

5 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • GOOGLE_OAUTH_CLIENT_SECRET
    Env var· required· secret
    Your Google OAuth 2.0 client secret
  • GOOGLE_OAUTH_CLIENT_ID
    Env var· required
    Your Google OAuth 2.0 client ID (Desktop app type)
  • GTM_MCP_ENABLE_WRITES
    Env var· optional
    Set to 'true' to allow create/update operations (default: read-only)
  • GTM_MCP_ENABLE_PUBLISH
    Env var· optional
    Set to 'true' to allow publish operations (default: disabled)
  • GTM_MCP_ENABLE_DELETES
    Env var· optional
    Set to 'true' to allow delete operations (default: disabled)

Listed in the official MCP Registry since Jun 12, 2026. Mirrored daily; last checked Nov 26, 2026.