Skip to content

MCP server for AI assistants

Connect Claude Code, the Claude app, Cursor or VS Code so your assistant answers questions from your real analytics numbers.

Statsy runs a Model Context Protocol server, so an AI assistant can read your traffic, revenue, funnels and visitors instead of guessing. You approve the connection in the dashboard, and the assistant gets exactly the role you have in the workspace.

The server URL is shown under Site settings › AI & CLI. For the hosted service it is https://statsy.co/mcp. It speaks streamable HTTP and is stateless, so there is nothing to keep running on your machine.

Connect your assistant

Claude Code

bash
claude mcp add --transport http statsy https://statsy.co/mcp

Then run /mcp, choose statsy and sign in. Your browser opens the dashboard to approve access.

Claude app

In Claude on the web or desktop, open Settings › Connectors, choose Add custom connector, paste the server URL, connect, and approve access in the window that opens.

Cursor

~/.cursor/mcp.json
{
  "mcpServers": {
    "statsy": {
      "url": "https://statsy.co/mcp"
    }
  }
}

A project-level .cursor/mcp.json works too. Then open Cursor Settings › MCP and sign in when prompted.

VS Code

.vscode/mcp.json
{
  "servers": {
    "statsy": {
      "type": "http",
      "url": "https://statsy.co/mcp"
    }
  }
}

Start the server from that file and sign in when VS Code asks.

Clients that cannot open a browser

Send an account token in a header instead of signing in.

bash
claude mcp add --transport http statsy https://statsy.co/mcp \
  --header "Authorization: Bearer sta_your_token"

What the assistant can do

ToolPurpose
list_sitesLists the workspace’s sites with id, public key, domain, time zone and currency. Start here.
get_overviewHeadline metrics for a period, optionally compared with the previous one.
get_timeseriesOne metric over time by hour, day, week or month.
get_breakdownTop values of a dimension such as channel, page, country, campaign or keyword.
get_attributionRevenue by channel under a chosen attribution model and lookback.
list_funnelsSaved funnels and their steps.
get_funnelA step-by-step funnel report with drop-off and revenue.
search_visitorsFinds visitors by id, email, name, user id, country, city or path.
get_journeyOne visitor’s full timeline of pageviews, goals, touches and payments.
get_botsBot and AI crawler requests by family, bot name or path.
list_goalsThe goals configured for a site.
create_goalCreates a pageview or event goal. Needs editor or owner.
add_noteAdds a chart annotation, such as a deploy or a launch. Needs editor or owner.

Three ready-made prompts also come with the server: a weekly review, “why did revenue change?” and “which channel to double down on?”.

Permissions and limits

Assistants get the role you have in this workspace. Viewers can read reports only; editors and owners can also create goals and notes. If your trial has ended, the read tools keep working and the write tools refuse. Revoke access any time by removing the connection in your assistant.

Connections are limited to 120 requests a minute. Site tokens (st_) are not accepted here — use an account token or sign in.

Tip. Good first questions: “Which channel brought the most revenue in the last 30 days, and how does that compare with the month before?” or “Why did conversions drop this week? Check channels, pages and countries.”

Last updated · Markdown version