MCP server · Indie SaaS infrastructure
PostHog MCP server
PostHog's official MCP server that lets an agent query events, run insights, and inspect feature flags in your PostHog project.
Verified · editorial policy
PostHog MCP server TL;DR
- Server
- PostHog MCP server
- Vendor
- PostHog
- Category
- Indie SaaS infrastructure
- Distribution
- npm package (runs locally)
- TL;DR
- PostHog's official MCP server exposes product analytics, insights, and feature flag state as MCP tools. The agent can ask questions like 'how many users hit the diagnostic page yesterday' or 'which flag is gating onboarding' and get a structured answer grounded in your PostHog project, not a guess.
- Founder fit
- If you are already using PostHog for product analytics, this server turns Claude into a competent product-analyst pair. Drop in a question about activation, retention, or a specific event and let the assistant write the insight against your real project rather than hallucinating numbers.
- Last verified
- May 22, 2026
What an agent can do with it
Query events and insights
Run structured insight queries and inspect event volume by name and property.
Inspect feature flags
Read flag state, payloads, and rollouts the agent has permission to see.
Trace funnels and retention
Surface funnel conversion and retention cohort answers without leaving the chat.
Why an indie SaaS founder cares
If you are already using PostHog for product analytics, this server turns Claude into a competent product-analyst pair. Drop in a question about activation, retention, or a specific event and let the assistant write the insight against your real project rather than hallucinating numbers.
Install
Access: Requires a PostHog personal API key with appropriate scopes.
Claude Desktop
Add the following block to your claude_desktop_config.json and restart Claude:
{
"mcpServers": {
"posthog": {
"command": "npx",
"args": ["-y", "@posthog/mcp-server"]
}
}
}Cursor
Add the following block to .cursor/mcp.json in your home directory or project root:
{
"mcpServers": {
"posthog": {
"command": "npx",
"args": ["-y", "@posthog/mcp-server"]
}
}
}Install snippets are derived from the vendor's published distribution shape. If your client is neither Claude Desktop nor Cursor, see the vendor docs for client-specific configuration.
PostHog MCP server – FAQ
Does the agent see PII in events?
It sees whatever your PostHog project sees. If you mask or filter PII at ingest, the agent is bound by the same view.
Related MCP servers
Vercel MCP server
Vercel's official MCP server that lets an agent inspect deployments, read logs, and reason about projects on your Vercel account.
Supabase MCP server
Supabase's official MCP server that lets an agent inspect schemas, run read queries, and reason about your Postgres database.
Stripe MCP server
Stripe's official MCP server that lets an agent query and act on your Stripe account through scoped API access.
Want an agent that knows your SaaS offer?
Install the UnlockSaaS MCP server alongside this one and the assistant can diagnose your live landing page, pull funnel and pricing teardowns of competitors, and walk the Brunson Playbook with you.