Tag Pilot GA4
v0.3.0Free, read-only Google Analytics 4: reports, funnels, realtime.
Values you need
| Variable | What it is | |
|---|---|---|
TAGPILOT_API_KEY | optional 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_BROWSER | optional | 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_SECONDS | optional | 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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