原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Matomo Analytics

作者:Liohtml版本 0.1.4i★ –i在你的电脑上运行
注册名称io.github.Liohtml/matomo-mcp

安装

概览

作者提供的说明(英文原文)

Curated read-only Matomo Analytics tools: traffic, pages, referrers, e-commerce, real-time & more.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 营销与社交媒体
  • 你需要填写:MATOMO_URL, MATOMO_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MATOMO_URL, MATOMO_TOKEN, MATOMO_DEFAULT_SITE_ID, MATOMO_EXTRA_HEADERS, MATOMO_TIMEOUT_SECS, MATOMO_MAX_RESPONSE_CHARS, MATOMO_INSECURE

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "matomo": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MATOMO_URL",
        "-e",
        "MATOMO_TOKEN",
        "-e",
        "MATOMO_DEFAULT_SITE_ID",
        "-e",
        "MATOMO_EXTRA_HEADERS",
        "-e",
        "MATOMO_TIMEOUT_SECS",
        "-e",
        "MATOMO_MAX_RESPONSE_CHARS",
        "-e",
        "MATOMO_INSECURE",
        "ghcr.io/liohtml/matomo-mcp:v0.1.4"
      ],
      "env": {
        "MATOMO_URL": "your-value",
        "MATOMO_TOKEN": "your-value",
        "MATOMO_DEFAULT_SITE_ID": "your-value",
        "MATOMO_EXTRA_HEADERS": "your-value",
        "MATOMO_TIMEOUT_SECS": "your-value",
        "MATOMO_MAX_RESPONSE_CHARS": "your-value",
        "MATOMO_INSECURE": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add matomo --env MATOMO_URL=your-value --env MATOMO_TOKEN=your-value --env MATOMO_DEFAULT_SITE_ID=your-value --env MATOMO_EXTRA_HEADERS=your-value --env MATOMO_TIMEOUT_SECS=your-value --env MATOMO_MAX_RESPONSE_CHARS=your-value --env MATOMO_INSECURE=your-value -- docker run -i --rm -e MATOMO_URL -e MATOMO_TOKEN -e MATOMO_DEFAULT_SITE_ID -e MATOMO_EXTRA_HEADERS -e MATOMO_TIMEOUT_SECS -e MATOMO_MAX_RESPONSE_CHARS -e MATOMO_INSECURE ghcr.io/liohtml/matomo-mcp:v0.1.4

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "matomo": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MATOMO_URL",
        "-e",
        "MATOMO_TOKEN",
        "-e",
        "MATOMO_DEFAULT_SITE_ID",
        "-e",
        "MATOMO_EXTRA_HEADERS",
        "-e",
        "MATOMO_TIMEOUT_SECS",
        "-e",
        "MATOMO_MAX_RESPONSE_CHARS",
        "-e",
        "MATOMO_INSECURE",
        "ghcr.io/liohtml/matomo-mcp:v0.1.4"
      ],
      "env": {
        "MATOMO_URL": "your-value",
        "MATOMO_TOKEN": "your-value",
        "MATOMO_DEFAULT_SITE_ID": "your-value",
        "MATOMO_EXTRA_HEADERS": "your-value",
        "MATOMO_TIMEOUT_SECS": "your-value",
        "MATOMO_MAX_RESPONSE_CHARS": "your-value",
        "MATOMO_INSECURE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "matomo": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MATOMO_URL",
        "-e",
        "MATOMO_TOKEN",
        "-e",
        "MATOMO_DEFAULT_SITE_ID",
        "-e",
        "MATOMO_EXTRA_HEADERS",
        "-e",
        "MATOMO_TIMEOUT_SECS",
        "-e",
        "MATOMO_MAX_RESPONSE_CHARS",
        "-e",
        "MATOMO_INSECURE",
        "ghcr.io/liohtml/matomo-mcp:v0.1.4"
      ],
      "env": {
        "MATOMO_URL": "your-value",
        "MATOMO_TOKEN": "your-value",
        "MATOMO_DEFAULT_SITE_ID": "your-value",
        "MATOMO_EXTRA_HEADERS": "your-value",
        "MATOMO_TIMEOUT_SECS": "your-value",
        "MATOMO_MAX_RESPONSE_CHARS": "your-value",
        "MATOMO_INSECURE": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MATOMO_URL 必填 env
    Matomo instance URL, e.g. https://matomo.example.com
  • MATOMO_TOKEN 机密 必填 env
    Matomo API token (token_auth) with view access
  • MATOMO_DEFAULT_SITE_ID env
    Optional default site ID so tools don't require an explicit site_id
  • MATOMO_EXTRA_HEADERS env
    Extra HTTP headers as comma-separated 'Name:Value' pairs (auth proxies, Zero-Trust)
  • MATOMO_TIMEOUT_SECS env
    Per-request timeout in seconds (default 30)
  • MATOMO_MAX_RESPONSE_CHARS env
    Response budget in characters before truncation (default 50000)
  • MATOMO_INSECURE env
    Set to 'true' to accept self-signed TLS certificates (explicit opt-in)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Liohtml 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“营销与社交媒体”中的其他服务器比较i

  • 星标数多于此分类中其他 2969 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2969 个服务器的 57% 更新
  • 基础检查结果等于或优于此分类中其他 2969 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Matomo Analytics 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:MATOMO_URL, MATOMO_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.4)于22天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Rust, Docker。

