umami-mcp
Provides tools for interacting with the Umami Analytics API, enabling querying website stats, metrics, sessions, events, and realtime analytics, and managing websites, users, teams, reports, and share pages.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
umami-mcp
MCP server for Umami Analytics. Query website stats, manage websites, teams, users, and reports directly from Claude or any MCP-compatible client.
62 tools | 3 resources | 4 prompts
Installation
Claude Code
claude mcp add umami \
-e UMAMI_API_URL=https://your-umami-instance.com \
-e UMAMI_TOKEN=your-api-token \
-- npx umami-mcpWith username/password auth:
claude mcp add umami \
-e UMAMI_API_URL=https://your-umami-instance.com \
-e UMAMI_USERNAME=admin \
-e UMAMI_PASSWORD=your-password \
-- npx umami-mcpCodex
codex mcp add umami \
--env UMAMI_API_URL=https://your-umami-instance.com \
--env UMAMI_TOKEN=your-api-token \
-- npx umami-mcpOther MCP clients
UMAMI_API_URL=https://your-umami-instance.com \
UMAMI_TOKEN=your-api-token \
npx umami-mcpFrom source
git clone https://github.com/0xtlt/umami-mcp
cd umami-mcp && bun install
UMAMI_API_URL=... UMAMI_TOKEN=... bun run src/index.tsClaude Desktop
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"umami": {
"command": "bun",
"args": ["run", "/path/to/umami-mcp/src/index.ts"],
"env": {
"UMAMI_API_URL": "https://your-umami-instance.com",
"UMAMI_TOKEN": "your-api-token"
}
}
}
}Authentication
Umami Cloud: Create an API key in Settings > API Keys
Self-hosted: Use username/password — the server obtains a token automatically via
/api/auth/login
Related MCP server: @zgeoff/umami-mcp
Available Tools
Auth (4)
Tool | Description |
| Verify the current authentication token and get user info |
| Get information about the current authenticated user |
| Get all websites belonging to the current user |
| Get all teams the current user belongs to |
Websites (6)
Tool | Description |
| List all tracked websites (summary: id, name, domain) |
| Get detailed information about a specific website |
| [WRITE] Create a new website to track |
| [WRITE] Update a website's configuration |
| [DESTRUCTIVE] Permanently delete a website and all its data |
| [DESTRUCTIVE] Erase all analytics data for a website (keeps config) |
Stats (6)
Tool | Description |
| Get summarized statistics (pageviews, visitors, visits, bounces, totaltime) |
| Get pageview and session counts over time (time series) |
| Get metrics breakdown by type (path, browser, os, country, etc.) |
| Get expanded metrics with pageviews, visitors, bounces per metric |
| Get currently active visitors (last 5 minutes) |
| Get events as time series data |
Sessions (7)
Tool | Description |
| Get session details within a time range |
| Get summarized session statistics |
| Get details for an individual session |
| Get activity history for a specific session |
| Get properties for a specific session |
| Get session data counts by property name |
| Get session data counts for a specific property |
Events (8)
Tool | Description |
| Get website event details within a time range |
| Get event data for a specific event |
| Get event data names, properties, and counts |
| Get event data property and value counts |
| Get event name and property counts |
| Get event data counts for a given event and property |
| Get aggregated event stats (events, properties, records) |
| [WRITE] Send a custom event to Umami |
Users (6)
Tool | Description |
| Get user details by ID (admin only) |
| Get all websites belonging to a user |
| Get all teams a user belongs to |
| [WRITE] Create a new user (admin only) |
| [WRITE] Update a user's details (admin only) |
| [DESTRUCTIVE] Permanently delete a user (admin only) |
Teams (12)
Tool | Description |
| List all teams (summary: id, name) |
| Get detailed information about a team |
| Get all users belonging to a team |
| Get a specific user within a team |
| Get all websites belonging to a team |
| [WRITE] Create a new team |
| [WRITE] Update a team's name or access code |
| [WRITE] Join a team using an access code |
| [WRITE] Add a user to a team |
| [WRITE] Update a user's role in a team |
| [DESTRUCTIVE] Permanently delete a team |
| [DESTRUCTIVE] Remove a user from a team |
Reports (8)
Tool | Description |
| List all saved reports (summary: id, name, type, websiteId) |
| Get detailed information about a saved report |
| [WRITE] Create a new report |
| [WRITE] Update a saved report |
| [DESTRUCTIVE] Permanently delete a report |
| Run a funnel analysis report (conversion and drop-off rates) |
| Run a retention analysis report (user return rates) |
| Run a breakdown analysis report (segment data with filters) |
Shares (6)
Tool | Description |
| Get a share page by ID |
| List all share pages for a website |
| [WRITE] Create a new share page |
| [WRITE] Update a share page |
| [WRITE] Create a share page for a website |
| [DESTRUCTIVE] Permanently delete a share page |
Realtime (1)
Tool | Description |
| Get realtime analytics (last 30 min): active visitors, pageviews, events |
Available Resources
URI | Description |
| List of all tracked websites |
| List of all teams |
| List of all saved reports |
Available Prompts
Prompt | Description |
| Get a complete analytics overview for a website |
| View realtime activity on a website |
| Deep dive into traffic patterns and sources |
| Guided workflow to add and configure a new website |
Safety Modes
Variable | Description |
| Only read operations available (stats, metrics, lists) |
| Destructive operations require |
Environment Variables
Variable | Required | Description |
| Yes | Umami instance URL (e.g. |
| One of token or username/password | API token from Umami dashboard |
| One of token or username/password | Username for auto-auth |
| One of token or username/password | Password for auto-auth |
| No | Request timeout in ms (default: 30000) |
| No | Read-only mode (default: false) |
| No | Require confirmation for destructive ops (default: false) |
| No | Enable debug logging (default: false) |
Development
bun install # Install dependencies
bun run dev # Watch mode
bun run inspect # MCP Inspector
bun run check # Lint + typecheck + test
bun test # Run unit tests onlyIntegration Tests
Requires Docker. Spins up Umami + PostgreSQL, runs 60 tests against the live instance.
bun run test:integration # Full run (setup + test + teardown)
bun run test:integration:setup # Start containers only
bun run test:integration:run # Run tests only
bun run test:integration:teardown # Stop containers + cleanupLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read website stats, pageviews, visitors, ranked metrics and events in Umami.
1Read-only website analytics, traffic statistics, and realtime insights from BetterUmami.
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Privacy-friendly analytics: ask your assistant about visitors, events, funnels and drop-offs.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Umami Analytics for both Cloud and self-hosted instances. It provides tools to retrieve website statistics, visitor metrics, pageview trends, and real-time active user counts.51MIT
- AlicenseNot gradedqualityBmaintenanceExposes Umami analytics (Cloud or self-hosted) as read-only tools for querying website stats, pageviews, metrics, and active visitors.2,739 npmMIT
- AlicenseAqualityCmaintenanceEnables natural-language analytics against Umami, including traffic stats, time series, sessions, custom events, and filtered breakdowns, plus self-hosted admin CRUD for websites, users, and teams, and client onboarding.481MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients like Claude or Cursor to query Umami Analytics traffic, run v3 reports, create and manage websites, teams, and users through natural language while keeping credentials on the user's own machine.61 npm1MIT