
Umami
io.github.mikusnuz由 GitHub 帳號 mikusnuz 發布v2.1.1更新於 Nov 3, 2026
MCP server for Umami Analytics v3 — analytics, boards, links, pixels, reports, replay, and more
概覽
面向 Umami Analytics v3 API 的 MCP 伺服器,讓助理查詢網站分析資料、執行報表,並管理自架或雲端 Umami 資源。
- 可以做什麼
- 查詢分析資料:統計、瀏覽量、指標、事件、工作階段、事件序列、即時與營收資料
- 管理網站:列出、建立、更新、重設、轉移網站並設定工作階段重播
- 執行與管理報表:已儲存報表的增刪改查,以及歸因、漏斗、目標、熱圖、旅程、留存、營收與 UTM 報表
- 管理看板、連結、像素、分群、同類群組、註解、分享以及 CSV ZIP 匯出
- 傳送收集資料:事件、瀏覽量、identify、效能、原始批次、心跳、連結與像素事件
- 管理使用者、團隊與兩步驗證,包括完成 2FA 登入
- 適用情境
- 適合讓助理直接回答 Umami 網站的流量與互動問題、建立或執行分析報表,或在對話中管理網站、看板、連結與分群。也適合需要從助理工作流程推送事件或瀏覽量資料到 Umami 的團隊。
- 執行需求
- 以 npm 套件 @mikusnuz/umami-mcp 在本機執行,需要 Node.js 20 或更新版本。需要相容 Umami v3.3 的自架執行個體(API 金鑰、工作階段屬性分群與註解需 3.4+),或 Umami Cloud。憑證:UMAMI_API_KEY,或自架登入所需的 UMAMI_URL、UMAMI_USERNAME 與 UMAMI_PASSWORD。可選 UMAMI_MODE 與 UMAMI_COLLECTOR_URL。需能連線至 Umami 執行個體的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Umami,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
English | 한국어
umami-mcp
Model Context Protocol server for the Umami Analytics v3 API. It supports self-hosted username/password or API-key authentication and Umami Cloud API keys, and exposes analytics, collection, administration, and v3 feature families such as boards, links, pixels, segments, session replay, shares, exports, performance, and revenue.
This version intentionally does not claim every private Umami route. Its tools track the documented API, including Umami 3.4 API-key authentication. Report tools use the legacy report contracts that Umami 3.4 continues to support.
Requirements
- Node.js 20 or newer, matching the MCP SDK's installed runtime dependencies
- Umami v3.3-compatible self-hosted instance (3.4+ for API keys, session-property segments and annotations), or Umami Cloud with the corresponding routes enabled
Installation
Or run it directly:
Configuration
Self-hosted
UMAMI_URL is the instance origin. A trailing /api is accepted, but is not
required.
On Umami 3.4+, create an API key under Settings → API keys and replace
UMAMI_USERNAME and UMAMI_PASSWORD with UMAMI_API_KEY. Set
UMAMI_MODE to self-hosted to select the deployment mode explicitly.
Umami Cloud
Cloud management calls default to https://api.umami.is/v1; tool paths are
translated from self-hosted /api/... paths to Cloud /v1/... paths. Set
UMAMI_URL to https://api.umami.is/v1/us or
https://api.umami.is/v1/eu when an explicit Cloud region is required.
For a Cloud API proxy on another hostname, also set UMAMI_MODE to cloud.
Environment variables
For Cloud, the collector defaults to https://cloud.umami.is. For self-hosted
Umami it defaults to UMAMI_URL.
An API key without UMAMI_URL, or a URL on api.umami.is, selects Cloud.
Any other configured URL selects self-hosted mode, even when using an API key.
Authentication and public routes
Management and analytics tools send a bearer token. The client logs in to a self-hosted instance lazily and caches the returned JWT when using a password. API keys are sent directly as the bearer credential on both deployment types.
The public collection routes do not require credentials:
send_event,send_identify,send_performancebatch_events(raw JSON array, up to 500 items)heartbeat,get_share,get_recorder_config
If self-hosted login reports that two-factor authentication is required, call
complete_two_factor_login with a current TOTP or backup code, then retry the
original tool. Setup and policy tools are also exposed for self-hosted Umami.
Umami Cloud does not expose /me/password, /users, or /users/* through an
API key. Those tools are for self-hosted instances.
Tool groups
Use MCP tools/list for the complete, machine-readable list and schemas.
Important v3 contract details
- A pageview is sent as
{ "type": "event" }with no eventname; the oldpageviewtype is no longer valid. /api/batchreceives the event objects as a raw array, not{ "events": [...] }. The tool returns Umami'sprocessed,errors, and per-itemdetailsfields and marks partial failures as an MCP error result.- Collector calls set a stable non-bot
User-Agentheader as required by Umami;send_eventand batch items may also supply the visitor'suserAgentand trusted server-sideipin the payload. - Analytics URL filters and page metrics use
path; the oldurlmetric was removed. Host aggregation useshostname. - Additional
filtersare preserved even when the corresponding named option is omitted. An explicitly supplied named option takes precedence overfilters. - Segment creation and updates support
filters,sessionPropertyFilters,match,dateRange, andaction. Session-property data types are 1=string, 2=number, 3=boolean, 4=date, 5=array. Cohorts do not support session-property filters. Unknown nested fields are rejected rather than silently discarded. - Annotations require Umami 3.4+ and website edit permission for writes. Supply
an ISO date or timestamp, a 1–500 character note, and optionally
allDay(defaulttrue). Updates replace all three fields; list date filters require bothstartAtandendAtin milliseconds. An older server may return 404. - Supported time units are
minute,hour,day,month, andyear. get_event_seriesandget_sessions_weeklyrequire an IANA timezone.list_reportsrequireswebsiteId; report execution sends{ websiteId, type, filters, parameters }.- Team website membership is changed through
transfer_website; the removed team-website POST/DELETE routes are not exposed.
Development
npm test builds the TypeScript server, checks Cloud/self-hosted URL and auth
behavior, verifies raw public batch requests and the 2FA login flow, and
validates key MCP schemas.
Official references
- Umami API overview
- Authentication
- Cloud API keys
- Sending statistics
- Website statistics
- Reports
- Cloud/API changelog
- Umami v3.4.0 server source
- Report API compatibility
License
MIT
來源:README.md,提交 5bbcee0
工具
0版本歷史
3- v2.1.1最新Oct 19, 2026
- v2.0.1Oct 8, 2026
- v1.2.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分