Relaticle
Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.
Curated read-only Matomo Analytics tools: traffic, pages, referrers, e-commerce, real-time & more.
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月14日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
Matomo Analytics のキーが必要です(提供元のサイトで作成) · 設定を 1 項目入力 (MATOMO_URL) · 先にパソコンへ Docker を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server Matomo Analytics を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "matomo": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MATOMO_URL", "-e", "MATOMO_TOKEN", "ghcr.io/liohtml/matomo-mcp:v0.1.4" ], "env": { "MATOMO_URL": "your-value", "MATOMO_TOKEN": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) MATOMO_TOKEN, MATOMO_URL は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Matomo Analytics のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
docker --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version
一度入れれば、Docker を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。
MATOMO_URL Matomo instance URL, e.g. https://matomo.example.com説明は英語の原文のままです。
SettingsDeveloperEdit Config
{
"mcpServers": {
"matomo": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MATOMO_URL",
"-e",
"MATOMO_TOKEN",
"ghcr.io/liohtml/matomo-mcp:v0.1.4"
],
"env": {
"MATOMO_URL": "your-value",
"MATOMO_TOKEN": "your-value"
}
}
}
}キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Matomo Analytics を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Matomo Analytics を使っていると言うか、回答に Matomo Analytics のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
MATOMO_DEFAULT_SITE_ID Optional default site ID so tools don't require an explicit site_idMATOMO_EXTRA_HEADERS Extra HTTP headers as comma-separated 'Name:Value' pairs (auth proxies, Zero-Trust)MATOMO_TIMEOUT_SECS Per-request timeout in seconds (default 30)MATOMO_MAX_RESPONSE_CHARS Response budget in characters before truncation (default 50000)MATOMO_INSECURE Set to 'true' to accept self-signed TLS certificates (explicit opt-in)説明は英語の原文のままです。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Matomo Analytics につなげません
Matomo Analytics はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · Matomo Analytics につなげるアプリを使う
B · マーケティング・SNS の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
Matomo Analytics のキーが必要です(提供元のサイトで作成) · 設定を 1 項目入力 (MATOMO_URL) · 先にパソコンへ Docker を入れてください(1 回だけ)
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server Matomo Analytics を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user matomo --env MATOMO_URL=your-value --env MATOMO_TOKEN=your-value -- docker run -i --rm -e MATOMO_URL -e MATOMO_TOKEN ghcr.io/liohtml/matomo-mcp:v0.1.4 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) MATOMO_TOKEN, MATOMO_URL は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Matomo Analytics のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
docker --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version
一度入れれば、Docker を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。
MATOMO_URL Matomo instance URL, e.g. https://matomo.example.com説明は英語の原文のままです。
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user matomo --env MATOMO_URL=your-value --env MATOMO_TOKEN=your-value -- docker run -i --rm -e MATOMO_URL -e MATOMO_TOKEN ghcr.io/liohtml/matomo-mcp:v0.1.4Enter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Matomo Analytics が一覧にあり、接続済みと表示されれば OK です
Matomo Analytics を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Matomo Analytics を使っていると言うか、回答に Matomo Analytics のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
MATOMO_DEFAULT_SITE_ID Optional default site ID so tools don't require an explicit site_idMATOMO_EXTRA_HEADERS Extra HTTP headers as comma-separated 'Name:Value' pairs (auth proxies, Zero-Trust)MATOMO_TIMEOUT_SECS Per-request timeout in seconds (default 30)MATOMO_MAX_RESPONSE_CHARS Response budget in characters before truncation (default 50000)MATOMO_INSECURE Set to 'true' to accept self-signed TLS certificates (explicit opt-in)説明は英語の原文のままです。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
Matomo Analytics のキーが必要です(提供元のサイトで作成) · 設定を 1 項目入力 (MATOMO_URL) · 先にパソコンへ Docker を入れてください(1 回だけ)
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server Matomo Analytics を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "matomo": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MATOMO_URL", "-e", "MATOMO_TOKEN", "ghcr.io/liohtml/matomo-mcp:v0.1.4" ], "env": { "MATOMO_URL": "your-value", "MATOMO_TOKEN": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) MATOMO_TOKEN, MATOMO_URL は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Matomo Analytics のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
docker --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version
一度入れれば、Docker を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。
MATOMO_URL Matomo instance URL, e.g. https://matomo.example.com説明は英語の原文のままです。
Matomo Analytics の設定で MATOMO_TOKEN, MATOMO_URL が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Matomo Analytics を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Matomo Analytics を使っていると言うか、回答に Matomo Analytics のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
MATOMO_DEFAULT_SITE_ID Optional default site ID so tools don't require an explicit site_idMATOMO_EXTRA_HEADERS Extra HTTP headers as comma-separated 'Name:Value' pairs (auth proxies, Zero-Trust)MATOMO_TIMEOUT_SECS Per-request timeout in seconds (default 30)MATOMO_MAX_RESPONSE_CHARS Response budget in characters before truncation (default 50000)MATOMO_INSECURE Set to 'true' to accept self-signed TLS certificates (explicit opt-in)説明は英語の原文のままです。
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
Matomo Analytics のキーが必要です(提供元のサイトで作成) · 設定を 1 項目入力 (MATOMO_URL) · 先にパソコンへ Docker を入れてください(1 回だけ)
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server Matomo Analytics を入れてください。順番に:1) docker --version で Docker があるか確認。なければ https://www.docker.com/products/docker-desktop/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "matomo": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MATOMO_URL", "-e", "MATOMO_TOKEN", "ghcr.io/liohtml/matomo-mcp:v0.1.4" ], "env": { "MATOMO_URL": "your-value", "MATOMO_TOKEN": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) MATOMO_TOKEN, MATOMO_URL は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、Matomo Analytics のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
docker --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: Docker Desktop を入れます:Mac は Docker.dmg を開いてアイコンを「アプリケーション」へドラッグ(Mac に合わせて Apple silicon か Intel を選ぶ)· Windows は Docker Desktop Installer.exe をダブルクリック · 入れたら Docker Desktop アプリを開いたままにします。curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: docker --version
一度入れれば、Docker を使うすべてのツールで使えます
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
これはプログラムの設定でキーではありません。登録は不要で、作者の説明どおりに入力します。
MATOMO_URL Matomo instance URL, e.g. https://matomo.example.com説明は英語の原文のままです。
Matomo Analytics の設定で MATOMO_TOKEN, MATOMO_URL が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Matomo Analytics を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Matomo Analytics を使っていると言うか、回答に Matomo Analytics のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
MATOMO_DEFAULT_SITE_ID Optional default site ID so tools don't require an explicit site_idMATOMO_EXTRA_HEADERS Extra HTTP headers as comma-separated 'Name:Value' pairs (auth proxies, Zero-Trust)MATOMO_TIMEOUT_SECS Per-request timeout in seconds (default 30)MATOMO_MAX_RESPONSE_CHARS Response budget in characters before truncation (default 50000)MATOMO_INSECURE Set to 'true' to accept self-signed TLS certificates (explicit opt-in)説明は英語の原文のままです。
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Claude Code
claude mcp add --scope user matomo --env MATOMO_URL=your-value --env MATOMO_TOKEN=your-value -- docker run -i --rm -e MATOMO_URL -e MATOMO_TOKEN ghcr.io/liohtml/matomo-mcp:v0.1.4Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"matomo": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MATOMO_URL",
"-e",
"MATOMO_TOKEN",
"ghcr.io/liohtml/matomo-mcp:v0.1.4"
],
"env": {
"MATOMO_URL": "your-value",
"MATOMO_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"matomo": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MATOMO_URL",
"-e",
"MATOMO_TOKEN",
"ghcr.io/liohtml/matomo-mcp:v0.1.4"
],
"env": {
"MATOMO_URL": "your-value",
"MATOMO_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"matomo": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MATOMO_URL",
"-e",
"MATOMO_TOKEN",
"ghcr.io/liohtml/matomo-mcp:v0.1.4"
],
"env": {
"MATOMO_URL": "your-value",
"MATOMO_TOKEN": "your-value"
}
}
}
}MATOMO_URL 必須 envMATOMO_TOKEN 秘密 必須 envMATOMO_DEFAULT_SITE_ID envMATOMO_EXTRA_HEADERS envMATOMO_TIMEOUT_SECS envMATOMO_MAX_RESPONSE_CHARS envMATOMO_INSECURE env説明は英語の原文のままです。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
cargo: matomo-mcpoci: ghcr.io/liohtml/matomo-mcp:v0.1.4このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月15日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント Liohtml で確認済みです
コードの最終更新:3 か月前
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:MATOMO_TOKEN
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は3 か月前、最新バージョン(0.1.4)がレジストリに届いたのは31 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにRust, Dockerも必要です。
同じカテゴリには:Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.
Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.
Xquik is the world's fastest and cheapest X (Twitter) data API with the most complete X data.
Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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:
Every question your Matomo dashboard can answer, your AI assistant can now answer too — including follow-ups, comparisons, and "why?".
| 🎯 Curated, not generated | 15 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 startup | No introspection round-trips. One static binary, no Node, no Python, no runtime. Starts in milliseconds. |
| 🔒 Safe by default | Read-only reporting tools. Token sent via POST only (never in URLs/logs), redacted from every error. TLS verification on by default. |
| 🧠 Context-friendly | Row limits on every report and a hard response budget with actionable guidance — one tool call can never blow up the context window. |
| 📡 Real-time included | Live visitor counters and a visit log (matomo_realtime) — see what's happening *right now*. |
| 🧰 Never a cage | matomo_api reaches any Reporting API method (funnels, heatmaps, custom dimensions, …) when the curated tools don't cover it. |
| 🔁 Resilient | Automatic retries with backoff on 429/5xx/network hiccups. Helpful, hint-annotated error messages the model can act on. |
Prebuilt binary (Linux, macOS, Windows) — grab it from Releases, or:
# Cargo
cargo install matomo-mcp
cargo install --git https://github.com/Liohtml/matomo-mcp
docker pull ghcr.io/liohtml/matomo-mcp
Matomo → Settings (⚙) → Personal → Security → Auth tokens → *Create new token*. View-only permissions are all it needs.
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)
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_IDand 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).
| Tool | Answers 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_api | Everything 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.
| Flag | Env | Default | Description |
|---|---|---|---|
--url | MATOMO_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 |
--token | MATOMO_TOKEN | — | API token (token_auth), view access is enough |
--default-site-id | MATOMO_DEFAULT_SITE_ID | — | Site used when the model doesn't specify one |
--header | MATOMO_EXTRA_HEADERS | — | Extra HTTP headers (Name:Value, repeatable / comma-separated) — for auth proxies, Zero-Trust, multi-tenant setups |
--timeout-secs | MATOMO_TIMEOUT_SECS | 30 | Per-request timeout |
--max-response-chars | MATOMO_MAX_RESPONSE_CHARS | 50000 | Response budget before truncation |
--http | MATOMO_HTTP_BIND | — | Serve MCP over streamable HTTP on this address instead of stdio (endpoint: http:// /mcp) |
--insecure | MATOMO_INSECURE | false | Accept self-signed TLS certificates (explicit opt-in) |
--check | — | — | Verify URL + token + site access, then exit |
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-mcp | mcp-matomo | |
|---|---|---|
| Tool set | 15 curated tools + escape hatch | ~70+ generated tools |
| Model context cost | Small, stable | Large, instance-dependent |
| Parameter types | Exact, hand-written enums/defaults | Inferred from parameter names |
| Startup | Instant (no network I/O) | Introspection round-trips (or cached spec file) |
| TLS verification | On by default | Disabled for introspection |
| Sub-directory installs | ✅ | Path is overwritten |
| Response size guard | Row 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.
"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.