Skip to content

Black Friday30% off Plus and Business for your first 12 months. Ends Dec 4. See pricing →

Betterlytics

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.

Signup drop on Nov 5

You: Signups dropped yesterday afternoon. What happened?

Claude:

Your checkout service went down for 19 minutes, and signups fell with it.

Bar chart of signups per hour from 10:00 to 18:00: 431 to 524 every hour except 14:00, with 343 signups and 164 that failed while checkout was down.
  • 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 traces

Traffic, journeys, funnels, errors, uptime and status pages all answer through the same connection.

Freeon every plan

No add-on to buy

The free plan includes it too, and nothing your agent looks up counts toward your monthly event limit.

0cookies

Nothing personal to hand over

Betterlytics 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

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.

.vscode/mcp.json
{
  "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.