# AgentFirstStack Analytics

> AgentFirstStack Analytics is an open-source MCP server for analytics and data. Cookieless web analytics an agent sets up and queries, with goals, funnels and SQL. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, self-hosted, Web
- **Website:** https://agentfirststack.com/mcp
- **Repository:** https://github.com/startglobal-ai/agentfirststack
- **MCP Registry name:** com.agentfirststack/analytics
- **Categories:** analytics and data, marketing and SEO
- **Listing updated:** 2026-11-14

## About

Analytics is one of four services in AgentFirstStack, and this endpoint exposes it on its own at analytics.agentfirststack.com. The design assumption is that a coding agent, not a person, does the setup: one signup request returns a key, and each service publishes an llms.txt listing every endpoint, tool and field.

The analytics service tracks countries, regions and cities from Cloudflare's edge, channels including AI assistants, UTM and ad click ids, goals, funnels, paths and attribution, plus a realtime stream. It can read revenue, subscriptions and MRR from Stripe, Polar, Paddle or LemonSqueezy, handle ad spend and ROAS, report AI crawler visits and Core Web Vitals, and import history from GA4 or Plausible with a check that numbers match. Queries can be read-only SQL.

Scripts can load from your own domain through a CNAME or path proxy so ad blockers do not drop visitors. The project is open source, free hosted, and can be self-hosted on Cloudflare Workers.

## Features

- **Agent-run setup:** One request creates an account usable across services.
- **Goals and funnels:** Defines conversions, funnels, paths and attribution.
- **Revenue sources:** Reads Stripe, Polar, Paddle or LemonSqueezy data.
- **AI search report:** Shows AI crawler visits and assistant referrals.
- **History import:** Brings in GA4 or Plausible data and verifies totals.
- **Read-only SQL:** Query events directly.

## Good for

- Have a coding agent install analytics on a new site
- Check which AI assistants send visitors
- Compare ad spend with revenue
- Move off GA4 or Plausible with a number check

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://analytics.agentfirststack.com/mcp
```

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

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

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

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### Does it use cookies?

No, it is described as cookieless.

### Can I self-host it?

Yes, on Cloudflare Workers in your own account.

### How do ad blockers affect it?

Scripts can be served from your own domain to avoid being dropped.

### What tracks revenue?

Stripe, Polar, Paddle and LemonSqueezy integrations.

### Is AgentFirstStack Analytics free?

Yes. AgentFirstStack Analytics is open source, so you can use and self-host it for free.

### How do I add AgentFirstStack Analytics to Claude Code?

Run this command in your terminal: claude mcp add --transport http analytics https://analytics.agentfirststack.com/mcp

### What are the best alternatives to AgentFirstStack Analytics?

The closest alternatives to AgentFirstStack Analytics are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and Calven.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Calven](https://ai-powered.com/mcp/calven): Calven is an MCP server for marketing and seo.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [MCP](https://ai-powered.com/mcp/mcp-mwhffe53): MCP is a freemium MCP server for marketing and seo.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.

---
Source: https://ai-powered.com/mcp/agentfirststack-analytics
