PostHog MCP server
Product analytics your agent can query.
PostHog's official hosted MCP server puts the whole product-analytics platform behind your agent. Query events, persons, and sessions with HogQL/SQL over your real project data; build and read typed insights — trends, funnels, retention, paths, web analytics; inspect and manage feature flags, experiments, surveys, and error-tracking issues; and list session recordings. The agent answers product questions from data, not guesses — and can save what it finds as insights and dashboards your team sees.
Who it’s for: Engineers and PMs who want their agent to answer product questions from real analytics — not vibes.
Remote MCP server (Streamable HTTP) — api key.
Copy-paste these into your agent once PostHog is connected. Each drives real tools — swap the placeholders in braces for your own.
How many weekly active users did we have over the last 8 weeks? Define active as 3+ events in a week. Verify the event names in our schema first — don't assume $pageview exists — then show the trend and flag any week that dropped more than 10%.
Build a funnel from signup → first project created → first successful run over the last 30 days. Find the step with the worst conversion, break it down by device and referrer, and tell me which segment is bleeding the most.
List every feature flag that's been at 100% rollout for more than 30 days. For each, check whether any code path still evaluates it this week (event volume), and give me a kill-list of flags that are safe to remove.
Pull the top error-tracking issues from the last 7 days ranked by distinct users affected, not raw count. For the worst one, fetch a sample event with its stack trace and the session ID so I can watch the replay.
What is PostHog MCP?
PostHog's official hosted MCP server puts the whole product-analytics platform behind your agent. Query events, persons, and sessions with HogQL/SQL over your real project data; build and read typed insights — trends, funnels, retention, paths, web analytics; inspect and manage feature flags, experiments, surveys, and error-tracking issues; and list session recordings. The agent answers product questions from data, not guesses — and can save what it finds as insights and dashboards your team sees.
Who is PostHog for?
Engineers and PMs who want their agent to answer product questions from real analytics — not vibes.
How do I connect PostHog to my agent?
PostHog is a remote MCP server at https://mcp.posthog.com/mcp. Add it in Claude, Cursor, or any MCP client — for example: claude mcp add --transport http posthog https://mcp.posthog.com/mcp --header "Authorization: Bearer $POSTHOG_API_KEY".
Does PostHog require authentication?
Yes — PostHog authenticates with API key. You connect your own account, and it acts only within the scopes you grant.
How much does PostHog cost?
Free tier · usage-based.
Is PostHog verified on MCPExplorer?
Yes — PostHog is hand-checked and featured on MCPExplorer. We pull its real tool surface, required scopes, and risk labels from the live index so you can see exactly what it does before connecting.
Other MCP servers worth a look.
PostHog is featured on MCPExplorer. Add this badge to PostHog’s site or README — it links back to this page.
HTML — for your website
Markdown — for a README
Set up PostHog and put it to work — Free tier · usage-based. Or see its full verified profile.