LocalFree server, account needed

Samarth Analytics MCP server

samarthanalytics-sj/samarth-analytics-mcp

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

2 GitHub stars2,095 npm downloads / month

Install Samarth Analytics in Claude Code

Claude Code
claude mcp add samarth-analytics -e GOOGLE_OAUTH_CLIENT_ID=... -e GOOGLE_OAUTH_CLIENT_SECRET=... -- npx -y samarth-gtm-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "samarth-analytics": {
      "command": "npx",
      "args": [
        "-y",
        "samarth-gtm-mcp"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_ID": "...",
        "GOOGLE_OAUTH_CLIENT_SECRET": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Samarth Analytics MCP server do?

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

Is the Samarth Analytics MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does Samarth Analytics run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Samarth Analytics to Claude Code?

Run: claude mcp add samarth-analytics -e GOOGLE_OAUTH_CLIENT_ID=... -e GOOGLE_OAUTH_CLIENT_SECRET=... -- npx -y samarth-gtm-mcp

More marketing MCP servers

View all