Skip to content
MCP server

AgentFirstStack Analytics

Cookieless web analytics an agent sets up and queries, with goals, funnels and SQL

Pricing
Open source
Platforms
API, self-hosted, Web
Runs
Remotely
Version
0.1.1
Listing updated
3 days ago

About AgentFirstStack Analytics

AgentFirstStack Analytics is an open-source MCP server for analytics and data. It runs as a hosted remote server, so there is nothing to install locally.

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.

Install

Run in a terminal

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

Add to Settings → Connectors → Add custom connector

https://analytics.agentfirststack.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "analytics": {
      "url": "https://analytics.agentfirststack.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

What it does

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

Pricing

Open source

Free hosted use; open source and self-hostable

Prices change. Check agentfirststack.com before you buy.

AgentFirstStack Analytics 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 to AgentFirstStack Analytics

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  4. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  5. Calven

    MCP server

    Product marketing context from Calven delivered into Claude, ChatGPT and other AI tools

    Not checked yet
    • Remote
    • Free trial
    • 3 GitHub stars
    • Marketing and SEO
  6. CompanyData

    MCP server

    Search and enrich company records from official registers via the CompanyData API

    • 3 tools
    • Remote
    • Paid
    • 3 GitHub stars
    • Analytics and data