MCP

Ask questions.
Get answers.

We don't think the future has a UI. So we built one without one.

50+ toolsOpen sourceCertified no-UI
PostHog hedgehog with a wand

What is the PostHog MCP?

The MCP is a server your coding agent talks to. Ask a question in English. It runs the query against your PostHog data. The answer lands in your editor. No SQL. No dashboards. No tabs full of charts you forgot you opened.

Try things like:

  • "How many unique users signed up in the last 7 days, broken down by day?"
  • "Create an A/B test for our pricing page that measures conversion to checkout."
  • "What are the top 5 errors in my project this week?"

Here's Matt Brooker explaining the PostHog MCP server.

  • Lives in your editor

    Cursor, Claude, Codex, Zed, VS Code, PostHog Code. Wherever you already work.

  • Speaks plain English

    You ask the question. The MCP figures out the query and answers it.

  • Costs nothing to use

    It doesn't show up on your PostHog bill. Not even on the free plan.

What does the MCP actually do?

Your agent picks the right tool from more than 50 available options, and runs it. You don't even need to know what's setup; the MCP does it for you (and asks for help if needed).

  • Run funnels
  • Pull errors by occurrence
  • Write the SQL
  • Spin up an experiment
  • Toggle a feature flag
  • Create a cohort
  • Build a survey
  • Check your logs
  • Find that one weird replay
  • Remembers your event taxonomy better than you
posthog-mcpLive
Product analytics

>

You don't need to use PostHog to use PostHog

PostHog has a lot of tools. We know — we built them. We also kept hearing the same thing: the UI is overwhelming, and most people only use a fraction of what's actually there.

Even our own marketing team can't keep up with how fast we ship.

We could have run a campaign telling you the UI is fine. We could have A/B tested a new sidebar every week. We did neither, because we don't think the future has a UI at all.

That's where the MCP comes in.

"But I like the PostHog UI."

Then carry on. It's not going anywhere. And while you're in there, tell Adam Leith — he'll be thrilled.

M

Maya

@productpilled

𝕏

"I just spent 20 minutes trying to find where to add a property filter. I'm a senior engineer."

Should've used MCP
D

Dan

u/dashboardregret

Reddit

"The PostHog UI has, conservatively, 14,000 menus."

Should've used MCP
S

Sam

@phdrequired

𝕏

"PostHog is great if you have 6 hours and a PhD in product analytics."

Should've used MCP
J

Jess

u/tabhoarder

Reddit

"I have 14 PostHog tabs open. I do not know why."

Should've used MCP

Where does the MCP run?

We know which code editor we prefer, but the MCP is flexible to most common tools.

Install the PostHog MCP

Learn more
npx @posthog/wizard mcp add

Supports Next.js, React, Python, and

Paste the error. Type `debug`. That's it.

PostHog hedgehog

Install the MCP

One command. Thirty seconds. Works in Cursor, Claude, Codex, PostHog Code, and friends.