Labsco
Macawls logo

Umami MCP Server

β˜… 21

from Macawls

Integrate Umami Analytics with any MCP client like Claude Desktop, VS Code, and more.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup
<div style="display: flex; flex-wrap: wrap; gap: 2px"> <a href="https://badge.fury.io/go/github.com%2FMacawls%2Fumami-mcp-server"> <img src="https://badge.fury.io/go/github.com%2Fmacawls%2Fumami-mcp-server.svg" alt="Go project version" /> </a> <a href="https://pkg.go.dev/github.com/Macawls/umami-mcp-server"> <img src="https://pkg.go.dev/badge/github.com/Macawls/umami-mcp-server.svg" alt="Go Reference" /> </a> <a href="https://github.com/Macawls/umami-mcp-server/actions/workflows/test.yml"> <img src="https://github.com/Macawls/umami-mcp-server/actions/workflows/test.yml/badge.svg" alt="Test" /> </a> <a href="https://github.com/Macawls/umami-mcp-server/actions/workflows/release.yml"> <img src="https://github.com/Macawls/umami-mcp-server/actions/workflows/release.yml/badge.svg" alt="Release" /> </a> <a href="https://lobehub.com/mcp/macawls-umami-mcp-server"> <img src="https://lobehub.com/badge/mcp/macawls-umami-mcp-server?style=plastic" alt="MCP Badge" /> </a> </div>

Umami MCP Server

Connect your Umami Analytics to any MCP client - Claude Desktop, VS Code, Cursor, Windsurf, Zed, Smithery, and more.

<a href="https://glama.ai/mcp/servers/@Macawls/umami-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@Macawls/umami-mcp-server/badge" /> </a> <img src="https://raw.githubusercontent.com/Macawls/umami-mcp-server/main/.github/workflows/insights.PNG" height="500">

Prompts

Analytics & Traffic

  • "Give me a comprehensive analytics report for my website over the last 30 days"
  • "Which pages are getting the most traffic this month? Show me the top 10"
  • "Analyze my website's traffic patterns - when do I get the most visitors?"

User Insights

  • "Where are my visitors coming from? Break it down by country and city"
  • "What devices and browsers are my users using?"
  • "Show me the user journey - what pages do visitors typically view in sequence?"

Sessions & Replay

  • "How many sessions were recorded last month? List the most active ones"
  • "Walk me through what session <id> did β€” the pages and events in order"
  • "Which recorded sessions came from mobile in Sweden?"

Real-time Monitoring

  • "How many people are on my website right now? What pages are they viewing?"
  • "Is my website experiencing any issues? Check if traffic has dropped significantly"

Content & Campaign Analysis

  • "Which blog posts should I update? Show me articles with declining traffic"
  • "How did my recent email campaign perform? Track visitors from the campaign UTM"
  • "Compare traffic from different social media platforms"

Available Tools

ToolDescription
get_websitesList all websites (call this first to get website IDs)
get_statsAggregated statistics β€” pageviews, visitors, bounces, total time
get_pageviewsPageview and session counts grouped by time unit
get_metricsBreakdown by page, referrer, browser, OS, device, country, etc.
get_activeCurrent active visitor count in real-time
get_sessionsList individual visitor sessions, with total count β€” the sessions session replay records
get_session_statsAggregated session totals β€” pageviews, visitors, visits, countries, events
get_session_activityOrdered pageview/event timeline for a single session

Self-Hosting (HTTP Transport)

The server supports Streamable HTTP for remote deployments. Set TRANSPORT=http to expose a /mcp endpoint:

Copy & paste β€” that's it
TRANSPORT=http PORT=9999 ./umami-mcp-server

Credentials are passed via X-Umami-* headers on the initialize request. The response includes a Mcp-Session-Id header for subsequent requests.

Docker defaults to HTTP mode:

Copy & paste β€” that's it
docker run -p 8080:8080 ghcr.io/macawls/umami-mcp-server

Build from Source

Copy & paste β€” that's it
git clone https://github.com/Macawls/umami-mcp-server.git
cd umami-mcp-server
go build -o umami-mcp

License

MIT