umami-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| UMAMI_URL | Yes | Umami instance URL, e.g. https://umami-gray-mu.vercel.app. A trailing slash is removed automatically. Deployments under a subpath (https://host/umami) are supported. | |
| UMAMI_TIMEOUT | No | HTTP timeout in seconds. Defaults to 30. | |
| UMAMI_PASSWORD | No | Used together with UMAMI_USERNAME to log in and obtain a JWT when UMAMI_API_TOKEN is not set. | |
| UMAMI_TIMEZONE | No | IANA timezone used for date bucketing and date-only inputs, e.g. Asia/Seoul. Defaults to the local timezone of the execution environment. | |
| UMAMI_USERNAME | No | Required when UMAMI_API_TOKEN is not set. Used with /api/auth/login to obtain a JWT. | |
| UMAMI_API_TOKEN | No | API key (umami_...) or JWT. If present, the server uses this token without logging in. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for a self-hosted Umami analytics instance.
Start with list_websites to find the website id, then query its analytics:
get_stats for totals, get_pageviews for the time series, get_metrics for
top pages/referrers/devices/countries, get_events for custom events, and
get_active_visitors for the live visitor count. create_website registers a
new site and returns the tracking snippet.
Date arguments accept either ISO values (2026-11-01 or
2026-11-01T09:00:00+09:00) or epoch milliseconds. When you pass only
days, the range is the last N days ending now. A bare end_at date includes
that whole day.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_websitesA | List the websites tracked by this Umami instance. Returns each website's id, name, domain, shareId and creation date. Use the
id as |
| create_websiteA | Register a new website in Umami and return its tracking snippet. Args: name: Display name for the site, for example "kult-archive". domain: Bare domain without a scheme or path, for example "kult-archive.pages.dev" or "example.com". Returns the new |
| get_active_visitorsC | Return the number of visitors active on the website right now. |
| get_statsA | Return summary totals for a date range. Args:
website_id: Website id from Returns visitors, pageviews, visits, bounces, totaltime (seconds) and the same figures for the comparison period. |
| get_pageviewsA | Return pageviews and sessions as a time series. Args:
website_id: Website id from Returns |
| get_metricsA | Return the top values of one dimension, ranked by count. Args:
website_id: Website id from Returns rows of |
| get_eventsA | Return custom events aggregated by name for a date range. Args:
website_id: Website id from Returns |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct data shape: list/create manage sites, and the analytics tools split cleanly into realtime (get_active_visitors), totals (get_stats), time series (get_pageviews), ranked dimensions (get_metrics) and custom events (get_events). The only mild overlap is get_stats vs get_pageviews, both returning visitor/pageview figures over a range, but totals-versus-series makes the boundary clear enough.
All seven tools follow a strict verb_noun snake_case pattern: list_websites, create_website, and a get_* family for the analytics endpoints. No camelCase or mixed conventions, and the get_ prefix is applied uniformly.
Seven tools is well within the ideal 3-15 range, and each earns its place: site management, realtime, totals, series, dimension breakdowns, and events cover the analytics surface without redundancy.
Read-side analytics coverage is solid, but the website lifecycle is half-finished: list and create exist with no update_website or delete_website, so an agent cannot rename or clean up sites. Session-level or individual-record retrieval is also absent, leaving dead ends beyond the aggregate views.