Tag Pilot GA4

v0.3.0
io.github.tagpilot/ga4-mcp Checked 3 hours ago Published 1 month ago

Free, read-only Google Analytics 4: reports, funnels, realtime.

Values you need

VariableWhat it is
TAGPILOT_API_KEYoptional secret Optional. Leave unset: the first GA4 question connects this device to your free Tag Pilot account in the browser. Set a ga4:mcp key (tpk_…) only for CI or headless setups.
GA4_MCP_NO_BROWSERoptional Set to 1 to only return the Google sign-in link (open it in any browser) instead of opening a browser.
GA4_MCP_AUTH_WAIT_SECONDSoptional How long a tool call waits for the browser sign-in before returning the link. Default: 45

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add ga4-mcp -- npx -y @tagpilot/ga4-mcp@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ga4-mcp": {
      "args": [
        "-y",
        "@tagpilot/ga4-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ga4-mcp": {
      "args": [
        "-y",
        "@tagpilot/ga4-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "ga4-mcp": {
      "args": [
        "-y",
        "@tagpilot/ga4-mcp@0.3.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ga4-mcp]
command = "npx"
args = ["-y", "@tagpilot/ga4-mcp@0.3.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: get_account_summaries, get_property_details, list_google_ads_links, list_property_annotations, get_custom_dimensions_and_metrics, run_report, run_realtime_report, run_funnel_report, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json