https://crispstats.com/api/mcp. Add it to your AI client with a secret API key that has only the Read scope, and the assistant can answer questions from the same reports as the dashboard, give a coding agent the exact install code for your project and check that the install works. It cannot change anything.
The server uses the Streamable HTTP transport and authenticates with an Authorization: Bearer cs_sk_… header.
Connect from the dashboard
1
Open the connect screen
Open the site’s Settings, Tracking code and scroll to Connect an AI assistant.
2
Create a read-only key
Owners and admins select Create read-only key. It has only the Read scope and reads only the current site. It is shown once and fills in every setup below it. To cover every site instead, create a key under API keys on the workspace page with Read checked and Every site in your workspace.
3
Add the server to your client
Pick your client. Copy the command or config with its copy button, or use Add to Cursor. The setups are the same as on this page.
Each client
Replacecs_sk_your_read_key with your key. Where a client can read the key from an environment variable, the config does, so the key never sits in a file you might commit.
- Claude Code
- claude.ai
- Cursor
- VS Code
- Codex
- Windsurf
Run once in a terminal. Run
--scope user makes the server available in every project:claude mcp list: crispstats shows as connected. In a session, /mcp lists its tools, and the prompts appear as slash commands such as /mcp__crispstats__install_crispstats.For a project’s shared .mcp.json, read the key from the environment instead:.mcp.json
Check the connection with curl
To confirm the key works before you configure a client, calllist_sites directly:
structuredContent.sites lists the sites the key can read, with each site’s id, name, domain, timezone, currency, createdAt and installed.
Example prompts
- “Which sources brought the most revenue in the last 30 days?”
- “Compare this week’s visitors with last week’s and tell me what changed.”
- “Which landing pages do ChatGPT and Perplexity send people to?”
- “Where do people drop off in my signup funnel?”
- “Which pages have the worst LCP on mobile?”
- “Install CrispStats in this project, then check that events arrive.”
- “Wire the CrispStats visitor id into our Stripe checkout.”
install_crispstats, connect_payments and explain_last_week. Clients show them as slash commands or in a prompt menu. See install with an AI agent for the install flow.
What the assistant can do
Every tool is read-only. Each one exceptlist_sites takes an optional site id, which can be left out when the key can read exactly one site.
Money is integer minor units in the stated currency, rates are numbers from 0 to 1 and durations are seconds. The MCP reference documents every tool’s inputs and the error codes.
Limits and errors
- Rate limits. MCP requests count against the same limits as the REST API: your plan’s daily API requests per key, a workspace ceiling of five times that across all keys, plus a burst limit of 20 requests in 10 seconds. Each request in a POST counts once, including
initializeandtools/list; a batch may hold at most 20 requests. See rate limits. MCP requests do not use Ask AI messages. - Bad or revoked key. HTTP
401with JSON-RPC error code-32001. Create a new key under API keys on the workspace page. - Key without the Read scope. HTTP
403, also with code-32001. - Over a rate limit. HTTP
429with code-32002and aRetry-Afterheader. - A tool fails, for example on an invalid
range. The tool result hasisError: trueand a message the assistant can read and correct.
Authorization header the server only reads the public demo site, demo, under a lower limit of 500 requests a day and 10 in 10 seconds. If list_sites returns only that site, your client is not sending the header.
Learn more on crispstats.com
Next steps
Install with an AI agent
One prompt for the whole install.
MCP reference
Transport, tools, prompts and error codes.
API keys
Create, limit, revoke and delete secret keys.