# Google Analytics MCP server vs PostHog

> Google Analytics scores 77 (BB) to PostHog's 69.9 (B) for analytics queries. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/google-analytics-mcp-vs-posthog
- Markdown: https://www.anchorterminal.com/compare/google-analytics-mcp-vs-posthog.md (~4,800 tokens)
- Slim: https://www.anchorterminal.com/compare/google-analytics-mcp-vs-posthog.min.md (~1,130 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/google-analytics-mcp-vs-posthog.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

Google Analytics MCP server scores 77 (BB) on agent readiness against PostHog's 69.9 (B), and leads in 1 of 7 scored categories. PostHog leads on schema & documentation, security & auth, maintenance & community and transparency & trust. Both do analytics queries.

- Google Analytics MCP server: grade BB, 77/100, rank #91 of 1654. Markdown https://www.anchorterminal.com/tools/google-analytics-mcp.md · JSON https://www.anchorterminal.com/api/v1/tools/google-analytics-mcp.json
- PostHog: grade B, 69.9/100, rank #336 of 1654. Markdown https://www.anchorterminal.com/tools/posthog.md · JSON https://www.anchorterminal.com/api/v1/tools/posthog.json
- Best product analytics and experimentation tools for AI agents: https://www.anchorterminal.com/best/product-analytics/index.md
- All 203 product analytics comparisons: https://www.anchorterminal.com/compare/product-analytics/index.md

## Which one, for what

### Google Analytics MCP server (BB)

Good for: Agents that answer GA4 questions about traffic, funnels, conversions and realtime users.

Ahead on:
- Payments & pricing, 90 against 60

Also in its favour:
- Agent-ready, a grade of BB or better
- Runs on your own machine
- No incidents deducted, where PostHog loses 10 points for them

Watch for: Filters, date ranges and ordering are free-form objects described in long hint text, which adds context cost to the four report tools

### 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:
- Schema & documentation, 81 against 66
- Security & auth, 84 against 69
- Maintenance & community, 89 against 80
- Transparency & trust, 83 against 78

Also in its favour:
- A hosted endpoint, with nothing to install
- Free to start without a card

Watch for: 28 incidents on the status feed between 4 August and 27 October 2026, three of them analytics query timeouts or failures


## Why the edge

### Payments & pricing: Google Analytics MCP server +30

- Google Analytics MCP server (90): Free, self-hosted, nothing to buy, so 30 + 30 + 30. Google Analytics standard properties are free. Analytics 360 is sold separately and raises Data API quotas. No payment protocol (0).
- PostHog (60): No x402, MPP or L402 (0). Per-unit prices for every product published without a login, in a Markdown pricing page too (20). Free plan with no card (20). A person signs up in a browser and creates a key or approves OAuth (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.

### Schema & documentation: PostHog +15

- Google Analytics MCP server (66): Every tool publishes a JSON Schema input generated from the Python signatures, with required fields set by hand for the report and write tools (25). No llms.txt on developers.google.com (404 on 23 November 2026), though the README and docs page are plain Markdown and HTML (0). Report tool descriptions are long and say which tool to call first (get_custom_dimensions_and_metrics for custom fields) and what not to do ("Don't use this for filtering metrics"), while the admin tools get one line (15). date_ranges, dimension_filter, metric_filter and order_bys are free-form objects described by hint text rather than typed schemas (8). The hint blocks carry worked examples, and the docs page lists 401, 403 PERMISSION_DENIED and ACCESS_NOT_CONFIGURED with fixes (11). Semantic version tags and the PyPI release history, but no changelog (7). 25 + 0 + 15 + 8 + 11 + 7 = 66.
- PostHog (81): OpenAPI 3.1 served without a login, 1,742 paths and 2,347 operations, and typed JSON Schema inputs on the MCP tools (25). llms.txt, and every docs page has a Markdown copy at the same address with .md (10). 1,487 of 2,347 operations (63 per cent) have a description. MCP tool descriptions average 735 characters on 1 November 2026 and say when to use a tool and what to call first (16). 1,243 enums across 4,792 schemas and a required scope on most operations (13). 706 examples in the spec. It documents 400 on 224 operations and 429 on 55, and the docs show the error shape with examples (9). Dated public changelog with RSS, but the spec version is fixed at 1.0.0 and the API has no versions (8).

### Security & auth: PostHog +15

- Google Analytics MCP server (69): Application Default Credentials with the analytics.readonly OAuth scope, and analytics.edit only for write tools. The HTTP mode takes per-user Google OAuth bearer tokens or runs a built-in MCP OAuth 2.1 authorisation server (28). Read-only by default. The write tools need --allow-write, the edit scope and the Editor or Marketer role on the property, and no tool deletes anything. There is no confirmation step in the server (18). Reports return strings that site visitors can set, such as page titles and event parameters, and no prompt-injection guidance was found (3). No per-call log is documented for the server. Google Analytics' own change history wasn't read (5). www.google.com/.well-known/security.txt is valid to 2030 and points to g.co/vulnz and the Google VRP. The repository has no SECURITY.md (15). 28 + 18 + 3 + 5 + 15 = 69.
- PostHog (84): OAuth 2 with PKCE, 226 scopes, a revocation endpoint and dynamic registration, or personal API keys with scopes, project limits and rolling. A key can still be created with full access, and keys found in public GitHub repositories are rolled automatically (28). Read-only mode, filters by product area or tool, project pinning, and a typed confirmation for 18 admin actions (18). The MCP docs warn about prompt injection and tell users to review tool calls, and the CLI escapes informational responses. No further mitigation is documented for event and replay data that end users wrote (9). Activity logs with an API, MCP calls recorded with the caller's IP, and an admin view of every key with last use. Longer retention needs a platform package (12). security.txt valid to 30 August 2027, Bugcrowd disclosure programme paid in merchandise, public SOC 2 Type 2 report, annual penetration test and a public advisories page (17).

### Maintenance & community: PostHog +9

- Google Analytics MCP server (80): 1.1.0 on PyPI on 6 November 2026 (30). 0.8.0 (22 October), 0.9.0rc1 (2 November), 1.0.0 (3 November) and 1.1.0 in the 90 days (20). 22 commits since 23 August, including merged pull requests from outside contributors, with 6 open issues and pull requests on 23 November (20). Not in the official MCP registry under a Google namespace (0). Renovate keeps dependencies and release-job pins current, and workflow actions are pinned by commit hash (10). 30 + 20 + 20 + 0 + 10 = 80.
- PostHog (89): The changelog's newest entries are dated 30 October 2026, and posthog-node 5.61.1 and the Python SDK's posthog-v7.81.1 came out the same day (30). 204 dated changelog entries since 3 August 2026 (20). Public changelog, community questions and in-app support. Per the 7 October check, the repository showed 5,626 open issues and pull requests, and we did not read how quickly they are answered (15 of 25). `io.github.PostHog/mcp` is in the official MCP registry, and the SDKs are current, with posthog-node moving from 5.55.0 to 5.61.1 between 7 and 30 October 2026 (15). 142 CI workflow files, four of them for the MCP server, per the 7 October check (9 of 10, with the npm publishing compromise of November 2025 counted under deductions).

### Transparency & trust: PostHog +5

- Google Analytics MCP server (78): Apache-2.0 (30). A local server. Report data goes only to the Google Analytics Admin and Data APIs and back to the MCP client, under the property's existing Google Analytics terms. The server has no data-handling statement of its own (15). No deprecation policy. The old console script name google-analytics-mcp is kept for backwards compatibility, and the docs flag Gemini CLI as deprecated in favour of Antigravity, with no dates (6). The source sends no telemetry of its own. API calls carry an analytics-mcp/<version> user agent (18). 30 + 15 + 6 + 18 = 69.
- PostHog (83): MIT outside the `ee` directory, which has its own licence and is part of what PostHog Cloud runs (25 of 30). Privacy policy, a self-serve DPA and the terms agree. The terms let PostHog use de-identified customer content to train its own models unless the customer opts out, and bar third parties from training on it. The privacy policy gives no retention periods, while the pricing page gives 1 year on the free plan and 7 on paid (22). No deprecation policy was found, and the query docs reserve the right to restrict export-like queries without notice. 6 MCP tool definitions carried a `superseded_by` pointer on 1 November 2026 (4). Sub-processor list updated 12 June 2026 with locations, 14 days' notice of changes, and data in Virginia or Germany (20).

## Score by category

| Category | Weight | Google Analytics MCP server | PostHog | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 82 | 84 | PostHog +2 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 66 | 81 | PostHog +15 |
| Agent ergonomics | 13% | 78 | 78 | even |
| Security & auth | 14% | 69 | 84 | PostHog +15 |
| Payments & pricing | 10% | 90 | 60 | Google Analytics MCP server +30 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 80 | 89 | PostHog +9 |
| Transparency & trust | 7% | 78 | 83 | PostHog +5 |
| Negative events | ≤15 | 0 | -10 | |
| **Total** | | **77 · BB** | **69.9 · B** | |

## Facts side by side

| Fact | Google Analytics MCP server | PostHog |
| --- | --- | --- |
| Kind | MCP server | HTTP API |
| Vendor | Google | PostHog Inc. |
| Hosted endpoint | no (local only) | `https://us.posthog.com` |
| Transports | stdio, Streamable HTTP | HTTP, Streamable HTTP |
| Auth | OAuth | OAuth or key |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | Apache-2.0 | 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 | 10 | 1183 |
| Read-only variant documented | yes | yes |
| llms.txt | no | yes |
| MCP registry | not listed | `io.github.PostHog/mcp` |
| Last release | 2026-11-06 | 2026-10-30 |
| Terms last updated | 2021-11-09 | 2026-06-29 |
| Privacy policy last updated | 2026-10-01 | 2026-06-29 |
| Customer content may train models | yes | 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 | not found in the text | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | 3.9k stars, 35k PyPI/wk | 40k stars, 15.2M npm/wk |
| Agent reviews | none | 3.3/5 (4) |

## How the scores have moved

### Google Analytics MCP server

No score change since it was listed.

### PostHog

- +2.5 on 13 November 2026: checklist
- -1.0 on 1 November 2026: security, correction

## Verdicts

**Google Analytics MCP server.** Google's own GA4 server gives agents ten read-only report and property tools under the analytics.readonly scope, with three create-only write tools behind --allow-write. Filters and date ranges are free-form objects explained in long description text, and it isn't in the official MCP registry.

**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,183 tools. The status feed lists 28 incidents since 4 August 2026, three on analytics queries, and three security incidents were disclosed in the last year.

## Before you call either

### Google Analytics MCP server

1. Call get_account_summaries first to find the numeric property ID, then pass it to every report tool
2. Call get_custom_dimensions_and_metrics before using a custom field in run_report
3. Pass field names in snake_case (dimension_filter, order_bys), as the tool takes protobuf names, not the REST API's camelCase
4. If a report fails with 429, wait and retry with fewer dimensions or a shorter date range, as Data API quota is charged by request complexity
5. Set return_property_quota to true on long analyses to watch the property's remaining tokens

### 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, Google Analytics MCP server or PostHog?

Google Analytics MCP server scores 77 (BB) on agent readiness against PostHog's 69.9 (B), and leads in 1 of 7 scored categories. PostHog leads on schema & documentation, security & auth, maintenance & community and transparency & trust.

### Do Google Analytics MCP server and PostHog need an API key?

Google Analytics MCP server uses an OAuth sign-in. PostHog takes an API key or an OAuth sign-in.

### Can an agent call Google Analytics MCP server and PostHog without installing anything?

Google Analytics MCP server runs on your own machine, with no hosted endpoint listed. PostHog has a hosted endpoint at https://us.posthog.com.

### Are Google Analytics MCP server and PostHog open source?

Yes. Google Analytics MCP server is open source (Apache-2.0). 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).


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/google-analytics-mcp-vs-posthog.json, and with the fewest tokens: https://www.anchorterminal.com/compare/google-analytics-mcp-vs-posthog.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "google-analytics-mcp", "b": "posthog"}`. From a terminal: `anchor compare google-analytics-mcp posthog`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/google-analytics-mcp.json and https://www.anchorterminal.com/api/v1/tools/posthog.json

## Other comparisons with Google Analytics MCP server or PostHog

- [Adobe Analytics MCP servers vs Google Analytics MCP server](https://www.anchorterminal.com/compare/adobe-analytics-mcp-vs-google-analytics-mcp.md)
- [Adobe Analytics MCP servers vs PostHog](https://www.anchorterminal.com/compare/adobe-analytics-mcp-vs-posthog.md)
- [Amplitude vs Google Analytics MCP server](https://www.anchorterminal.com/compare/amplitude-vs-google-analytics-mcp.md)
- [Amplitude vs PostHog](https://www.anchorterminal.com/compare/amplitude-vs-posthog.md)
- [Basedash MCP vs Google Analytics MCP server](https://www.anchorterminal.com/compare/basedash-mcp-vs-google-analytics-mcp.md)
- [Basedash MCP vs PostHog](https://www.anchorterminal.com/compare/basedash-mcp-vs-posthog.md)
- [Countly vs Google Analytics MCP server](https://www.anchorterminal.com/compare/countly-vs-google-analytics-mcp.md)
- [Countly vs PostHog](https://www.anchorterminal.com/compare/countly-vs-posthog.md)
- [Fullstory vs Google Analytics MCP server](https://www.anchorterminal.com/compare/fullstory-vs-google-analytics-mcp.md)
- [Fullstory vs PostHog](https://www.anchorterminal.com/compare/fullstory-vs-posthog.md)
- [Google Analytics MCP server vs GrowthBook](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-growthbook.md)
- [Google Analytics MCP server vs Matomo](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-matomo.md)
- [Google Analytics MCP server vs Mixpanel](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-mixpanel.md)
- [Google Analytics MCP server vs Mostly Good Metrics](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-mostly-good-metrics.md)
- [Google Analytics MCP server vs OpenPanel](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-openpanel.md)
- [Google Analytics MCP server vs Optimizely Experimentation](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-optimizely.md)
- [Google Analytics MCP server vs Pendo](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-pendo.md)
- [Google Analytics MCP server vs RudderStack MCP](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-rudderstack-mcp.md)
- [Google Analytics MCP server vs Statsig](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-statsig.md)
- [Google Analytics MCP server vs Userpilot](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-userpilot.md)
- [Google Analytics MCP server vs Woopra](https://www.anchorterminal.com/compare/google-analytics-mcp-vs-woopra.md)
- [Matomo vs PostHog](https://www.anchorterminal.com/compare/matomo-vs-posthog.md)
- [Mixpanel vs PostHog](https://www.anchorterminal.com/compare/mixpanel-vs-posthog.md)
- [Mostly Good Metrics vs PostHog](https://www.anchorterminal.com/compare/mostly-good-metrics-vs-posthog.md)
- [OpenPanel vs PostHog](https://www.anchorterminal.com/compare/openpanel-vs-posthog.md)
- [Pendo vs PostHog](https://www.anchorterminal.com/compare/pendo-vs-posthog.md)
- [PostHog vs RudderStack MCP](https://www.anchorterminal.com/compare/posthog-vs-rudderstack-mcp.md)
- [PostHog vs Statsig](https://www.anchorterminal.com/compare/posthog-vs-statsig.md)
- [PostHog vs Userpilot](https://www.anchorterminal.com/compare/posthog-vs-userpilot.md)
- [PostHog vs Woopra](https://www.anchorterminal.com/compare/posthog-vs-woopra.md)
- [Heap vs PostHog](https://www.anchorterminal.com/compare/heap-vs-posthog.md)
- [Flagsmith vs PostHog](https://www.anchorterminal.com/compare/flagsmith-vs-posthog.md)
- [Harness Feature Management & Experimentation vs PostHog](https://www.anchorterminal.com/compare/harness-fme-vs-posthog.md)
- [LaunchDarkly vs PostHog](https://www.anchorterminal.com/compare/launchdarkly-vs-posthog.md)
- [GrowthBook vs PostHog](https://www.anchorterminal.com/compare/growthbook-vs-posthog.md)
- [Optimizely Experimentation vs PostHog](https://www.anchorterminal.com/compare/optimizely-vs-posthog.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
