Skip to main content
Glama
umami-mcp

umami-mcp

by chukycheese

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
UMAMI_URLYesUmami 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_TIMEOUTNoHTTP timeout in seconds. Defaults to 30.
UMAMI_PASSWORDNoUsed together with UMAMI_USERNAME to log in and obtain a JWT when UMAMI_API_TOKEN is not set.
UMAMI_TIMEZONENoIANA timezone used for date bucketing and date-only inputs, e.g. Asia/Seoul. Defaults to the local timezone of the execution environment.
UMAMI_USERNAMENoRequired when UMAMI_API_TOKEN is not set. Used with /api/auth/login to obtain a JWT.
UMAMI_API_TOKENNoAPI 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 website_id in the other tools.

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 websiteId, a shareId/shareUrl when Umami created one, and a ready-to-paste script tag pointing at this Umami instance.

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 list_websites. start_at: Range start as an ISO date/datetime or epoch milliseconds. Defaults to days before end_at. end_at: Range end; defaults to now. A bare date includes that whole day. days: Length of the default range when start_at is omitted.

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 list_websites. start_at: Range start (ISO date/datetime or epoch milliseconds). end_at: Range end; defaults to now. days: Length of the default range when start_at is omitted. unit: Bucket size: minute, hour, day, month or year.

Returns {"unit": ..., "pageviews": [{"x": bucket, "y": count}, ...], "sessions": [...]}.

get_metricsA

Return the top values of one dimension, ranked by count.

Args: website_id: Website id from list_websites. metric_type: Dimension to rank: url (default; "path" on newer Umami), entry, exit, title, referrer, domain, channel, event, tag, browser, os, device, screen, language, country, region, city, utmSource, utmMedium, utmCampaign. start_at: Range start (ISO date/datetime or epoch milliseconds). end_at: Range end; defaults to now. days: Length of the default range when start_at is omitted. limit: Maximum number of rows.

Returns rows of {"x": value, "y": count} ordered by count, descending.

get_eventsA

Return custom events aggregated by name for a date range.

Args: website_id: Website id from list_websites. start_at: Range start (ISO date/datetime or epoch milliseconds). end_at: Range end; defaults to now. days: Length of the default range when start_at is omitted.

Returns totalEvents, events ([{"name": ..., "count": ...}], most frequent first) and the per-bucket series.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 7 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues