
Umami
io.github.mikusnuzPublished by GitHub account mikusnuzv2.1.1Updated Nov 3, 2026
MCP server for Umami Analytics v3 — analytics, boards, links, pixels, reports, replay, and more
Overview
MCP server for the Umami Analytics v3 API that lets an assistant query website analytics, run reports, and manage Umami resources on self-hosted or Cloud…
- What you can do
- Query analytics: stats, pageviews, metrics, events, sessions, event series, realtime, and revenue data
- Manage websites: list, create, update, reset, transfer, and configure replay
- Run and manage reports: saved-report CRUD plus attribution, funnel, goal, heatmap, journey, retention, revenue, and UTM reports
- Manage boards, links, pixels, segments, cohorts, annotations, shares, and CSV ZIP exports
- Send collection data: events, pageviews, identify, performance, raw batches, heartbeats, link and pixel events
- Administer users, teams, and two-factor login, including completing a 2FA challenge
- When to use it
- Useful when you want an assistant to answer questions about traffic and engagement on an Umami site, build or run analytics reports, or manage Umami websites, boards, links, and segments without leaving the chat. Also fits teams that need to push event or pageview data into Umami from an assistant workflow.
- Requirements
- Runs locally via npm package @mikusnuz/umami-mcp with Node.js 20 or newer. Needs an Umami v3.3-compatible self-hosted instance (3.4+ for API keys, session-property segments, annotations) or Umami Cloud. Credentials: UMAMI_API_KEY, or UMAMI_URL with UMAMI_USERNAME and UMAMI_PASSWORD for self-hosted login. Optional UMAMI_MODE and UMAMI_COLLECTOR_URL. Network access to the Umami instance.
Installation
In SourceWeft
- Open Umami in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
English | 한국어
umami-mcp
Model Context Protocol server for the Umami Analytics v3 API. It supports self-hosted username/password or API-key authentication and Umami Cloud API keys, and exposes analytics, collection, administration, and v3 feature families such as boards, links, pixels, segments, session replay, shares, exports, performance, and revenue.
This version intentionally does not claim every private Umami route. Its tools track the documented API, including Umami 3.4 API-key authentication. Report tools use the legacy report contracts that Umami 3.4 continues to support.
Requirements
- Node.js 20 or newer, matching the MCP SDK's installed runtime dependencies
- Umami v3.3-compatible self-hosted instance (3.4+ for API keys, session-property segments and annotations), or Umami Cloud with the corresponding routes enabled
Installation
Or run it directly:
Configuration
Self-hosted
UMAMI_URL is the instance origin. A trailing /api is accepted, but is not
required.
On Umami 3.4+, create an API key under Settings → API keys and replace
UMAMI_USERNAME and UMAMI_PASSWORD with UMAMI_API_KEY. Set
UMAMI_MODE to self-hosted to select the deployment mode explicitly.
Umami Cloud
Cloud management calls default to https://api.umami.is/v1; tool paths are
translated from self-hosted /api/... paths to Cloud /v1/... paths. Set
UMAMI_URL to https://api.umami.is/v1/us or
https://api.umami.is/v1/eu when an explicit Cloud region is required.
For a Cloud API proxy on another hostname, also set UMAMI_MODE to cloud.
Environment variables
For Cloud, the collector defaults to https://cloud.umami.is. For self-hosted
Umami it defaults to UMAMI_URL.
An API key without UMAMI_URL, or a URL on api.umami.is, selects Cloud.
Any other configured URL selects self-hosted mode, even when using an API key.
Authentication and public routes
Management and analytics tools send a bearer token. The client logs in to a self-hosted instance lazily and caches the returned JWT when using a password. API keys are sent directly as the bearer credential on both deployment types.
The public collection routes do not require credentials:
send_event,send_identify,send_performancebatch_events(raw JSON array, up to 500 items)heartbeat,get_share,get_recorder_config
If self-hosted login reports that two-factor authentication is required, call
complete_two_factor_login with a current TOTP or backup code, then retry the
original tool. Setup and policy tools are also exposed for self-hosted Umami.
Umami Cloud does not expose /me/password, /users, or /users/* through an
API key. Those tools are for self-hosted instances.
Tool groups
Use MCP tools/list for the complete, machine-readable list and schemas.
Important v3 contract details
- A pageview is sent as
{ "type": "event" }with no eventname; the oldpageviewtype is no longer valid. /api/batchreceives the event objects as a raw array, not{ "events": [...] }. The tool returns Umami'sprocessed,errors, and per-itemdetailsfields and marks partial failures as an MCP error result.- Collector calls set a stable non-bot
User-Agentheader as required by Umami;send_eventand batch items may also supply the visitor'suserAgentand trusted server-sideipin the payload. - Analytics URL filters and page metrics use
path; the oldurlmetric was removed. Host aggregation useshostname. - Additional
filtersare preserved even when the corresponding named option is omitted. An explicitly supplied named option takes precedence overfilters. - Segment creation and updates support
filters,sessionPropertyFilters,match,dateRange, andaction. Session-property data types are 1=string, 2=number, 3=boolean, 4=date, 5=array. Cohorts do not support session-property filters. Unknown nested fields are rejected rather than silently discarded. - Annotations require Umami 3.4+ and website edit permission for writes. Supply
an ISO date or timestamp, a 1–500 character note, and optionally
allDay(defaulttrue). Updates replace all three fields; list date filters require bothstartAtandendAtin milliseconds. An older server may return 404. - Supported time units are
minute,hour,day,month, andyear. get_event_seriesandget_sessions_weeklyrequire an IANA timezone.list_reportsrequireswebsiteId; report execution sends{ websiteId, type, filters, parameters }.- Team website membership is changed through
transfer_website; the removed team-website POST/DELETE routes are not exposed.
Development
npm test builds the TypeScript server, checks Cloud/self-hosted URL and auth
behavior, verifies raw public batch requests and the 2FA login flow, and
validates key MCP schemas.
Official references
- Umami API overview
- Authentication
- Cloud API keys
- Sending statistics
- Website statistics
- Reports
- Cloud/API changelog
- Umami v3.4.0 server source
- Report API compatibility
License
MIT
Source: README.md at commit 5bbcee0
Tools
0Version history
3- v2.1.1LatestOct 19, 2026
- v2.0.1Oct 8, 2026
- v1.2.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts