MCP: Ask your AI agent about your traffic, errors and uptime
Betterlytics has MCP built in. Ask Claude, Cursor or Codex about your site and get answers from your real numbers, in the chat, editor or terminal you already use. Free on every plan.
Illustrative sessions with sample data.
You: Signups dropped yesterday afternoon. What happened?
Claude:
Your checkout service went down for 19 minutes, and signups fell with it.
- Checkout timed out from 14:02 to 14:21.
- The signup form posts to checkout.acme.com, so 211 attempts failed with “Failed to fetch”, across 164 visits.
- Signups were back to normal by 15:00.
A retry on the signup request would have caught most of these. Want me to draft one?
1connection
From funnels to stack tracesTraffic, journeys, funnels, errors, uptime and status pages all answer through the same connection.
Freeon every plan
No add-on to buyThe free plan includes it too, and nothing your agent looks up counts toward your monthly event limit.
0cookies
Nothing personal to hand overBetterlytics stores no cookies or IP addresses, so your agent only sees personal data if your own site sends it.
One question can cover your whole site
Your agent can check traffic, errors, uptime and your status page before it answers. Pick an example question to see which tools it calls.
Your agent
Featured
- Give me a morning check on traffic, errors, uptime and our status page.
- We launched on Product Hunt today. How's it going?
- Signups dropped yesterday afternoon. What happened?
- People say picking a plan on /pricing does nothing. Why?
- Did the 15:30 deploy break anything?
- Checkout is down. Is it costing us signups, and have we posted an incident?
Web analytics
- What can you look up in Betterlytics?
- Which of our sites can you see?
- Which pages got the most visitors from Hacker News this week?
- Which landing pages have the highest bounce rate this month?
- Where do visitors go after the pricing page?
- How many people who start signing up actually finish?
- Which step of our onboarding funnel loses the most people?
- Is variant B of the homepage getting more signups?
Error tracking
- Which errors only happen on Safari?
- What did the visitor do right before the latest TypeError?
Uptime monitoring
- Is everything up, and do any SSL certificates expire soon?
- How long was each outage this week, and why?
Status pages
- What does our status page tell visitors right now?
- Did we forget to post an incident for a recent outage?
Betterlytics MCP
betterlytics.io/api/mcp
Web analytics
Error tracking
Uptime monitoring
Status pages
Add it to the client you already use
Create a token in your Betterlytics settings, paste one snippet into your client and start asking. In VS Code it's a single click.
Any remote MCP client that accepts a token works too.
Add this to your project.
{
"servers": {
"betterlytics": {
"type": "http",
"url": "https://betterlytics.io/api/mcp",
"headers": { "Authorization": "Bearer btl_your_token_here" }
}
}
}Reads only
All 14 tools only read. Your agent can't change settings, delete data or post incidents.
You choose what it sees
Each token covers one site, so your agent only sees the sites you choose.
Yours to revoke
Revoke a token any time and its access ends at once. Or set it to expire on its own.
Frequently asked questions
What is MCP?
MCP, the Model Context Protocol, is an open standard that lets AI agents call tools in other apps. With Betterlytics MCP, agents like Claude, Cursor and Codex can read your traffic, errors, uptime and status pages, so they answer with your real numbers.
Does MCP cost extra?
No. It's on every plan, including the free one, and nothing your agent looks up counts toward your monthly event limit.
Which AI clients work with it?
The setup guide has steps for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Antigravity and Codex. Any other client works too if it can connect to a remote MCP server with an API token.
What can my agent see?
Nearly everything on the site you connect: traffic, sessions, events, funnels, journeys, global properties, errors with their stack traces and session trails, monitors, incidents and status pages.
Does my data go to the AI provider?
What your agent reads goes into its conversation, so it's handled by the model and client you use, under their terms. Betterlytics sets no cookies and stores no IP addresses, so answers only point to a person if your own site sends identifying data.
Can I connect more than one site?
Yes. Each token covers one site, so create one for each and add them to your client under their own names, like betterlytics-shop and betterlytics-blog.
How do I take access away?
Delete the token in Betterlytics and your agent loses access right away. Tokens can also expire on their own after 30, 90 or 180 days.
Do I need to know how the data is stored?
No. Your agent looks up the metrics, filters and time ranges it can use, picks the right tools and queries your data. You just ask in your own words.
Ask your first question today
Sign up, add the script to your site and connect your agent. Free on every plan.