Umami MCP by usefulapi
v1.2.1Read website stats, pageviews, visitors, ranked metrics and events in Umami.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
umami_get_account Show API key account
Show which Umami account and API key this server uses (key name, user and role). Good first call to check the connection. Umami Cloud: GET /v1/me.
umami_list_websites List websites
List the websites in this account, with their ids, names and domains. Use the id in the other tools. Umami API: GET /v1/websites.
| Parameter | Type | Description |
|---|---|---|
includeTeams | boolean | Also include websites shared through team membership. |
maxResults | integer | Maximum websites to return. |
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page (vendor default when omitted). |
search | string | Search text. |
umami_get_website Get website
Get one website's details and configuration. Umami API: GET /v1/websites/{websiteId}.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
umami_get_date_range Get data date range
Get the earliest and latest recorded dates for a website. Call it before a long range. Umami API: GET /v1/websites/{websiteId}/daterange.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
umami_get_website_stats Get website stats
Summary numbers for a website: pageviews, unique visitors, visits, bounces and total time, with an optional comparison period. Umami API: GET /v1/websites/{websiteId}/stats.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
browser | string | Only this browser name. |
compare | string | Comparison: prev = previous period, yoy = same period last year. |
country | string | Only this country code, for example US. |
device | string | Only this device category. |
endAt | integer | Range end, Unix time in milliseconds. |
endDate | string | Range end as an ISO 8601 date or date-time (alternative to endAt). |
event | string | Only this custom event name. |
os | string | Only this operating system. |
path | string | Only this URL path, for example /pricing. |
period | string | Relative range such as today, 24h, 7d, 30d or 90day. Do not combine with startAt and endAt. |
referrer | string | Only this referring URL. |
startAt | integer | Range start, Unix time in milliseconds. |
startDate | string | Range start as an ISO 8601 date or date-time (alternative to startAt). |
timezone | string | IANA time zone, for example America/New_York. |
unit | string | Time bucket for grouped results. |
utmCampaign | string | Only this UTM campaign. |
utmMedium | string | Only this UTM medium. |
utmSource | string | Only this UTM source. |
umami_get_pageviews_over_time Get pageviews over time
Pageviews and sessions per time bucket for a website, with an optional comparison. Umami API: GET /v1/websites/{websiteId}/pageviews.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
browser | string | Only this browser name. |
compare | string | Comparison: prev = previous period, yoy = same period last year. |
country | string | Only this country code, for example US. |
device | string | Only this device category. |
endAt | integer | Range end, Unix time in milliseconds. |
endDate | string | Range end as an ISO 8601 date or date-time (alternative to endAt). |
event | string | Only this custom event name. |
os | string | Only this operating system. |
path | string | Only this URL path, for example /pricing. |
period | string | Relative range such as today, 24h, 7d, 30d or 90day. Do not combine with startAt and endAt. |
referrer | string | Only this referring URL. |
startAt | integer | Range start, Unix time in milliseconds. |
startDate | string | Range start as an ISO 8601 date or date-time (alternative to startAt). |
timezone | string | IANA time zone, for example America/New_York. |
unit | string | Time bucket for grouped results. |
utmCampaign | string | Only this UTM campaign. |
utmMedium | string | Only this UTM medium. |
utmSource | string | Only this UTM source. |
umami_get_metrics Get ranked metrics
Ranked list of the top values for one dimension, such as pages, referrers, countries, browsers or events. Umami API: GET /v1/websites/{websiteId}/metrics.
| Parameter | Type | Description |
|---|---|---|
type * | string | Dimension to rank, for example path, referrer, country, event or channel. |
websiteId * | string | Website id, from umami_list_websites. |
browser | string | Only this browser name. |
compare | string | Comparison: prev = previous period, yoy = same period last year. |
country | string | Only this country code, for example US. |
device | string | Only this device category. |
endAt | integer | Range end, Unix time in milliseconds. |
endDate | string | Range end as an ISO 8601 date or date-time (alternative to endAt). |
event | string | Only this custom event name. |
limit | integer | Maximum rows to return. |
offset | integer | Rows to skip. |
os | string | Only this operating system. |
path | string | Only this URL path, for example /pricing. |
period | string | Relative range such as today, 24h, 7d, 30d or 90day. Do not combine with startAt and endAt. |
referrer | string | Only this referring URL. |
search | string | Search text. |
startAt | integer | Range start, Unix time in milliseconds. |
startDate | string | Range start as an ISO 8601 date or date-time (alternative to startAt). |
timezone | string | IANA time zone, for example America/New_York. |
unit | string | Time bucket for grouped results. |
utmCampaign | string | Only this UTM campaign. |
utmMedium | string | Only this UTM medium. |
utmSource | string | Only this UTM source. |
umami_get_session_stats Get session stats
Visitor and session totals for a website over a range, with the same filters as the stats tools. Umami API: GET /v1/websites/{websiteId}/sessions/stats.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
browser | string | Only this browser name. |
country | string | Only this country code, for example US. |
device | string | Only this device category. |
endAt | integer | Range end, Unix time in milliseconds. |
event | string | Only this custom event name. |
os | string | Only this operating system. |
path | string | Only this URL path, for example /pricing. |
period | string | Relative range such as today, 24h, 7d, 30d or 90day. Do not combine with startAt and endAt. |
referrer | string | Only this referring URL. |
startAt | integer | Range start, Unix time in milliseconds. |
utmCampaign | string | Only this UTM campaign. |
utmMedium | string | Only this UTM medium. |
utmSource | string | Only this UTM source. |
umami_get_active_visitors Get active visitors
Number of visitors active on the website in the last few minutes. Umami API: GET /v1/websites/{websiteId}/active.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
umami_get_realtime Get real-time activity
Recent activity for a website: countries, referrers, events, and views and visitors over the last 30 minutes. Umami API: GET /v1/realtime/{websiteId}.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
browser | string | Only this browser name. |
country | string | Only this country code, for example US. |
device | string | Only this device category. |
event | string | Only this custom event name. |
os | string | Only this operating system. |
path | string | Only this URL path, for example /pricing. |
referrer | string | Only this referring URL. |
timezone | string | IANA time zone, for example America/New_York. |
unit | string | Time bucket for grouped results. |
utmCampaign | string | Only this UTM campaign. |
utmMedium | string | Only this UTM medium. |
utmSource | string | Only this UTM source. |
umami_list_sessions List visitor sessions
Page of visitor sessions in a date range, newest first (country, browser, OS, device and visit counts). Umami API: GET /v1/websites/{websiteId}/sessions.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
browser | string | Only this browser name. |
compare | string | Comparison: prev = previous period, yoy = same period last year. |
country | string | Only this country code, for example US. |
device | string | Only this device category. |
endAt | integer | Range end, Unix time in milliseconds. |
endDate | string | Range end as an ISO 8601 date or date-time (alternative to endAt). |
event | string | Only this custom event name. |
maxResults | integer | Maximum rows to return. |
os | string | Only this operating system. |
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page (vendor default when omitted). |
path | string | Only this URL path, for example /pricing. |
period | string | Relative range such as today, 24h, 7d, 30d or 90day. Do not combine with startAt and endAt. |
referrer | string | Only this referring URL. |
search | string | Search text. |
startAt | integer | Range start, Unix time in milliseconds. |
startDate | string | Range start as an ISO 8601 date or date-time (alternative to startAt). |
timezone | string | IANA time zone, for example America/New_York. |
unit | string | Time bucket for grouped results. |
utmCampaign | string | Only this UTM campaign. |
utmMedium | string | Only this UTM medium. |
utmSource | string | Only this UTM source. |
umami_list_events List tracked events
Page of pageviews and custom events in a date range, newest first. Filter by event name with the event field. Umami API: GET /v1/websites/{websiteId}/events.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | Website id, from umami_list_websites. |
browser | string | Only this browser name. |
compare | string | Comparison: prev = previous period, yoy = same period last year. |
country | string | Only this country code, for example US. |
device | string | Only this device category. |
endAt | integer | Range end, Unix time in milliseconds. |
endDate | string | Range end as an ISO 8601 date or date-time (alternative to endAt). |
event | string | Only this custom event name. |
maxResults | integer | Maximum rows to return. |
os | string | Only this operating system. |
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page (vendor default when omitted). |
path | string | Only this URL path, for example /pricing. |
period | string | Relative range such as today, 24h, 7d, 30d or 90day. Do not combine with startAt and endAt. |
referrer | string | Only this referring URL. |
search | string | Search text. |
startAt | integer | Range start, Unix time in milliseconds. |
startDate | string | Range start as an ISO 8601 date or date-time (alternative to startAt). |
timezone | string | IANA time zone, for example America/New_York. |
unit | string | Time bucket for grouped results. |
utmCampaign | string | Only this UTM campaign. |
utmMedium | string | Only this UTM medium. |
utmSource | string | Only this UTM source. |