Query Umami Analytics v3 β stats, funnels, retention, attribution, UTM. Read-only by default.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol server for Umami Analytics. Ask Claude, Cursor or any MCP client about your traffic β and let it create and manage websites β while your credentials stay on your own machine.

A throwaway site with generated traffic, on a live Umami 3.3.1 instance, read by a
view-only service account β so the counts are small and mean nothing, but every one of them was
really collected and really queried. Regenerate with vhs demo/demo.tape.
Umami has no official MCP server. Several community ones exist, and if you just want broad API
coverage you should look at 0xtlt/umami-mcp first β it
wraps more of the API than this does. Some of the older servers
(jakeyShakey,
mikusnuz,
mittwald,
Macawls) were written against the v2 API and
break on a modern instance, because v3 renamed things without aliases:
| Umami v2 | Umami v3 | |
|---|---|---|
| Top pages | /metrics?type=url | /metrics?type=path |
| Hostnames | /metrics?type=host | /metrics?type=hostname |
| UTM data | /metrics?type=utm_source | POST /api/reports/utm |
| Funnels, retention, journeys, attribution, revenue | β | POST /api/reports/* |
This server exists for two things the others do not do:
1. Complete, verified v3 report coverage. All seven v3 report types β funnel, retention,
journey, goal, revenue, attribution and UTM β were exercised against a live Umami 3.3.1
instance. The report envelope is easy to get wrong: dates go in parameters as ISO-8601 strings,
not in filters, and not as the epoch milliseconds the rest of the API uses. Attribution takes
first-click / last-click, not the camelCase spellings you would guess.
2. A capability model rather than a boolean. See below.
An analytics MCP server holds a credential that can read every visitor session you have ever recorded β and, if you let it, delete the lot. The design follows from that.
Your credentials never leave your environment. Configuration is read only from the process
environment. There is no telemetry, no phone-home, and no hosted relay. The only host this
server ever contacts is the UMAMI_URL you set. If you self-host it, nothing about your
analytics ever reaches a third party β including the author of this software.
Be wary of any Umami MCP that offers a hosted endpoint you point at your instance. Self-hosted Umami has no API keys, so "convenient" hosting means mailing your admin password to someone else's server.
Least privilege by default. The server starts in read mode. Widening is a deliberate act:
| Mode | Adds |
|---|---|
read (default) | Analytics, reports, listing websites |
write | Create and update websites and teams |
admin | User management |
+ UMAMI_MCP_ALLOW_DESTRUCTIVE=true | Delete website, reset data, delete user |
Withheld tools are not registered at all, so they never appear in the model's tool list.
This is the part that differs from a READONLY=true flag: a tool that was never advertised
cannot be invoked by a prompt-injected instruction hidden in, say, a referrer string or a page
title inside your own analytics data. There is no runtime check to forget or bypass, because
there is no tool.
Destructive actions need a typed confirmation checked against reality. umami_delete_website
takes a confirmDomain argument, fetches the live record, and refuses unless they match. A model
that reaches for the wrong website UUID gets an error, not a wiped dataset.
Credentials stay out of client config. Rather than requiring your password inside
~/.claude.json or mcp.json, the server reads it from a file you control at
~/.config/umami-mcp/env, and warns if that file is readable by other users. See
Credentials.
Secrets are scrubbed from output. MCP output flows into a model and often into a chat transcript, which cannot be un-said. Passwords, bearer tokens and JWTs are redacted from every error and response before they leave the process.
Refuses to leak credentials over the wire. Plaintext HTTP to a remote host is rejected at
startup; it is permitted only for localhost, for local development.
Three ways to run it. Self-hosting is the default and the recommended one β the hosted instance exists so you can try it in two minutes without cloning anything.
| Runs where | Credentials live | Best for | |
|---|---|---|---|
| Hosted | asif.dev | Sealed in your token, never stored | Trying it out; Claude web and Cowork |
| Source | Your machine | A file only you can read | Daily use in Claude Code |
| Docker | Your server | Your .env | Teams, always-on |
If you self-host and want it in Claude web, run it with UMAMI_MCP_OAUTH=true behind your own
domain β then nothing of yours touches anyone else's infrastructure.
Add a custom connector in Claude pointing at:
You will be asked for your own Umami URL and login on a consent screen. See Claude web, Cowork, and Claude Code on web for how the credentials are handled.
Then set up credentials and register it with your client:
Requires Node 20 or newer.
npm: not published yet. Once it is,
npx -y @asif2bd/umami-mcpwill replace the clone-and-build step above. Until then use source or Docker.
Self-hosted Umami has no API keys, so the credential this server holds is a real account
password. MCP clients normally want that embedded in their config JSON β ~/.claude.json,
mcp.json and friends β which are widely readable, get pasted into issues and screen-shares, and
are synced between machines by some clients.
So this server reads credentials from a file you control instead. Create it once:
The server loads it automatically. It warns on startup if the file is readable by other users.
Lookup order β the first file found wins, and real environment variables always override the file, so you can still pass settings from the client config when you want to:
$UMAMI_MCP_ENV_FILE, if set~/.config/umami-mcp/env (or $XDG_CONFIG_HOME/umami-mcp/env)./.env in the working directoryWith the credentials file above, the registration carries no secrets at all:
Use the absolute path to your checkout. If your Node lives under nvm, give the full interpreter path too, since MCP clients do not load your shell profile:
If you would rather keep everything in one place, environment variables still work and take precedence over the file:
Ask your client to run umami_whoami. It reports the instance, the account, and the permission
mode β the fastest way to confirm the connection and see how much the server is allowed to do:
Then try: "List my Umami websites", or "What were my top pages last week?"
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/umami-mcp)<a href="https://allmcps.com/mcp/umami-mcp"><img src="https://allmcps.com/api/badge/umami-mcp?style=directory" alt="Umami MCP on AllMCPs" /></a>