anacraft — Google Analytics 4: MCP Server for Claude Code and More
anacraft — Google Analytics 4 is an MCP server for Claude Code that connects your assistant to Google Analytics 4 and answers questions about traffic, pages, and events.
Apache-2.0 ★ 1 updated 2026-10-24
claude mcp add --transport http google-analytics-ga4 https://app.anacraft.dev/mcpWhat anacraft — Google Analytics 4 does
The server runs on eight platforms: Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, and Gemini CLI. It returns GA4 data through the site_status tool — metrics with units, the previous period, percentage change, daily user series, and fired achievements.
The separate craft CLI does more: a terminal dashboard, one-shot reports (overview, pages, portals, realms, live), and export to JSON for jq or scripts and to Slack Block Kit for webhooks. The --format json and --format slack flags need no subscription because they render a report that craft overview already prints for free.
MCP access requires an active Anacrafter Elite subscription at $9.99/month. Without it or without craft login, the server starts anyway — its tools tell you what is missing, so the client never marks it disconnected. On Claude Code, install with two commands: claude mcp add --transport http google-analytics-ga4 https://app.anacraft.dev/mcp, then the same with the name anacraft-google-analytics-4.
What it helps with
- ask the assistant how much traffic the site got this week
- list the most-visited pages without opening GA4
- see where traffic comes from and which countries lead
- export a report to JSON for a script or jq
- send a weekly digest to Slack from cron
Example prompts for the agent
- How many visitors did the site get in the last 7 days?
- Show the most popular pages for the past month
- Where does the traffic come from and which countries lead?
How to install anacraft — Google Analytics 4
Platform CLI: remote server
claude mcp add --transport http google-analytics-ga4 https://app.anacraft.dev/mcpPlatform CLI: remote server
codex mcp add anacraft-google-analytics-4 --url https://app.anacraft.dev/mcpConfig file
{
"mcpServers": {
"anacraft-google-analytics-4": {
"url": "https://app.anacraft.dev/mcp"
}
}
}Config file
{
"servers": {
"anacraft-google-analytics-4": {
"type": "http",
"url": "https://app.anacraft.dev/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http anacraft-google-analytics-4 https://app.anacraft.dev/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about anacraft — Google Analytics 4
How do I install anacraft — Google Analytics 4 in Claude Code?
Run claude mcp add --transport http google-analytics-ga4 https://app.anacraft.dev/mcp, then claude mcp add --transport http anacraft-google-analytics-4 https://app.anacraft.dev/mcp. The server appears in your Claude Code configuration after that.
What does anacraft — Google Analytics 4 do?
Connects your assistant to your GA4 property so it can answer questions about traffic, pages, events, and traffic sources. Answers come from your own data through the site_status tool.
What do I need before the MCP server works?
You need craft login and an active Anacrafter Elite subscription at $9.99/month. Without them the server starts, but its tools report what is missing instead of returning data.