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 theAuthorization header:
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:api_<your-cloud-api-key> with the API key you created in Settings → API keys.
stdio-only clients
If your MCP client only supports localstdio servers (not remote HTTPS connections), run the @umami/mcp package via npx and configure it with your API key as an environment variable:
Available tools
The MCP server exposes the following read-only tools. Calllist_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?