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.
Score Breakdown
⚙ Agent Friendliness
🔒 Security
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
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
Authentication
Personal API key for all API access. Project API key for event ingestion (public). Simple and agent-friendly.
Pricing
Very generous free tier. Self-hosted version is completely free. Cloud pricing is usage-based after free tier. No seat-based pricing.
Agent Metadata
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.
Scores are editorial opinions as of 2026-03-06.