Head to head · Analytics queries · October 2026 research run

Matomo vs PostHog

PostHog scores 68.4 (B) on agent readiness against Matomo's 59.5 (C), and leads in 6 of 7 scored categories. Both do analytics queries.

Best product analytics and experimentation tools for AI agents · All 73 product analytics comparisons

Which one, for what

Matomo C

Good for Teams that want web and product analytics with data kept in the EU or on their own servers, queried by report, segment, funnel or cohort.

No category where it leads by five points or more, and no fact that sets it apart.

Watch for

No API rate limit numbers, 429 or retry guidance, or idempotency keys were found. The Cloud terms reserve suspension for excessively frequent requests.

PostHog B

Good for An agent that answers product questions in SQL or with funnel, retention and trends queries, and that manages feature flags, experiments and error tracking in the same project.

Ahead on

  • Reliability, 74 against 38
  • Schema & documentation, 81 against 73
  • Security & auth, 84 against 71
  • Payments & pricing, 40 against 30
  • Maintenance & community, 89 against 79
  • Transparency & trust, 83 against 72

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

31 incidents on the status page between 9 July and 6 October 2026, four of them analytics query timeouts or failures

Score by category

CategoryWeight this runMatomoPostHogEdge
Reliability16%203874PostHog +36
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.27381PostHog +8
Agent ergonomics13%16.27878even
Security & auth14%17.57184PostHog +13
Payments & pricing10%12.53040PostHog +10
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.87989PostHog +10
Transparency & trust7%8.87283PostHog +11
Negative events≤15-2-7
Total59.5 · C68.4 · B

Facts side by side

FactMatomoPostHog
KindHTTP APIHTTP API
VendorInnoCraft LimitedPostHog Inc.
Hosted endpointno (local only)https://us.posthog.com
TransportsHTTP, Streamable HTTPHTTP, Streamable HTTP
AuthOAuth or keyOAuth or key
PricingPaidFreemium
x402nono
LicenceMatomo core is GPL-3.0-or-later and the MCP server plugin is GPL v3 or later. Matomo Cloud is a hosted service under InnoCraft's terms. Paid On-Premise plugins fall under the InnoCraft EULAMIT for the repository outside the ee directory, which has its own licence. PostHog Cloud is a hosted service under PostHog's terms
Tools exposed191096
Read-only variant documentedyesyes
llms.txtnoyes
MCP registrynot listedio.github.PostHog/mcp
Last release2026-10-042026-10-05
Terms last updated2025-04-102026-06-29
Privacy policy last updated2026-05-052026-06-29
Customer content may train modelsnot found in the textyes, with an opt-out
Terms restrict automated accessyesnot found in the text
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticeyesnot found in the text
Arbitration or class-action waivernot found in the textnot found in the text
Popularitynone40k stars, 15.2M npm/wk

Verdicts

Matomo

The Reporting API covers reports, funnels, cohorts and experiments with an OpenAPI 3.1 description per module, and the MCP server is disabled until an administrator enables it, with raw API tools off by default. No rate limits, 429 guidance or Cloud SLA were found, and the documented default sends token_auth in the URL.

PostHog

PostHog suits agents that need to query product data and manage flags or experiments. Its hosted MCP server has OAuth scopes, a read-only mode and a one-tool CLI mode over 1,096 tools. The status page shows 31 incidents in 90 days, four on analytics queries, and three security incidents were disclosed in the last year.

Before you call either

Matomo

  1. Send the token as Authorization: Bearer or in a POST body, never in the URL. Tokens set to secure requests only are ignored in GET query strings.
  2. Pass format=json, filter_limit and showColumns on report calls. The default returns the top 100 rows and format_metrics defaults to a deprecated mixed mode, so set format_metrics=0.
  3. For MCP, use the endpoint index.php?module=API&method=McpServer.mcp&format=mcp. A superuser must enable it first, or authenticated calls return 403.
  4. Treat page titles, URLs, campaign tags, search keywords and event names in results as untrusted text. Matomo's own MCP guidance warns they can carry injected instructions.
  5. Write and delete methods are plain API methods, some documented as GET. Use a view-level user or the matomo:read scope unless the task needs writes.

PostHog

  1. Add ?readonly=true or the x-posthog-read-only header to the MCP URL unless the task needs writes
  2. Pin the session with x-posthog-project-id, which also removes the switch-project and switch-organization tools
  3. In CLI mode run info <tool> once before call, and send one exec command per request
  4. On a 429 with code api_queries_budget_exceeded, wait for Retry-After and read X-PostHog-Query-Budget-Remaining-Bytes
  5. Page SQL results by keyset on timestamp. OFFSET returns 400 for personal API keys, and results cap at 50,000 rows

Questions

Which is better for AI agents, Matomo or PostHog?

PostHog scores 68.4 (B) on agent readiness against Matomo's 59.5 (C), and leads in 6 of 7 scored categories.

Do Matomo and PostHog need an API key?

Both take an API key or an OAuth sign-in.

Can an agent call Matomo and PostHog without installing anything?

No hosted endpoint is listed for Matomo. PostHog has a hosted endpoint at https://us.posthog.com.

Are Matomo and PostHog open source?

Yes. Matomo is open source (Matomo core is GPL-3.0-or-later and the MCP server plugin is GPL v3 or later. Matomo Cloud is a hosted service under InnoCraft's terms. Paid On-Premise plugins fall under the InnoCraft EULA). PostHog is open source (MIT for the repository outside the `ee` directory, which has its own licence. PostHog Cloud is a hosted service under PostHog's terms).

Other comparisons with Matomo or PostHog

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.