Matomo

Matomo

Matomo web analytics: visits, page and entry-page reports, referrers, countries and devices, goal conversions and live visitor detail. Reporting API on Matomo Cloud or your own instance, token_auth.

7 天免费 · 无需信用卡 · EU 托管

问 Matomo 任何事

通过 AnythingMCP 对 Matomo 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 Matomo
Matomo · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 Matomo。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 Matomo

Matomo 指南

面向主流 AI 客户端的逐步设置。

配置 Matomo

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

Getting a token

  1. Sign in to Matomo and open Administration → Personal → Security → Auth tokens, then Create new token.
  2. Leave 'Only allow secure requests' unticked only if you must — with it ticked, Matomo 4+ requires the token in a POST body rather than a query parameter. This adapter sends it as a query parameter (GET), which is Matomo's classic Reporting API shape and what the majority of installs accept.
  3. Set MATOMO_URL to your Matomo root (no trailing slash, no /index.php) and MATOMO_TOKEN to the token.

If every call returns an authentication error on Matomo 5, the token was created with the secure-requests flag. Create a second token without it, or build a custom connector that POSTs token_auth in the body.

Everything is one endpoint. Matomo's Reporting API is index.php?module=API&method=Module.action&idSite=…&period=…&date=…&format=JSON. That is why every tool here shares a path and differs only in the method parameter.

idSite, period and date are required on every report, and they mean:

  • idSite — the numeric site id. matomo_list_sites gives you the list.
  • periodday, week, month, year or range.
  • date2026-09-17, or a keyword like today, yesterday, last7, last30, previous7. With period=range, a comma-separated pair: 2026-09-01,2026-09-30.

A multi-period request (period=day&date=last30) returns an object keyed by date, not a flat array. That is the shape, not an error.

Segments narrow a report without changing it: countryCode==de, deviceType==smartphone, visitCount>2, joined with ; for AND and , for OR.

Self-hosted, which is the thing to plan for.

  • On AnythingMCP Cloud the instance must be reachable from the public internet on a real hostname with a valid TLS certificate. A self-signed certificate will fail: the connector offers no trust-anything switch.
  • On an internal host (analytics.intern, 10.0.0.x), self-host AnythingMCP on the same network and add that host to SSRF_ALLOWED_HOSTS, or the outbound guard refuses the call before it is made.

你的 AI 距离 Matomo 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。