MCP server · Analytics

Matomo MCP server

Matomo in any MCP client, through Memtro: Matomo does not publish this server. Memtro's Matomo connector reads Matomo through its API with the credentials you connect, and one endpoint hands those tools, every other system you connect and Memtro's memory tools to Claude Code, Cursor, Claude Desktop or anything else that speaks Streamable HTTP, as you.

What the model can do

Matomo web analytics (cloud or self-hosted): visits, unique visitors, actions and bounce rate for a day, week, month, year or range against the period before, top pages, referrers and channels, countries, devices and browsers, goal conversions, and who is on the site right now; and, when granted, add, edit or delete annotations on a site's graphs, create, change or delete goals, and add a new site to track.

Reads

  • matomo_sitesList the Matomo sites this token can report on: id (what the other tools take; name or URL work too), name, URL, timezone…
  • matomo_visitsVisit totals for a site over one period — visits (sessions), unique visitors, actions (pageviews, downloads, outlinks and events), actions per visit…
  • matomo_pagesTop pages of a site for one period, by pageviews: path (or title), URL, pageviews, visits, unique visitors, average seconds on page…
  • matomo_referrersWhere a site's visits came from for one period, by visits.
  • matomo_breakdownVisits for one period broken down by country, device type (desktop, smartphone, tablet…), browser or operating system, largest first…
  • matomo_goalsThe site's goals and how they converted in one period: per goal the conversions, converted visits, conversion rate and revenue…
  • matomo_liveWho is on a site right now: visits, visitors, actions and converted visits in the last N minutes (default 30).

Acts, when you ask

These change something in Matomo. The model is told to use them only when you ask for exactly that, and each one is granted by name: per team on a shared connection, by the owner on a personal one.

  • matomo_add_annotationAdds a dated annotation (a note such as a launch, campaign or outage) to a Matomo site's evolution graphs…
  • matomo_update_annotationChanges an annotation's date, text or star on a Matomo site; what is not passed stays.
  • matomo_delete_annotationDeletes one annotation from a Matomo site permanently.
  • matomo_create_goalCreates a conversion goal on a Matomo site, counted from new visits onward (history is not recomputed): what it matches (a URL, page title…
  • matomo_update_goalChanges a Matomo goal's name, matching rule, revenue or settings; what is not passed is kept from the goal as it stands.
  • matomo_delete_goalDeletes a goal from a Matomo site, with its recorded conversions.
  • matomo_add_siteAdds a new website to Matomo to be tracked, with its URLs, timezone and currency, and returns its id…

Connect it

First connect Matomo on Dashboard → Connections, then add Memtro to your client once. The Matomo tools appear alongside the tools of everything else you have connected; nothing is configured per connector.

Claude Code

The Memtro plugin registers the server and a skill for when to use it; the tools are then available in every session.

claude plugin marketplace add memtro-org/claude-memtro
claude plugin install memtro@memtro --config api_key=sk-memtro-...

Cursor

Add the server to .cursor/mcp.json in the project, or to the global file under ~/.cursor/.

{
  "mcpServers": {
    "memtro": {
      "url": "https://platform.memtro.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sk-memtro-..."
      }
    }
  }
}

Claude Desktop

Create a personal API key on Dashboard → Profile → API keys. In Claude Desktop add an MCP server of type HTTP with URL https://platform.memtro.com/api/mcp and the header Authorization: Bearer sk-memtro-…

OpenCode

A remote server in opencode.json.

{
  "mcp": {
    "memtro": {
      "type": "remote",
      "url": "https://platform.memtro.com/api/mcp",
      "headers": {
        "Authorization": "Bearer sk-memtro-..."
      }
    }
  }
}

Pi

One command: pi mcp add memtro --url https://platform.memtro.com/api/mcp --bearer-token-env-var MEMTRO_API_KEY. Tools arrive as mcp__memtro__*. The pi-memtro extension registers it for you, alongside Memtro as the model.

Any other client

Add an MCP server of type HTTP (Streamable HTTP, stateless) at https://platform.memtro.com/api/mcp with the header Authorization: Bearer sk-memtro-.... Codex, Zed, Windsurf, Cline and the SDKs all take a remote server this way.

Who may use it

The key identifies the person, and the server offers that person the tools they may use everywhere else in Memtro. A shared Matomo connection is used by the teams an administrator granted it to, tool by tool, on the Permissions page; a personal connection is used by its owner alone, and its tools that act stay off until the owner allows them. See Teams and permissions and Connectors.

Ask it like this

  • › How did visits in October compare with September?
  • › Which pages under /docs had the most pageviews last week?
  • › What share of last month's visits were on a smartphone?
  • › How many newsletter sign-ups converted this week, and at what rate?
  • › Add an annotation on 4 November saying the new pricing page went live

Questions

Is this an official Matomo MCP server?
No. It is Memtro's MCP server with Memtro's Matomo connector behind it: the connector reads Matomo through its API with the credentials you connect on Dashboard → Connections, and Matomo publishes nothing here. The same endpoint carries every other system you connect and Memtro's memory tools.
What does it cost?
Nothing on top of Memtro. One price per organisation by its number of users, from $50 a month for up to 10 users after a 7-day free trial, with every connector, the MCP server, jobs and memory included. You bring your own model keys.
Can it change anything in Matomo?
Only when you ask, and only what it has been granted: add a dated annotation to a site's graphs; change an annotation's date, text or star; delete an annotation permanently; create a conversion goal on a site; change a goal's name, matching rule or revenue; delete a goal and its conversions permanently; add a new website to track (super user). Every other tool reads, searches or lists. An administrator grants each acting tool by name per team, and a personal connection acts only after its owner allows it.
Which clients work?
Any MCP client that speaks Streamable HTTP: Claude Code, Cursor, Claude Desktop, OpenCode, Codex, Zed, Windsurf, Cline and the Anthropic and OpenAI SDKs. There is no local process to run; the server is remote and authenticated with your key.

Other MCP servers · Analytics

Where agents remember your company

Sign in, add a provider key, create an API key and point your tools at Memtro. It takes about five minutes.

7-day free trial · card on file, nothing charged until it ends · cancel any time