Skip to main content
The Betterumami Model Context Protocol (MCP) integration bridges your analytics data and the AI tools you already use. Once connected, you can ask questions like “What were my top pages last week?” or “How did traffic change after the product launch?” and receive accurate answers drawn directly from your real analytics — no SQL, no API calls, no exporting CSVs. The MCP server is read-only and respects the same website and team permissions as the dashboard, so your data stays safe regardless of which AI tool is querying it.

How it works

Betterumami exposes a remote MCP server that AI clients can connect to over HTTPS. When you ask your AI assistant an analytics question, the MCP server translates that request into the appropriate Cloud API calls, fetches your data, and returns the result to the AI in a format it can reason about. Because all tools are read-only and permission-scoped, an AI tool can only access websites and teams your API key is authorized to see.

Connect to the MCP server

Endpoint

Authentication

Authenticate using an API key. Pass it in the Authorization header:
Clients that support custom request headers can alternatively use the x-umami-api-key header. If you provide both headers, they must contain the same key.
The same subscription requirements and rate limits that apply to the Cloud API (50 calls per 15 seconds per key) also apply to the MCP server.

Client setup

Claude Desktop and Cursor (remote server)

Most modern MCP clients — including Claude Desktop and Cursor — support remote server URLs with custom headers. Add the following to your MCP client configuration file:
Replace api_<your-cloud-api-key> with the API key you created in Settings → API keys.

stdio-only clients

If your MCP client only supports local stdio servers (not remote HTTPS connections), run the @umami/mcp package via npx and configure it with your API key as an environment variable:
If you are unsure which approach your client supports, try the remote server configuration first — it is simpler and does not require Node.js to be installed locally.

Available tools

The MCP server exposes the following read-only tools. Call list_websites first to retrieve the websiteId values you will need for subsequent queries. All dates use ISO 8601 format. Paginated results have a hard cap on page size per request.

Example prompts

Once your AI client is connected, try prompts like these:
  • Show my websites.
  • How many visitors did my site get last week?
  • What were the top 10 pages this month?
  • Compare traffic this month with the previous month.
  • Where is my traffic coming from?
  • What signup events happened yesterday?
  • Run my checkout funnel for last month.
  • How are we doing against our goals this quarter?
  • Which pages have the worst LCP on mobile?
  • What happened on the day traffic spiked?

Revoke access

MCP access is tied directly to the API key you configured. To disconnect an AI tool from your analytics, delete the key under Settings → API keys. The AI tool loses access immediately.