mcps / posthog
MCPExplorer Verified

PostHog MCP server

Product analytics your agent can query.

Analyticsby PostHogofficialAPI keyFree tier · usage-based

01What it is

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.


02Highlights
Query your real data
HogQL/SQL over events, persons, and sessions, plus typed insight tools for trends, funnels, retention, stickiness, paths, and web analytics.
Flags, experiments & errors
Read and manage feature flags and experiments, triage error-tracking issues, and stitch traces, spans, and logs together for debugging.
Findings that persist
Save queries as insights, compose dashboards, and link straight into the PostHog UI — the agent's analysis lands where the team already works.

03Add it to your agent

Remote MCP server (Streamable HTTP) — api key.

claude mcp add --transport http posthog https://mcp.posthog.com/mcp --header "Authorization: Bearer $POSTHOG_API_KEY"
{ "mcpServers": { "posthog": { "type": "streamable-http", "url": "https://mcp.posthog.com/mcp" } } }

04Example prompts

Copy-paste these into your agent once PostHog is connected. Each drives real tools — swap the placeholders in braces for your own.

Weekly active users, properly

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%.

Funnel drop-off diagnosis

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.

Feature flag audit

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.

Error triage from real impact

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.


07FAQ
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.


08Similar MCPs

Other MCP servers worth a look.

ChatSEO
SEO & content
An AI SEO agent inside your MCP client.
Apex
LinkedIn & outbound
Governed LinkedIn hands for your AI agent.
FullEnrich
Sales & enrichment
B2B contact enrichment for your agent.
CompanyEnrich
Company data
Real-time company & people intelligence.

09Badge

PostHog is featured on MCPExplorer. Add this badge to PostHog’s site or README — it links back to this page.

PostHog MCP — as seen on mcpexplorer.com

HTML — for your website

<a href="https://mcpexplorer.com/mcps/posthog" target="_blank" rel="noopener"><img src="https://mcpexplorer.com/badge/posthog.svg" alt="PostHog MCP — as seen on mcpexplorer.com" height="20" /></a>

Markdown — for a README

[![PostHog MCP — as seen on mcpexplorer.com](https://mcpexplorer.com/badge/posthog.svg)](https://mcpexplorer.com/mcps/posthog)

Get started

Set up PostHog and put it to work — Free tier · usage-based. Or see its full verified profile.