Matomo Analytics logo

Matomo Analytics

Query Matomo traffic, conversions, visitors, and reporting data through read-only MCP tools.

Install Matomo Analytics

Run the project’s own setup commands, in order.

Setup steps from the project

Matomo Analytics installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo install matomo-mcp
    
  2. 2. Install
    cargo install --git https://github.com/Liohtml/matomo-mcp
    
  3. 3. Install
    docker pull ghcr.io/liohtml/matomo-mcp
    
  4. 4. Check the setup
    matomo-mcp --url https://your-matomo.example.com --token YOUR_TOKEN --check
    
  5. 5. Add to 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
    
  6. 6. Start the server
    matomo-mcp --url https://your-matomo.example.com --token YOUR_TOKEN --http 127.0.0.1:8080
    

Overview

Matomo Analytics MCP server exposes curated, read-only Matomo reporting tools to MCP clients such as Claude Desktop, Cursor, and Windsurf. It runs as a Rust binary over stdio or streamable HTTP, authenticates with a Matomo API token, and supports traffic, pages, referrers, conversions, e-commerce, real-time, and other reports. Use it when an AI assistant needs to answer analytics questions without giving it write access to Matomo. The server also includes a general Reporting API tool for methods not covered by the curated tools.

Use cases

  • Analyze weekly traffic and compare it with prior periods
  • Identify top pages, referrers, campaigns, and conversion sources
  • Monitor current visitors and unusual activity
  • Review e-commerce revenue and product performance
  • Explore Matomo Reporting API methods beyond the curated tools

Key features

  • 15 curated read-only Matomo reporting tools
  • General Matomo Reporting API escape hatch
  • Real-time visitor counters and visit log access
  • Stdio and streamable HTTP transports
  • Date ranges, segments, site IDs, and row limits
  • Retries, response budgets, and token redaction

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/23 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit3mo agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Matomo Analytics works

What Matomo Analytics MCP server does

Matomo Analytics MCP server connects an MCP-compatible AI client to a Matomo instance and turns reporting queries into structured tool calls. Its primary interface is a set of 15 read-only tools covering common analytics questions, including traffic summaries, top pages, referrers, events, goals, e-commerce, geography, devices, visit timing, internal search, real-time visitors, page performance, annotations, and site listings.

The server is intended for analysis rather than administration. It can retrieve reporting data but does not provide tools for changing Matomo configuration or writing analytics data. A separate matomo_api tool provides access to other Matomo Reporting API methods, including areas such as funnels, heatmaps, and custom dimensions.

How it works

The binary communicates with MCP clients over stdio by default. It can also expose a streamable HTTP endpoint, allowing multiple clients to connect to one running instance. The HTTP endpoint does not include built-in authentication, so the README recommends keeping it on localhost or placing authentication, a firewall, or a reverse proxy in front of it before remote exposure.

Tool calls can specify a Matomo site, reporting period, date or date range, segment, and row limit. Supported periods include day, week, month, year, and range. Date examples include relative values such as today, yesterday, and last30, as well as explicit dates and start/end ranges.

Responses are constrained by row limits and a response budget. The server also retries selected rate-limit, server, and network failures with backoff, while redacting the API token from errors and sending the token through POST requests rather than URLs.

Setup and configuration

Install the binary from the project’s releases, with Cargo, from the Git repository, or through the published Docker image. A Cargo installation uses the matomo-mcp package and produces the matomo-mcp executable.

Provide the Matomo instance URL through MATOMO_URL or the --url flag, and provide a Matomo authentication token through MATOMO_TOKEN or --token. The token should have view permissions. MATOMO_DEFAULT_SITE_ID can select a default site so the model does not need to ask for one on every request.

Before connecting a client, the --check option verifies the Matomo connection and reports the Matomo version and sites available to the token.

Tools and capabilities

  • List tracked Matomo sites.
  • Summarize visits and visitor traffic.
  • Inspect pages, exits, referrers, campaigns, events, goals, and e-commerce results.
  • Analyze visitor geography, devices, visit times, and internal site searches.
  • View current visitor activity through real-time reporting.
  • Check page performance and relate traffic changes to annotations.
  • Call other Matomo Reporting API methods through matomo_api.

Limitations and notes

Matomo Analytics MCP server requires access to a Matomo instance for normal use and relies on a Matomo API token unless connecting to the documented public demo. The available reporting data depends on the token’s permissions and the selected site. The built-in HTTP mode has no authentication of its own, so exposing it outside localhost requires additional protection. The curated tools are read-only; broader API access does not imply that the server provides Matomo administration tools.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Matomo Analytics

Install the `matomo-mcp` binary from the project releases, with Cargo using `cargo install matomo-mcp`, from the Git repository, or with the documented Docker image.

Set `MATOMO_URL` for the Matomo instance and `MATOMO_TOKEN` for the API token. `MATOMO_DEFAULT_SITE_ID` is optional and selects the default site.

Yes. The README provides a Claude Desktop stdio configuration using the `matomo-mcp` command and the Matomo URL, token, and default site ID.

Yes. The `matomo_realtime` tool provides live visitor counters and a visit log.

Yes. The `matomo_api` tool can call other Matomo Reporting API methods, including funnels, heatmaps, and custom dimensions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMatomo Analytics AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/matomo-analytics?style=directory)](https://allmcps.com/mcp/matomo-analytics)
HTML Embed
<a href="https://allmcps.com/mcp/matomo-analytics"><img src="https://allmcps.com/api/badge/matomo-analytics?style=directory" alt="Matomo Analytics on AllMCPs" /></a>