Umami Analytics (Read-only)

v0.1.0
io.github.MrLinWang/umami-mcp Checked 2 days ago Published 14 days ago

Read-only Umami analytics for self-hosted sites: traffic, referrers, sessions and events.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_teams

List Umami teams accessible to the configured token. Use the team ID with list_websites.

ParameterTypeDescription
pageintegerPage number, starting at 1.
pageSizeintegerRows per page, maximum 100.

list_websites

List accessible websites. For a team website, pass teamId from list_teams.

ParameterTypeDescription
pageintegerPage number, starting at 1.
pageSizeintegerRows per page, maximum 100.
teamIdstringRestrict the list to this team.

get_website_stats

Get pageviews, visitors, visits, bounces and total visit time.

ParameterTypeDescription
comparestringCompare with the previous period or the same period last year.
endAtRange end, ISO 8601 with offset or Unix milliseconds. Supply with startAt.
filtersobjectApply all supplied filters to the report.
periodstringRelative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt.
startAtRange start, ISO 8601 with offset or Unix milliseconds. Supply with endAt.
timezonestringIANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC.
websiteIdstringWebsite ID. Defaults to UMAMI_WEBSITE_ID when configured.

get_website_traffic

Get pageview and session counts grouped by time.

ParameterTypeDescription
comparestringCompare with the previous period or the same period last year.
endAtRange end, ISO 8601 with offset or Unix milliseconds. Supply with startAt.
filtersobjectApply all supplied filters to the report.
periodstringRelative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt.
startAtRange start, ISO 8601 with offset or Unix milliseconds. Supply with endAt.
timezonestringIANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC.
unitstring
websiteIdstringWebsite ID. Defaults to UMAMI_WEBSITE_ID when configured.

get_website_metrics

Get ranked analytics by page, referrer, browser, country, event, or another dimension.

ParameterTypeDescription
type *string
endAtRange end, ISO 8601 with offset or Unix milliseconds. Supply with startAt.
filtersobjectApply all supplied filters to the report.
limitinteger
offsetinteger
periodstringRelative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt.
startAtRange start, ISO 8601 with offset or Unix milliseconds. Supply with endAt.
timezonestringIANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC.
websiteIdstringWebsite ID. Defaults to UMAMI_WEBSITE_ID when configured.

get_events

List tracked pageviews and custom events, newest first. Use sessionId to look up the visitor timeline.

ParameterTypeDescription
endAtRange end, ISO 8601 with offset or Unix milliseconds. Supply with startAt.
eventType1 for pageviews, 2 for custom events.
filtersobjectApply all supplied filters to the report.
pageintegerPage number, starting at 1.
pageSizeintegerRows per page, maximum 100.
periodstringRelative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt.
startAtRange start, ISO 8601 with offset or Unix milliseconds. Supply with endAt.
timezonestringIANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC.
websiteIdstringWebsite ID. Defaults to UMAMI_WEBSITE_ID when configured.

get_sessions

List visitor sessions with device and geography, visit count, pageview count, custom event count, and timestamps. To find low-frequency visitors, page through the results and select rows by visits.

ParameterTypeDescription
endAtRange end, ISO 8601 with offset or Unix milliseconds. Supply with startAt.
filtersobjectApply all supplied filters to the report.
pageintegerPage number, starting at 1.
pageSizeintegerRows per page, maximum 100.
periodstringRelative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt.
startAtRange start, ISO 8601 with offset or Unix milliseconds. Supply with endAt.
timezonestringIANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC.
websiteIdstringWebsite ID. Defaults to UMAMI_WEBSITE_ID when configured.

get_session_activity

Get a paginated timeline for a visitor session, with paths, referrers, timestamps and visit IDs. Umami may include activity from linked visitor IDs.

ParameterTypeDescription
sessionId *string
endAtRange end, ISO 8601 with offset or Unix milliseconds. Supply with startAt.
pageintegerPage number, starting at 1.
pageSizeintegerRows per page, maximum 100.
periodstringRelative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt.
startAtRange start, ISO 8601 with offset or Unix milliseconds. Supply with endAt.
timezonestringIANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC.
websiteIdstringWebsite ID. Defaults to UMAMI_WEBSITE_ID when configured.

get_realtime

Get the Umami realtime snapshot for the last 30 minutes.

ParameterTypeDescription
websiteIdstringWebsite ID. Defaults to UMAMI_WEBSITE_ID when configured.