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
| Category | Weight this run | Matomo | PostHog | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 38 | 74 | PostHog +36 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 73 | 81 | PostHog +8 |
| Agent ergonomics | 13%16.2 | 78 | 78 | even |
| Security & auth | 14%17.5 | 71 | 84 | PostHog +13 |
| Payments & pricing | 10%12.5 | 30 | 40 | PostHog +10 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 79 | 89 | PostHog +10 |
| Transparency & trust | 7%8.8 | 72 | 83 | PostHog +11 |
| Negative events | ≤15 | -2 | -7 | |
| Total | 59.5 · C | 68.4 · B |
Facts side by side
| Fact | Matomo | PostHog |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | InnoCraft Limited | PostHog Inc. |
| Hosted endpoint | no (local only) | https://us.posthog.com |
| Transports | HTTP, Streamable HTTP | HTTP, Streamable HTTP |
| Auth | OAuth or key | OAuth or key |
| Pricing | Paid | Freemium |
| x402 | no | no |
| Licence | 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 | MIT for the repository outside the ee directory, which has its own licence. PostHog Cloud is a hosted service under PostHog's terms |
| Tools exposed | 19 | 1096 |
| Read-only variant documented | yes | yes |
| llms.txt | no | yes |
| MCP registry | not listed | io.github.PostHog/mcp |
| Last release | 2026-10-04 | 2026-10-05 |
| Terms last updated | 2025-04-10 | 2026-06-29 |
| Privacy policy last updated | 2026-05-05 | 2026-06-29 |
| Customer content may train models | not found in the text | yes, with an opt-out |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | not found in the text | yes |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | none | 40k 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
- Send the token as
Authorization: Beareror in a POST body, never in the URL. Tokens set to secure requests only are ignored in GET query strings. - Pass
format=json,filter_limitandshowColumnson report calls. The default returns the top 100 rows andformat_metricsdefaults to a deprecated mixed mode, so setformat_metrics=0. - 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. - 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.
- Write and delete methods are plain API methods, some documented as GET. Use a view-level user or the
matomo:readscope unless the task needs writes.
PostHog
- Add
?readonly=trueor thex-posthog-read-onlyheader to the MCP URL unless the task needs writes - Pin the session with
x-posthog-project-id, which also removes theswitch-projectandswitch-organizationtools - In CLI mode run
info <tool>once beforecall, and send oneexeccommand per request - On a 429 with code
api_queries_budget_exceeded, wait forRetry-Afterand readX-PostHog-Query-Budget-Remaining-Bytes - Page SQL results by keyset on
timestamp.OFFSETreturns 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
- Amplitude vs Matomo
- Amplitude vs PostHog
- Countly vs Matomo
- Countly vs PostHog
- Fullstory vs Matomo
- Fullstory vs PostHog
- Matomo vs Mixpanel
- Matomo vs Optimizely Experimentation
- Matomo vs Pendo
- Matomo vs Statsig
- Matomo vs Woopra
- Mixpanel vs PostHog
- Pendo vs PostHog
- PostHog vs Statsig
- PostHog vs Woopra
- Heap vs Matomo
- Heap vs PostHog
- GrowthBook vs Matomo
- GrowthBook vs PostHog
- LaunchDarkly vs Matomo
- Optimizely Experimentation vs PostHog
- LaunchDarkly vs PostHog
Machine-readable
- This page as Markdown
/compare/matomo-vs-posthog.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/matomo.json·/api/v1/tools/posthog.json - From a terminal
anchor compare matomo posthog(the CLI) - Over MCP
compare_tools {"a": "matomo", "b": "posthog"}at/mcp, no key