← Back to Umami MCP Server
Install Umami MCP Server
Pick your client, copy the command, done.
1
Add it to Claude Code
claude mcp add umami-mcp-dac2 -- uvx --from git+https://github.com/lukasschmit/umami-mcp umami-mcpEnvironment Variables
Set these before running Umami MCP Server.
VariableDescriptionRequired
UMAMI_URLBase URL for Umami instanceNoUMAMI_API_KEYAPI key for Umami CloudNoUMAMI_USERNAMELogin username for self-hostedNoUMAMI_PASSWORDLogin password for self-hostedNoUMAMI_CF_ACCESS_CLIENT_IDCloudflare Access service token client IDNoUMAMI_CF_ACCESS_CLIENT_SECRETCloudflare Access service token secretNoUMAMI_USER_AGENTCustom User-Agent for outbound requestsNoUMAMI_DEBUGSet to 1/true to log outbound request URLsNoAvailable Tools (5)
Once configured, Umami MCP Server gives your AI agent access to:
get_websitesList all tracked websitesget_statsSummary stats: pageviews, visitors, visits, bounces, totaltimeget_pageviewsTime-series pageview/session dataget_metricsBreakdown by type: path, url, entry, exit, referrer, domain, title, query, event, tag, hostname, browser, os, device, screen, language, country, region, city, channelget_activeNumber of currently active visitors (last 5 minutes)Try It Out
After setup, try these prompts with your AI agent:
→How many active visitors are currently on my website?
→Get the summary statistics for my main website for the last 7 days.
→Show me a breakdown of visitor countries for my website.
→What are the top performing pages on my site based on pageviews?
→List all the websites I have configured in my Umami account.
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Python 3.8+ with pip installed
Conare · memory for coding agents
Keep this setup from going cold
Save the docs, env vars, and workflow around Umami MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.
Remember this setup$npx conare@latest