Lab 2026
Google Analytics MCP (Node.js)
Google's GA4 MCP server, rebuilt for remote agents.
Google's official GA4 MCP server runs locally over stdio. This rewrite runs remotely on Cloud Run behind IAM, so any MCP client or hosted agent can query GA4, and it's shaped for agents: compact typed results, field search and errors that say how to fix the call.
What's hard about it
- Measured against the official server (v0.7.0) on the same reports: first call 703 vs 3,036 ms, warm median 376 vs 1,147 ms, responses 44% smaller with identical values.
- Adds field search and a pre-flight compatibility check so agents stop guessing dimension names; with its Agent Skill, a test agent made 62% fewer tool calls at 28% lower cost.
- Typed, validated inputs and structured output on all 11 tools, GA errors mapped to actionable hints, and upstream realtime and funnel bugs fixed.
- Distroless non-root image, one-command Cloud Run deploy behind IAM and keyless GitHub Actions CI/CD.