有什么可以替代它?

同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

MCP YouTube Transcript

作者:jkawamoto

An MCP server retrieving transcripts of YouTube videos

在你的电脑上运行★ 495MIT9天前更新
安装

Google Analytics MCP

作者:surendranb

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

在你的电脑上运行★ 244MIT9天前更新
安装

AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.

在云端运行★ 137MIT10天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

matomo-mcp

Talk to your Matomo Analytics. From Claude, Cursor, VS Code, or any MCP client.

*15 curated, read-only analytics tools + a full-API escape hatch. Single binary, instant startup, context-friendly.*

Quickstart · Clients · Tools · Configuration · FAQ


You  ▸ How was traffic yesterday, and where did it come from?

Claude ▸ Yesterday you had 14,472 visits (11,416 unique visitors, 66% bounce rate). Top acquisition channels:

  1. Organic search — 6,120 visits (Google 92%)
  2. Direct — 4,890 visits
  3. AI assistants — 1,204 visits (↑ 31% vs. last week) Want me to break down which landing pages converted best?

Every question your Matomo dashboard can answer, your AI assistant can now answer too — including follow-ups, comparisons, and "why?".

✨ Why matomo-mcp?

🎯 Curated, not generated15 hand-crafted tools modeled on real analytics questions — not 70+ auto-generated API mirrors that flood the model's context and degrade tool selection.
⚡ Instant startupNo introspection round-trips. One static binary, no Node, no Python, no runtime. Starts in milliseconds.
🔒 Safe by defaultRead-only reporting tools. Token sent via POST only (never in URLs/logs), redacted from every error. TLS verification on by default.
🧠 Context-friendlyRow limits on every report and a hard response budget with actionable guidance — one tool call can never blow up the context window.
📡 Real-time includedLive visitor counters and a visit log (matomo_realtime) — see what's happening *right now*.
🧰 Never a cagematomo_api reaches any Reporting API method (funnels, heatmaps, custom dimensions, …) when the curated tools don't cover it.
🔁 ResilientAutomatic retries with backoff on 429/5xx/network hiccups. Helpful, hint-annotated error messages the model can act on.

🚀 Quickstart

1. Install

Prebuilt binary (Linux, macOS, Windows) — grab it from Releases, or:

# Cargo

cargo install matomo-mcp

From source

cargo install --git https://github.com/Liohtml/matomo-mcp

Docker

docker pull ghcr.io/liohtml/matomo-mcp

2. Get a Matomo API token

