Provides full-coverage integration for the Umami Analytics API v2, allowing users to manage websites, query analytics statistics and metrics, send custom tracking events, generate reports, and perform administrative tasks for users and teams.
English | 한국어
umami-mcp
Full-coverage Model Context Protocol (MCP) server for Umami Analytics API v2.
Unlike existing Umami MCP implementations (read-only, ≤5 tools), this server provides 66 tools, 2 resources, and 2 prompts covering the entire Umami API — websites CRUD, stats, sessions, events, event-data, session-data, reports, user management, teams, realtime, account, and more.
When to Use
Use this MCP when you need to:
"Show me website analytics for the last 7 days" — get stats, pageviews, and metrics with date filters
"Which pages got the most views this month?" — query aggregated metrics by URL
"Compare traffic between two date ranges" — use the traffic_compare prompt or get_stats with different ranges
"Set up a new website in Umami" — create and configure tracked websites
"Get real-time active visitors" — check active visitors and real-time data
"Export analytics report" — create, run, and retrieve reports (funnel, retention, UTM, goals, revenue, attribution)
"Track a custom event from the server" — send events or batch events programmatically
"Manage team access to analytics" — create teams, add users and websites to teams
Features
66 Tools — Full CRUD for websites, detailed analytics, session tracking, event sending & event-data queries, report management (including attribution), user/team administration, team-website management, account management, batch events, and realtime monitoring
2 Resources — Quick access to website list and account info
2 Prompts — Pre-built analytics workflows (site overview, traffic comparison)
Dual Auth — Self-hosted (username/password → JWT) and Umami Cloud (API key)
Lazy Config — Server starts without credentials; auth is checked on first API call
Zero Dependencies — Uses native
fetch, no external HTTP libraries
Installation
npm install -g @mikusnuz/umami-mcpOr use directly with npx:
npx @mikusnuz/umami-mcpConfiguration
Environment Variables
Variable | Required | Description |
| Yes | Your Umami instance URL (e.g. |
| For self-hosted | Login username |
| For self-hosted | Login password |
| For Umami Cloud | API key from Umami Cloud dashboard |
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"umami": {
"command": "npx",
"args": ["-y", "@mikusnuz/umami-mcp"],
"env": {
"UMAMI_URL": "https://analytics.example.com",
"UMAMI_USERNAME": "admin",
"UMAMI_PASSWORD": "your-password"
}
}
}
}Claude Code
claude mcp add umami -- npx -y @mikusnuz/umami-mcp
# Set environment variables
export UMAMI_URL="https://analytics.example.com"
export UMAMI_USERNAME="admin"
export UMAMI_PASSWORD="your-password"Tools (66)
Websites (9)
Tool | Description |
| List all tracked websites |
| Get website details by ID |
| Create a new website |
| Update website configuration |
| Delete a website |
| Get current active visitor count |
| Reset all analytics data for a website |
| Transfer website ownership to another user |
| Get all reports for a website |
Stats & Analytics (9)
Tool | Description |
| Summary statistics (pageviews, visitors, bounce rate, etc.) |
| Pageview/session counts over time |
| Aggregated metrics (top pages, browsers, countries, etc.) |
| Event data over time |
| Session listing with filters |
| Available data date range |
| Event metrics over time (event series) |
| Summarized session statistics |
| Weekly session data |
Sessions (5)
Tool | Description |
| Session details |
| Session activity log |
| Session custom properties |
| Session data property names and types |
| Session data aggregated values |
Events (7)
Tool | Description |
| Send custom events/pageviews (server-side tracking) |
| Event/session property values |
| Event data events (custom event names and counts) |
| Event data fields (property keys and types) |
| Event data values (aggregated counts for a property) |
| Event data statistics summary |
| Send multiple events in a single batch request |
Reports (6)
Tool | Description |
| List saved reports |
| Get report details |
| Create and save a report |
| Update an existing report |
| Delete a saved report |
| Execute a report (funnel, retention, utm, goals, insights, revenue, journey, attribution) |
Users (8, admin only)
Tool | Description |
| List all users |
| Create a new user (username, password, role) |
| Get user details |
| Update user (username, password, or role) |
| Delete a user |
| List websites a user has access to |
| Get usage statistics for a user |
| List teams a user belongs to |
Teams (14)
Tool | Description |
| List all teams |
| Create a new team |
| Get team details |
| Update team name |
| Delete a team |
| Join a team using an access code |
| List team members |
| Get details of a specific team member |
| Add a user to a team |
| Update a team member's role |
| Remove a user from a team |
| List websites belonging to a team |
| Add a website to a team |
| Remove a website from a team |
Account (7)
Tool | Description |
| Get current authenticated user profile |
| List current user's websites |
| List current user's teams |
| Update current user's password |
| Verify authentication token is valid |
| Get shared website data by share ID |
| Check if Umami server is healthy |
Realtime (1)
Tool | Description |
| Real-time data for last 30 minutes (visitors, URLs, referrers, countries, events) |
Resources (2)
Resource | URI | Description |
Websites |
| All tracked websites |
Account |
| Current user info |
Prompts (2)
Prompt | Description |
| Comprehensive site analysis (stats + pageviews + top metrics + active visitors) |
| Compare traffic between two date ranges |
Usage Examples
Get website statistics
Use get_stats to show me the last 7 days of analytics for my main website.Compare periods
Use the traffic_compare prompt to compare last week vs this week for website abc-123.Send server-side event
Use send_event to track a "signup" event on my website with data { plan: "pro" }.Batch multiple events
Use batch_events to send 3 pageview events for different pages on my website.Check server health
Use heartbeat to check if the Umami server is running.Development
git clone https://github.com/mikusnuz/umami-mcp.git
cd umami-mcp
npm install
npm run buildLicense
MIT