Umami MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Umami MCPlist my websites"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Umami MCP
A small, read-only Model Context Protocol server for self-hosted Umami analytics.
Use the hosted Streamable HTTP endpoint with credentials kept in your local environment, or run the server locally over stdio. Give it your Umami URL and either username/password credentials or a bearer token; it handles login and exposes a focused analytics toolset.
Hosted quick start
The public endpoint is:
https://umami-mcp-production-6324.up.railway.app/mcpSet these variables in the environment that launches Codex or Claude Code:
UMAMI_URL=https://analytics.example.com
UMAMI_USERNAME=admin
UMAMI_PASSWORD=your-passwordClaude Code
Run once to install the hosted MCP for your user:
claude mcp add-json --scope user umami '{"type":"http","url":"https://umami-mcp-production-6324.up.railway.app/mcp","headers":{"X-Umami-URL":"${UMAMI_URL}","X-Umami-Username":"${UMAMI_USERNAME}","X-Umami-Password":"${UMAMI_PASSWORD}"}}'Run claude mcp get umami to inspect the configuration, then /mcp inside Claude Code to verify the connection.
Codex
Add this to ~/.codex/config.toml:
[mcp_servers.umami]
url = "https://umami-mcp-production-6324.up.railway.app/mcp"
[mcp_servers.umami.env_http_headers]
X-Umami-URL = "UMAMI_URL"
X-Umami-Username = "UMAMI_USERNAME"
X-Umami-Password = "UMAMI_PASSWORD"Restart Codex, then use /mcp or codex mcp list to verify the server.
The environment variable names are stored in the client configuration; their values are added to HTTPS request headers at runtime. The hosted service uses the credentials for that request and does not persist them. It necessarily receives them in memory, so use the local stdio option if you do not want credentials to transit infrastructure operated by Up North Media.
Use an existing Umami token
Replace the username and password headers with one token header:
X-Umami-Token: your-bearer-tokenFor Claude Code, set "X-Umami-Token":"${UMAMI_TOKEN}". For Codex, set X-Umami-Token = "UMAMI_TOKEN" under env_http_headers.
Related MCP server: yawa
Requirements
Node.js 20 or newer
An official self-hosted Umami v2 or v3 instance
An Umami user with access to the websites you want to query
The shared v2/v3 read endpoints are supported. Umami forks or older releases may change their API contract; API errors are returned clearly instead of being hidden.
Local stdio setup
Codex
Add this to ~/.codex/config.toml:
[mcp_servers.umami]
command = "npx"
args = ["-y", "github:upnorthmedia/umami-mcp"]
[mcp_servers.umami.env]
UMAMI_URL = "https://analytics.example.com"
UMAMI_USERNAME = "admin"
UMAMI_PASSWORD = "your-password"Restart Codex, then use /mcp or codex mcp list to verify the server.
Claude Code and other stdio clients
Use the equivalent MCP server configuration:
{
"mcpServers": {
"umami": {
"command": "npx",
"args": ["-y", "github:upnorthmedia/umami-mcp"],
"env": {
"UMAMI_URL": "https://analytics.example.com",
"UMAMI_USERNAME": "admin",
"UMAMI_PASSWORD": "your-password"
}
}
}
}The exact settings-file location varies by MCP client. For Claude Code, this configuration can be stored in .mcp.json or added with claude mcp add-json.
Authentication
Credential authentication is recommended because the server can log in again when an Umami session token expires:
UMAMI_URL=https://analytics.example.com
UMAMI_USERNAME=admin
UMAMI_PASSWORD=your-passwordYou can instead provide an existing bearer token:
UMAMI_URL=https://analytics.example.com
UMAMI_TOKEN=your-bearer-tokenChoose one authentication method. The server rejects partial credentials or a token combined with username/password credentials.
UMAMI_URL can be the instance root, a base-path installation, or the API URL itself:
https://analytics.example.com
https://example.com/analytics
https://analytics.example.com/apiTools
Tool | Purpose |
| List websites available to the authenticated user |
| Get one website's details |
| Get visitors active in the last five minutes |
| Get summary pageviews, visitors, visits, bounces, and time |
| Get pageview and session time series |
| Break down traffic by path, referrer, browser, device, country, event, or another supported metric |
| List pageview and custom-event details |
| List visitor sessions |
| Get activity from the last 30 minutes |
Every tool is marked read-only and non-destructive in its MCP annotations.
Date inputs accept either Unix timestamps in milliseconds or ISO 8601 date-times. Filters are passed through to Umami so the server can support version-specific fields. For example, Umami v3 calls its page filter path, while older v2 installations may use url.
Local development
git clone https://github.com/upnorthmedia/umami-mcp.git
cd umami-mcp
npm install
npm run checkBuild and run the stdio server:
npm run build
UMAMI_URL=https://analytics.example.com \
UMAMI_USERNAME=admin \
UMAMI_PASSWORD=your-password \
node dist/index.jsTests use a real local HTTP server and the MCP SDK's linked in-memory transports. They do not contact your Umami instance.
Run the hosted transport locally:
npm run build
PORT=3000 npm startIts MCP endpoint is http://localhost:3000/mcp and its health endpoint is http://localhost:3000/health. The hosted request mode still requires the target Umami instance to use HTTPS and a publicly routable address.
Railway deployment
The included Dockerfile and railway.toml are production-ready:
railway init
railway add --service umami-mcp
railway up
railway domain --port 3000No Umami credentials belong in Railway variables. Each MCP client sends its own locally configured credentials with its requests.
Security
Local stdio credentials are read from environment variables and are never returned by tools.
Hosted credentials arrive in request headers populated by the user's local MCP client and are never logged or persisted by the service.
The public HTTP service is stateless per MCP request and does not persist Umami credentials or session tokens.
Hosted targets must use HTTPS, resolve only to public network addresses, contain no embedded URL credentials, and may not redirect.
Browser-originated requests are rejected, and MCP requests are rate limited per client address.
The server exposes analytics reads only; it has no create, update, delete, or reset tools.
API errors include the status and Umami's error message without dumping request headers or credentials.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceRead-only MCP server for Umami analytics. It talks to the Umami REST API directly over HTTP, supporting self-hosted and cloud setups.822MIT
- Alicense-qualityAmaintenanceSelf-hosted web analytics platform that exposes analytics data via the Model Context Protocol, enabling natural language queries about traffic, page views, web vitals, and custom events.5MIT
- Alicense-qualityBmaintenanceMCP server for Umami Analytics that provides read-only tools to query website stats, events, sessions, reports, and more, enabling natural language analytics queries.132MIT
- AlicenseAqualityBmaintenanceA read-only MCP server for Umami analytics, enabling natural language queries of website stats, traffic trends, events, sessions, and analytics reports.13121Elastic 2.0
Related MCP Connectors
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Read-only Yandex Metrika MCP. Query visits, sources, geo, devices and more in plain language.
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/upnorthmedia/umami-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server