Skip to main content

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 websites
  • get_stats - Get visitor statistics
  • get_pageviews - View page traffic over time
  • get_metrics - See browsers, countries, devices, and more
  • get_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 to https://api.umami.is/v1

Auth rules:

  • Umami Cloud: only UMAMI_API_KEY is supported.
  • Self-hosted: you can use UMAMI_API_KEY or UMAMI_USERNAME + UMAMI_PASSWORD.
  • You must configure at least one of these: UMAMI_API_KEY OR (UMAMI_USERNAME and UMAMI_PASSWORD).
  • For self-hosted username/password auth, set UMAMI_API_BASE to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

umami_mcp_server-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

umami_mcp_server-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for umami_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9dbb4952eb0932f50c54686613b05dde9ff359d9017e91d785724e7d062e2914
MD5 14b94a51c25bdf887b682b83a29fd390
BLAKE2b-256 82366adb0923d95e562777ac1b3daba467f6b35b1c4de575e7ef4a3242d0fc85

See more details on using hashes here.

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

Hashes for umami_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 154b2e0152e09bc3d927d96c40328d960525b0eea7fa8566c978e41d1280eb72
MD5 bdda5e8d38ce29e1f96052d16966c2de
BLAKE2b-256 67d7542501c876fd8f28fe941cce7b03996a3e002b2768ff8ab1add82f202f94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page