API-first · MCP-native · No dashboard required

Your agents build websites.
They can't read the analytics.

Agent Analytics is the first analytics service your agents can sign up for, install, and query — entirely through API and MCP. No dashboard required.

See it in action

Ask an AI agent to set up analytics, query stats, or onboard a new site — all via MCP tools.

Claude — Agent Analytics MCP
Scroll down to start the demo…

How it works

Three steps. Five minutes. Your agent has analytics.

1

Add the snippet

Drop a single <script> tag onto your site. Under 2KB, no cookies, loads async.

<script src="https://api.statscontext.com/tracker.js"
  data-site-id="YOUR_SITE_ID"
  defer></script>
2

Agents query the API

Your AI agents call the REST API or connect via MCP to get real-time analytics data.

// MCP tool call
{
  "tool": "query_stats",
  "arguments": {
    "site_id": "...",
    "period": "7d",
    "metric": "all"
  }
}
3

See your data

View analytics in the dashboard or let your agent interpret the data and make decisions.

{
  "pageviews": 12847,
  "visitors": 3291,
  "bounce_rate": 42.1,
  "avg_duration": 184000,
  "top_pages": [...]
}

Stop working around dashboards

Every analytics tool was built before agents existed. Agent Analytics is built for code.

Query without wrappers

Full REST API. Every metric in clean JSON. No SDK to install, no report exports, no dashboard scraping.

Agents discover tools natively

Built-in MCP server. Connect once and your agent gets analytics tools automatically — no custom integration.

No cookies, no banner

Monthly-rotating hashes. No cookies, no fingerprinting, no consent banner needed. Visitors can't be tracked across months.

Compliant out of the box

No personal data stored. IP addresses are never saved. Fully GDPR/CCPA compliant without any configuration.

Invisible to your users

Async loading. Zero parsing overhead. One script tag and your site is tracked — nothing else to do.

Global, fast, always on

Cloudflare Workers at 300+ locations. Tracking requests resolve before your users notice.

What agents can do

Agent Analytics gives your AI agents the context they need to make informed decisions.

Content Agent

“Which blog posts have the highest engagement this week?”

Query top pages and average session duration to identify high-performing content, then generate more of what works.
SEO Agent

“Are our referral sources changing after the new campaign?”

Compare referrer data across time periods to measure campaign effectiveness and discover new traffic sources.
DevOps Agent

“Did the latest deploy affect bounce rate or session duration?”

Monitor key metrics before and after deployments to detect performance regressions that impact user experience.
Support Agent

“Which pages are users visiting before submitting tickets?”

Track custom events alongside page analytics to understand user journeys and preemptively address common issues.

How we compare

Every other analytics tool was built before agents existed.

FeatureAgent AnalyticsGoogle AnalyticsPlausibleUmami
Full REST APIYesComplexYesYes
MCP ServerBuilt-inNoNoNo
Agent signup via APIYesNoNoNo
Script size<2KB45KB+<1KB2KB
Self-hostableYesNoYesYes

Get early access

We're launching soon. Drop your email and be the first to know.

Quick start

From zero to analytics in three curl commands.

Terminal
# Sign up and get your API key
curl -X POST https://api.statscontext.com/api/auth/signup \
  -H "Content-Type: application/json" \
  -d '{"email": "agent@example.com"}'

# Register a site
curl -X POST https://api.statscontext.com/api/sites \
  -H "Authorization: Bearer aa_live_..." \
  -H "Content-Type: application/json" \
  -d '{"domain": "example.com", "name": "My Site"}'

# Query analytics
curl "https://api.statscontext.com/api/sites/{id}/stats?period=7d" \
  -H "Authorization: Bearer aa_live_..."

Ready to give your agents analytics?

Set up in under 5 minutes. Be the first to get access.