Matomo → Settings (⚙) → Personal → Security → Auth tokens → *Create new token*. View-only permissions are all it needs.

3. Verify the connection
matomo-mcp --url https://your-matomo.example.com --token YOUR_TOKEN --check
✓ Connected — Matomo version 5.2.1

✓ Token grants access to 3 site(s): #1 My Shop (https://shop.example.com) #2 Blog (https://blog.example.com) #3 Docs (https://docs.example.com)

4. Connect your client ⬇

🔌 Connect your client

Claude Code

claude mcp add matomo \

--env MATOMO_URL=https://your-matomo.example.com \ --env MATOMO_TOKEN=YOUR_TOKEN \ --env MATOMO_DEFAULT_SITE_ID=1 \ -- matomo-mcp

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

{

"mcpServers": { "matomo": { "command": "matomo-mcp", "env": { "MATOMO_URL": "https://your-matomo.example.com", "MATOMO_TOKEN": "YOUR_TOKEN", "MATOMO_DEFAULT_SITE_ID": "1" } } } }

Cursor

.cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{

"mcpServers": { "matomo": { "command": "matomo-mcp", "env": { "MATOMO_URL": "https://your-matomo.example.com", "MATOMO_TOKEN": "YOUR_TOKEN", "MATOMO_DEFAULT_SITE_ID": "1" } } } }

VS Code (GitHub Copilot)

.vscode/mcp.json:

{

"servers": { "matomo": { "type": "stdio", "command": "matomo-mcp", "env": { "MATOMO_URL": "https://your-matomo.example.com", "MATOMO_TOKEN": "${input:matomo-token}", "MATOMO_DEFAULT_SITE_ID": "1" } } }, "inputs": [ { "id": "matomo-token", "type": "promptString", "description": "Matomo API token", "password": true } ] }

Windsurf / Zed / other MCP clients

Any client that speaks MCP over stdio works with the generic shape:

{

"command": "matomo-mcp", "args": [], "env": { "MATOMO_URL": "https://your-matomo.example.com", "MATOMO_TOKEN": "YOUR_TOKEN", "MATOMO_DEFAULT_SITE_ID": "1" } }

Docker (any client)

