Anacraft — Google Analytics 4 logo

Anacraft — Google Analytics 4

Query GA4 traffic, pages, events, live users, and site-measurement health through an MCP-connected assistant.

Install Anacraft — Google Analytics 4

Run the project’s own setup commands, in order.

Setup steps from the project

anacraft — Google Analytics 4 installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://anacraft.dev/install.sh | bash
    
  2. 2. Install
    curl -fsSL https://anacraft.dev/install.sh | INSTALL_DIR=~/bin bash
    
  3. 3. Install
    cargo install --git https://github.com/mehfuzh/anacraft
    
  4. 4. Sign in
    craft login        # OAuth sign-in
    
  5. 5. Add to your MCP client
    craft mcp --install           # write Claude Desktop and Smartloop configs
    
  6. 6. Add to your MCP client
    craft mcp --install --demo    # ...pointed at synthetic data instead
    

Overview

anacraft — Google Analytics 4 connects an MCP-capable assistant to a Google Analytics 4 property and lets you ask about site performance using your own data. Its CLI handles OAuth sign-in, property selection, terminal dashboards, one-shot reports, and measurement audits; the MCP entry point is `craft mcp`. Reach for it when an agent needs GA4 reporting or when you need to check whether tags, events, key events, and revenue data are configured correctly. Synthetic demo mode lets the dashboard and MCP server start without a Google account.

Use cases

  • Ask an assistant for GA4 traffic and engagement summaries
  • Inspect the most visited pages and traffic sources
  • Monitor current visitors and recent site activity
  • Audit event, key-event, and revenue measurement configuration
  • Export overview reports as JSON or Slack payloads

Key features

  • MCP access to Google Analytics 4 property data
  • Terminal dashboards and one-shot GA4 reports
  • Measurement and configuration auditing
  • JSON and Slack report output
  • Synthetic demo mode
  • Claude Desktop configuration installation

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 53d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit8d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Anacraft — Google Analytics 4 works

What anacraft — Google Analytics 4 does

Google Analytics 4 reporting is exposed to an MCP client through the craft mcp command. After authentication and property selection, an assistant can answer questions about site performance using the selected property’s data. The command-line interface also provides terminal dashboards and reports for overview metrics, pages, traffic sources, countries, and current visitors.

The server is paired with an auditing workflow that examines both measurement data and Analytics configuration. Its checks cover missing data, absent web data streams, key-event setup, purchase values, enhanced measurement, and other conditions that can make reports incomplete or misleading. The audit can also apply fixes that GA4 supports when run with --fix.

How it works

Run craft login to complete Google OAuth, use craft props to see properties the account can read, and save a default with craft use <id>. The MCP process then reads from that property when launched by an assistant. A property can also be selected per command with --property <id>.

craft mcp --demo uses synthetic data and does not require a Google account or subscription. Without a saved property, the regular dashboard likewise starts with synthetic data. For Claude Desktop, craft mcp --install writes the MCP configuration and leaves other configured servers intact; restart the client after installation.

Setup and configuration

On macOS or Linux, the installer places the executable in /usr/local/bin when writable, or ~/.local/bin otherwise. Set INSTALL_DIR to choose another location. Source installation is available with Cargo, and released binaries can be downloaded manually and placed on PATH.

The basic setup is:

  1. Install the anacraft executable.
  2. Run craft login.
  3. List accessible properties with craft props.
  4. Save one using craft use <id>.
  5. Start the MCP process with craft mcp, or install its Claude Desktop configuration with craft mcp --install.

The MCP workflow requires a completed login and an active subscription. If either is absent, the process still starts and reports the missing requirement through its tools rather than appearing disconnected. Demo mode avoids both requirements.

Tools and capabilities

  • Query GA4 site-status metrics through the site_status MCP tool.
  • View headline metrics, period changes, daily user data, and triggered achievements.
  • Report popular pages, referring traffic sources, countries, and current visitors.
  • Audit GA4 measurement and configuration over a selected date range.
  • Return overview and audit results as JSON for scripts or Slack Block Kit payloads for webhooks.
  • Run reports against synthetic data with demo options.

Limitations and notes

The MCP server reads the property selected in the CLI unless another property is supplied for a command. GA4 date ranges are resolved in the property’s timezone, so returned report boundaries may differ from the local machine’s dates.

The audit compares the Data API with the Admin API because event collection and Analytics configuration can fail independently. Event names are case-sensitive, and missing purchase values can make revenue-related figures zero. The hosted dashboard and local craft serve workflow are associated with Anacrafter subscription plans; the MCP command requires an active subscription, while demo mode is available without one.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Anacraft — Google Analytics 4

anacraft — Google Analytics 4 is an MCP server that connects an assistant to a Google Analytics 4 property. Its main reporting tool, `site_status`, returns labelled site metrics, period comparisons, daily user data, and achievements; the surrounding CLI also supports pages, traffic sources, countries, live visitors, and measurement audits.

Install it with the macOS/Linux shell installer, Cargo, or a released binary, then run `craft login`, `craft props`, and `craft use <id>`. Start the MCP process with `craft mcp`; for Claude Desktop, `craft mcp --install` writes the client configuration.

Yes. Run `craft mcp --install` after signing in and selecting a property, then restart Claude Desktop. The command adds an `anacraft` MCP entry without removing other servers. An active subscription is required unless you use `craft mcp --demo`.

Run `craft login` for Google OAuth, list accessible properties with `craft props`, and save the target with `craft use <id>`. The saved property becomes the default for the dashboard, reports, audit commands, and MCP queries.

Yes. Use `craft mcp --demo` for synthetic MCP data, or run the dashboard and reporting demo commands. Demo mode creates nothing, requires no Google account, and does not need a subscription.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAnacraft — Google Analytics 4 AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/anacraft-google-analytics-4?style=directory)](https://allmcps.com/mcp/anacraft-google-analytics-4)
HTML Embed
<a href="https://allmcps.com/mcp/anacraft-google-analytics-4"><img src="https://allmcps.com/api/badge/anacraft-google-analytics-4?style=directory" alt="Anacraft — Google Analytics 4 on AllMCPs" /></a>