Skip to main content
Glama
matious89pl

umami-analytics-mcp

by matious89pl

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
UMAMI_API_KEYNoUmami Cloud API key (selects Cloud mode).
UMAMI_API_URLNoSelf-hosted instance base URL, e.g. https://stats.example.com (/api appended).
UMAMI_TEAM_IDNoScope website listings to a team (optional).
MCP_AUTH_TOKENNoShared-secret bearer required by remote endpoints.
UMAMI_PASSWORDNoLogin password for self-hosted.
UMAMI_USERNAMENoLogin username for self-hosted.
UMAMI_CLOUD_REGIONNous or eu (optional regional base URL for Cloud).
UMAMI_ENABLE_ADMINNo1 to expose user-management tools (self-hosted only).
UMAMI_ENABLE_WRITENo1 to expose create/update + send_event tools.
UMAMI_DEFAULT_TIMEZONENoIANA tz for time-series tools (default UTC).UTC
UMAMI_ALLOW_DESTRUCTIVENo1 to also expose delete/reset tools.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_websitesA

List every website you can access (including team sites). CALL THIS FIRST — every other tool needs a website ID from here. Returns id, name, domain, createdAt.

get_websiteA

Fetch one website's metadata (name, domain, share settings, createdAt) by ID.

get_website_daterangeA

Return the earliest and latest timestamps for which a website has analytics data. Use this to choose a valid window before querying stats/metrics.

get_statsA

Aggregate metrics for a website over a date range: pageviews, visitors (unique sessions), visits, bounces (single-pageview sessions), and totaltime (seconds). Includes a previous-period comparison by default.

get_pageviewsB

Pageviews and sessions over time, bucketed by unit. Returns { pageviews: [{x,y}], sessions: [{x,y}] } where x is the bucket timestamp and y the count.

get_active_visitorsA

Current real-time active visitor count for a website (visitors in the last few minutes).

get_realtimeA

Richer real-time snapshot for a website (recent events/sessions/series). Availability varies by Umami version; falls back gracefully.

get_metricsC

Top-N breakdown of a website by a single dimension (type) over a date range. Returns ranked { x: value, y: count } rows. Use type=event for custom-event counts. url is an alias for path.

get_website_valuesA

List the distinct values seen for a column over a date range — useful to discover valid filter values (e.g. all browsers or countries) before filtering other queries.

get_eventsA

Custom-event activity over time for a website, bucketed by unit. Returns a time series of event counts. For a ranked list of event names use get_metrics(type='event').

get_event_dataA

Explore custom event properties. select chooses the view: 'events' (event names), 'fields' (all fields), 'properties' (property keys), 'values' (values for a property — pass propertyName), or 'stats' (counts). Optionally scope by eventName.

list_sessionsB

Paginated list of individual visitor sessions over a date range (id, browser, os, device, geo, screen, visits, views, firstAt/lastAt). Supports search + filters.

get_sessionA

Fetch a single visitor session's details by session ID.

get_session_activityB

Ordered pageview/event timeline for a single session (createdAt, urlPath, referrer, eventType, eventName) — effectively a data-level session replay.

get_session_statsA

Aggregate session totals over a date range: pageviews, visitors, visits, countries, events — a session-centric overview.

get_session_propertiesA

List the custom properties attached to a single session (set via identify calls).

report_funnelA

Conversion funnel across an ordered list of steps. Each step is { type: 'path' | 'event', value }. window is the conversion window (hours).

report_retentionA

Cohort retention over the selected period (how many users return on subsequent days).

report_journeyA

Most common navigation paths through the site, up to steps deep (2–7). Optionally pin a start or end step.

report_goalsB

Progress toward one or more goals. Each goal is { type: 'event' | 'path', value }. Computed per goal against Umami's /reports/goal endpoint.

report_attributionA

Conversion attribution. model is first-click or last-click; type is the target dimension; step the target value.

report_revenueA

Revenue analytics over the period (requires revenue events configured in Umami). currency is required (e.g. USD).

report_utmC

Breakdown of traffic by UTM parameters (source, medium, campaign, content, term).

report_breakdownC

Multi-dimensional breakdown across one or more fields (e.g. ['country','browser']).

list_reportsA

List saved reports (funnels, goals, journeys, etc.), optionally scoped to a website.

get_reportA

Fetch a saved report's full definition (type, parameters) by ID.

list_segmentsA

List saved segments and cohorts defined for a website.

get_segmentA

Fetch a single segment/cohort definition by ID.

list_teamsA

List teams you belong to (id, name, role). Available on both Cloud and self-hosted.

get_teamA

Fetch a single team's metadata by ID.

get_team_membersA

List members of a team and their roles (team-owner, team-manager, team-member, team-view-only).

get_meA

Return the authenticated account's profile: id, username, role, isAdmin, and teams. Credentials/tokens are stripped from the response.

Prompts

Interactive templates invoked by user choice

NameDescription
analytics_reportFull traffic report for a website over N days.
traffic_overviewQuick traffic snapshot.
top_pagesMost-visited pages.
acquisition_channelsWhere traffic comes from.
realtime_checkWho's on the site right now.
funnel_analysisConversion funnel across steps.
retention_analysisReturning-visitor retention.
audience_insightsWho the visitors are.
compare_periodsThis period vs the previous.

Resources

Contextual data attached and managed by the client

NameDescription
websitesAll accessible websites
meAuthenticated profile (sanitized)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matious89pl/umami-analytics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server