{

"mcpServers": { "matomo": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MATOMO_URL", "-e", "MATOMO_TOKEN", "-e", "MATOMO_DEFAULT_SITE_ID", "ghcr.io/liohtml/matomo-mcp" ], "env": { "MATOMO_URL": "https://your-matomo.example.com", "MATOMO_TOKEN": "YOUR_TOKEN", "MATOMO_DEFAULT_SITE_ID": "1" } } } }

Streamable HTTP — host once, connect many clients

Run the server once (on a workstation, LAN box, or container) and point any number of MCP clients at it:

matomo-mcp --url https://your-matomo.example.com --token YOUR_TOKEN --http 127.0.0.1:8080

Clients connect to http://127.0.0.1:8080/mcp with the streamable HTTP transport, e.g.:

claude mcp add --transport http matomo http://127.0.0.1:8080/mcp

[!WARNING]

The HTTP endpoint has no built-in authentication. Keep it bound to

127.0.0.1, or put a reverse proxy with auth (or a firewall) in front

before exposing it beyond localhost.

[!TIP]

Set MATOMO_DEFAULT_SITE_ID and the model never has to ask which site you mean.

No token at hand? Try it against the public demo: --url https://demo.matomo.cloud --default-site-id 1 (no token needed).

🧭 Tools

ToolAnswers questions like
matomo_list_sites*"Which sites do we track?"*
matomo_visits_summary*"How much traffic did we get last week?"*
matomo_pages*"What are our top pages? Where do people exit?"*
matomo_referrers*"Where do visitors come from? Which campaigns work? What do AI assistants send us?"*
matomo_events*"How often was the configurator opened?"*
matomo_goals*"What's our conversion rate per goal?"*
matomo_ecommerce*"Revenue this month? Best-selling products?"*
matomo_geo*"Which countries/cities do visitors come from?"*
matomo_devices*"Mobile vs. desktop? Which browsers?"*
matomo_visit_times*"When during the day/week do people visit?"*
matomo_site_search*"What do people search for on our site — and find nothing?"*
matomo_realtime*"Who's on the site right now?"*
matomo_page_performance*"Which pages load slowly?"*
matomo_annotations*"Which deploys or campaign launches line up with that traffic spike?"*
matomo_apiEverything else — funnels, heatmaps, custom dimensions, any Module.action of the Reporting API

All tools accept site_id, period (day/week/month/year/range), date (today, yesterday, 2026-07-01, last30, or start,end ranges), an optional segment (e.g. deviceType==mobile;country==DE), and a row limit.

Prompts to try
  • *"Compare this week's traffic with last week — what changed and why?"*
  • *"Top 10 landing pages by conversions this month, with bounce rates."*
  • *"Are we getting traffic from ChatGPT or Perplexity? Trend over 3 months."*
  • *"Which internal searches return no results? Suggest content we should create."*
  • *"Anything unusual in the visitor log right now?"*

⚙️ Configuration

FlagEnvDefaultDescription
--urlMATOMO_URL—Matomo instance URL (sub-directory installs like https://example.com/matomo/ work). Without it the server still starts and tool calls return setup guidance
--tokenMATOMO_TOKEN—API token (token_auth), view access is enough
--default-site-idMATOMO_DEFAULT_SITE_ID—Site used when the model doesn't specify one
--headerMATOMO_EXTRA_HEADERS—Extra HTTP headers (Name:Value, repeatable / comma-separated) — for auth proxies, Zero-Trust, multi-tenant setups
--timeout-secsMATOMO_TIMEOUT_SECS30Per-request timeout
--max-response-charsMATOMO_MAX_RESPONSE_CHARS50000Response budget before truncation
--httpMATOMO_HTTP_BIND—Serve MCP over streamable HTTP on this address instead of stdio (endpoint: http:// /mcp)
--insecureMATOMO_INSECUREfalseAccept self-signed TLS certificates (explicit opt-in)
--check——Verify URL + token + site access, then exit

🆚 How is this different from FGRibreau/mcp-matomo?

mcp-matomo (which inspired this project — thanks! 🙏) introspects your Matomo instance at startup and generates one MCP tool per API method. matomo-mcp takes the opposite approach:

matomo-mcpmcp-matomo
Tool set15 curated tools + escape hatch~70+ generated tools
Model context costSmall, stableLarge, instance-dependent
Parameter typesExact, hand-written enums/defaultsInferred from parameter names
StartupInstant (no network I/O)Introspection round-trips (or cached spec file)
TLS verificationOn by defaultDisabled for introspection
Sub-directory installs✅Path is overwritten
Response size guardRow limits + hard budget—
Retries on transient errors✅—
Real-time (Live) tools✅— (not part of report metadata)

If you want *every* API method as its own tool, use mcp-matomo. If you want the model to reliably pick the right tool and never flood its context, use matomo-mcp.

🩺 Troubleshooting

"site_id is required"

Either pass --default-site-id 1 (recommended) or let the model call matomo_list_sites first.

401 / "cannot be authenticated"

Run matomo-mcp --url ... --token ... --check. If it fails: regenerate the token (Settings → Personal → Security), make sure it has at least view access to the site.

404 or HTML instead of JSON

MATOMO_URL must point at the Matomo root — the folder containing index.php. For https://example.com/matomo/index.php, use https://example.com/matomo/.

Behind Cloudflare Access / OAuth2 proxy / Zero Trust?

Inject the bypass headers: --header "CF-Access-Client-Id:..." --header "CF-Access-Client-Secret:..." (or via MATOMO_EXTRA_HEADERS).

Responses feel truncated

That's the context guard doing its job. Ask for fewer rows, a shorter date range, or raise --max-response-chars.

🗺️ Roadmap

  • Streamable HTTP transp

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx