PostHog API

Open-source product analytics platform with event tracking, feature flags, session recordings, and A/B testing, plus an official MCP server for agent-driven analytics querying.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Other posthog analytics open-source feature-flags session-replay product-analytics mcp-server rest-api sdk
⚙ Agent Friendliness
79
/ 100
Can an agent use this?
🔒 Security
84
/ 100
Is it safe for agents?
⚡ Reliability
82
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
72
Documentation
87
Error Messages
82
Auth Simplicity
82
Rate Limits
78

🔒 Security

TLS Enforcement
100
Auth Strength
80
Scope Granularity
78
Dep. Hygiene
85
Secret Handling
80

Personal API keys and project API keys. Project keys for event capture only. SOC2 Type II, GDPR. Self-hostable for full data control. Open-source core. EU Cloud option for data residency.

⚡ Reliability

Uptime/SLA
85
Version Stability
82
Breaking Changes
80
Error Recovery
80
AF Security Reliability

Best When

You want open-source product analytics with MCP server support and the option to self-host for data control.

Avoid When

You need enterprise SLA guarantees without self-hosting expertise or a pure marketing automation platform.

Use Cases

  • Querying analytics events and insights via MCP server from agents
  • Evaluating feature flags in backend services
  • Capturing custom events from agent workflows
  • Fetching user cohorts and properties for targeting
  • Running A/B test experiments and reading results via API

Not For

  • Teams needing on-premise hosting without engineering resources (self-hosted needs maintenance)
  • Pure infrastructure/ops monitoring
  • Teams needing pre-built marketing automation (use Segment + downstream tools)

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
Yes
Webhooks
Yes

Authentication

Methods: api_key
OAuth: No Scopes: No

Personal API key for all API access. Project API key for event ingestion (public). Simple and agent-friendly.

Pricing

Model: freemium
Free tier: Yes
Requires CC: No

Very generous free tier. Self-hosted version is completely free. Cloud pricing is usage-based after free tier. No seat-based pricing.

Agent Metadata

Pagination
cursor
Idempotent
Partial
Retry Guidance
Documented

Known Gotchas

  • MCP server is community-maintained and may not cover all API endpoints
  • Feature flag evaluation requires distinct_id which must match user identity system
  • Self-hosted instances need manual version updates - can drift from cloud API behavior
  • HogQL (PostHog's SQL dialect) has limitations vs standard SQL for complex queries
  • Event ingestion is asynchronous - newly sent events not immediately queryable

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for PostHog API.

$99

Scores are editorial opinions as of 2026-03-06.

5173
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered