MCP server exposing Umami analytics (Cloud + self-hosted)
Project description
Umami MCP Server
MCP server that exposes Umami Cloud analytics via tools.
Tools
get_websites- List all your websitesget_stats- Get visitor statisticsget_pageviews- View page traffic over timeget_metrics- See browsers, countries, devices, and moreget_active- Current active visitors
Requirements
- Python 3.13+
uv
Configure
Umami Cloud API base URL: https://api.umami.is/v1
Environment variables:
UMAMI_API_KEY- Umami Cloud API key (required for Umami Cloud)UMAMI_USERNAME- Umami username (self-hosted only)UMAMI_PASSWORD- Umami password (self-hosted only)UMAMI_API_BASE(optional) - defaults tohttps://api.umami.is/v1
Auth rules:
- Umami Cloud: only
UMAMI_API_KEYis supported. - Self-hosted: you can use
UMAMI_API_KEYorUMAMI_USERNAME+UMAMI_PASSWORD. - You must configure at least one of these:
UMAMI_API_KEYOR (UMAMI_USERNAMEandUMAMI_PASSWORD). - For self-hosted username/password auth, set
UMAMI_API_BASEto your instance API root (e.g.https://your-umami.example/api).
All tool parameters that represent times accept ISO datetimes. If a datetime is missing a timezone, it is treated as UTC.
Run locally
uvx run umami-mcp-server
OpenCode MCP config
Example ~/.config/opencode/opencode.json (replace the API key and adjust the path if your clone lives elsewhere):
{
"$schema": "https://opencode.ai/config.json",
"theme": "system",
"mcp": {
"umami": {
"type": "local",
"command": [
"uvx",
"umami-mcp-server"
],
"environment": {
"UMAMI_API_KEY": "YOUR_UMAMI_CLOUD_API_KEY",
"UMAMI_API_BASE": "https://api.umami.is/v1"
},
"enabled": true,
}
}
}
Self-hosted example:
{
"mcp": {
"umami": {
"type": "local",
"command": ["uvx", "umami-mcp-server"],
"environment": {
"UMAMI_USERNAME": "YOUR_USERNAME",
"UMAMI_PASSWORD": "YOUR_PASSWORD",
"UMAMI_API_BASE": "https://your-umami.example"
}
},
"enabled": true,
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file umami_mcp_server-0.1.1.tar.gz.
File metadata
- Download URL: umami_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dbb4952eb0932f50c54686613b05dde9ff359d9017e91d785724e7d062e2914
|
|
| MD5 |
14b94a51c25bdf887b682b83a29fd390
|
|
| BLAKE2b-256 |
82366adb0923d95e562777ac1b3daba467f6b35b1c4de575e7ef4a3242d0fc85
|
File details
Details for the file umami_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: umami_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
154b2e0152e09bc3d927d96c40328d960525b0eea7fa8566c978e41d1280eb72
|
|
| MD5 |
bdda5e8d38ce29e1f96052d16966c2de
|
|
| BLAKE2b-256 |
67d7542501c876fd8f28fe941cce7b03996a3e002b2768ff8ab1add82f202f94
|