Connector guide3-minute read10 MCP tools7 languages

Connect Matomo to Gemini CLI via MCP: Visits

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.

HCBy HelpCode teamUpdated 3 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

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.

tools

10

Region

INTL

Category

Analytics

Authentication

Query Param Auth

Required env vars

MATOMO_URLMATOMO_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

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.

Guided setup

Connect Matomo to Gemini in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Matomo in the guided setup, then add your MCP URL to Gemini. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

Try asking

Example prompts for Matomo

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Matomo · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Matomo, paste your credentials, mint an MCP API key — done. No Docker, no git clone, no local server.

Matomo + Gemini

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.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

MATOMO_URL, MATOMO_TOKEN

Step 1 — Get credentials

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.

…(continued in the in-app connector instructions)

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (or %APPDATA%\gemini\settings.json on Windows). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Get your MCP API key from AnythingMCP → MCP Servers → your server → API keys.
  2. Save the file and restart gemini.
  3. Run /mcp inside the Gemini CLI — Matomo should be listed as available.
  4. Vertex AI Studio: pass https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID to the tools array of your request with the same X-API-Key header.

Available tools

ToolWhat it does
matomo_get_versionRead the Matomo version of this instance
matomo_list_sitesList the sites this token can report on, with their id, name, main URL, timezone and currency
matomo_get_visits_summaryRead the headline numbers for a period: visits, unique visitors, actions, bounce rate, average visit duration and actions per visit
matomo_get_page_urlsRead the page report: which URLs were viewed, how often, their average time on page, bounce rate and exit rate
matomo_get_entry_pagesRead which pages visitors arrived on, with entries, bounce rate and the visits that followed — the landing-page view, not the pageview vie
matomo_get_referrersRead where the traffic came from: search engines, websites, social networks, campaigns and direct entry, with visits and actions for each
matomo_get_countriesRead the visits broken down by country, with visit counts, actions and bounce rate — the geography of the audience
matomo_get_device_typesRead the visits broken down by device type — desktop, smartphone, tablet — with visits, actions and bounce rate
matomo_get_goalsRead goal conversions for a period: conversions, conversion rate and revenue, overall or for one goal
matomo_get_last_visitsRead individual recent visits with their referrer, country, device, and the pages each one viewed in order

FAQ

Does Gemini 1.5 Pro or 2.x support MCP? Yes — Gemini CLI ≥ 0.4 and Vertex AI tools API both accept MCP httpUrl connectors with custom headers.

Next steps

Was this guide helpful?

Connect Matomo to Gemini in 2 minutes

Start a free trial on AnythingMCP Cloud, connect Matomo in the guided setup, then add your MCP URL to Gemini. No code and no server to run.

Related guides

Connectors

Connect Matomo to Microsoft Copilot via MCP

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.

Connectors

Connect Matomo to Meta Muse via MCP: Analytics

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.

Connectors

Connect Matomo to ChatGPT via MCP: Web Analytics

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.

Connectors

Connect Matomo to Claude via MCP: Visits and Pages

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.

Connectors

Connect Matomo to Cursor via MCP: Page Reports

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.

Connectors

Matomo MCP Server: Visits, Pages and Conversions

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.