# anacraft — Google Analytics 4 [Health: Active]

**Category:** 🎯 Marketing  
**Repository:** https://github.com/anacrafterdev/anacraft  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/anacraft-google-analytics-4

## Description
Ask your Google Analytics 4 property how the site is doing: traffic, pages, events, audit.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/anacrafterdev/anacraft), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://anacraft.dev/install.sh | bash
```

2. Install:

```sh
curl -fsSL https://anacraft.dev/install.sh | INSTALL_DIR=~/bin bash
```

3. Install:

```sh
cargo install --git https://github.com/mehfuzh/anacraft
```

4. Sign in:

```sh
craft login        # OAuth sign-in
```

5. Add to your MCP client:

```sh
craft mcp --install           # write Claude Desktop and Smartloop configs
```

6. Add to your MCP client:

```sh
craft mcp --install --demo    # ...pointed at synthetic data instead
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/anacraft-google-analytics-4/readme_

