# AgentFirstStack Analytics MCP server

> Enables AI agents to set up and manage a complete go-to-market stack including cookieless analytics, tag management, email inboxes, and session replays.

- Repository: https://github.com/StartGlobal-AI/agentfirststack
- Page: https://hostedmcp.org/servers/startglobal-ai/agentfirststack
- Transport: remote
- Stars: 1
- License: AGPL-3.0
- Latest version: 0.1.1

## Install

### Claude Code

```sh
claude mcp add --transport http agentfirststack https://analytics.agentfirststack.com/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "agentfirststack": {
      "url": "https://analytics.agentfirststack.com/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "agentfirststack": {
      "type": "http",
      "url": "https://analytics.agentfirststack.com/mcp"
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.agentfirststack]
url = "https://analytics.agentfirststack.com/mcp"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "agentfirststack": {
      "httpUrl": "https://analytics.agentfirststack.com/mcp"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CLOUDFLARE_API_TOKEN` | no | no |  |

## FAQ

### Can I host this myself?

Yes, the entire stack can be self-hosted running on Cloudflare Workers in your own account.

### Does it support existing analytics data?

Yes, you can import history from GA4, Plausible, or other tools, and the system includes a check to ensure the numbers match.

### What kind of authentication does it use?

The system uses API keys for agent access and supports Google OAuth for human users to access the dashboard.
