Umami MCP Server

Security-first MCP server for Umami analytics (Cloud + self-hosted): set up, analyze, report, and manage your instance from any MCP client.

Remote serverstreamable-httpGo

What is the Umami MCP server?

Security-first MCP server for Umami analytics (Cloud + self-hosted): set up, analyze, report, and manage your instance from any MCP client. That is what the umami mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

…with credentials supplied via environment variables. For Umami Cloud, create an API key at Dashboard → Settings → API keys and set UMAMI_API_KEY. For self-hosted, set UMAMI_API_URL + UMAMI_USERNAME + UMAMI_PASSWORD. See MCP client setup for copy-paste configs.

The tools it exposes

The server publishes 14 tools. What each one is for:

  • Variable — Mode
  • UMAMI_API_KEY — Cloud
  • UMAMI_CLOUD_REGION — Cloud
  • UMAMI_API_URL — self-hosted
  • UMAMI_TEAM_ID — both
  • UMAMI_DEFAULT_TIMEZONE — both
  • UMAMI_ENABLE_WRITE — both
  • UMAMI_ENABLE_ADMIN — both
  • UMAMI_ALLOW_DESTRUCTIVE — both
  • MCP_AUTH_TOKEN — remote
  • Tier — Enable with
  • read(always on)

Getting it running

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

What it needs from you

Configuration is passed through the environment: UMAMI_API_KEY, UMAMI_API_URL, UMAMI_USERNAME, UMAMI_PASSWORD, UMAMI_ENABLE_WRITE, UMAMI_CLOUD_REGION, UMAMI_TEAM_ID, MCP_AUTH_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Umami's toolset — Variable, UMAMI_API_KEY, UMAMI_CLOUD_REGION and 11 more — is a fair guide to whether it matches your workflow. It is maintained by msiatrak; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Umami.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
VariableMode
UMAMI_API_KEYCloud
UMAMI_CLOUD_REGIONCloud
UMAMI_API_URLself-hosted
UMAMI_TEAM_IDboth
UMAMI_DEFAULT_TIMEZONEboth
UMAMI_ENABLE_WRITEboth
UMAMI_ENABLE_ADMINboth
UMAMI_ALLOW_DESTRUCTIVEboth
MCP_AUTH_TOKENremote
TierEnable with
read_(always on)_
writeUMAMI_ENABLE_WRITE=1
adminUMAMI_ENABLE_ADMIN=1 _(self-hosted)_

How to install the Umami MCP server

{
  "mcpServers": {
    "umami": {
      "command": "npx",
      "args": ["-y", "umami-analytics-mcp"],
      "env": {
        "UMAMI_API_KEY": "your_cloud_api_key"
        // self-hosted instead:
        // "UMAMI_API_URL": "https://stats.example.com",
        // "UMAMI_USERNAME": "admin",
        // "UMAMI_PASSWORD": "••••••",
        // opt into writes:
        // "UMAMI_ENABLE_WRITE": "1"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
UMAMI_API_KEYCredential the server authenticates with.Yes
UMAMI_API_URLEndpoint or connection string the server talks to.Yes
UMAMI_USERNAMEConfiguration value read at startup.Optional
UMAMI_PASSWORDConfiguration value read at startup.Optional
UMAMI_ENABLE_WRITEConfiguration value read at startup.Optional
UMAMI_CLOUD_REGIONConfiguration value read at startup.Optional
UMAMI_TEAM_IDConfiguration value read at startup.Optional
MCP_AUTH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Umami to Variable.
  • Use Umami to UMAMI API KEY.
  • Use Umami to UMAMI CLOUD REGION.

Frequently asked questions

It connects Umami to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Variable, UMAMI_API_KEY, UMAMI_CLOUD_REGION, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Umami directly.