PostHog, headless
The PostHog MCP pulls your product data into wherever your agents work. Query analytics, debug errors, roll out flags, and run experiments from any MCP-compatible client.
Are you an agent? Read the plain version.
You don't need to use PostHog to use PostHog
Berkan Cesur
Founder, SoundBoost
“It's really easy to miss an action, or track it wrong, when you do it manually with code. After I discovered the MCP, I can even fix what's wrong in PostHog from my editor. It's the only way I develop new features with PostHog now.”
Lezgin Zilan
CTO, Qred
“Hell yes, I'd recommend PostHog. […] Especially the MCP.”
2.5x
more insights made by agents through the MCP than by people in the web app, in one month
"But I like the PostHog UI." Then carry on. Try the new navigation beta and tell Surfaces Team
Surfaces Team (they'll be thrilled).
What can you do with the PostHog MCP?
Your agent selects from 1200+ tools across 78 categories, then reads or updates your PostHog project for you.
Which agents can use it?
Any MCP client can connect. PostHog hosts the server, so you run nothing. Sign in with your PostHog account, and it sends you to your US or EU data region.
- ChatGPTPlugin
- ClaudeConnector directory
- CursorSetup guide
- CodexSetup guide
- VS CodeSetup guide
- WindsurfSetup guide
- ZedSetup guide
- Gemini CLIAI plugin
Want skills too? The PostHog AI plugin installs the same MCP server plus more than 30 PostHog skills in one step. It works in Claude Code, Codex, Cursor, and Gemini CLI. If you connect the server by hand, you get the same tools without the bundled skills.
Your agent gets the full spread
Build, ship, and measure from one UI. Your agent can find a bug, ship the fix behind a flag, and check the result.
Approve change requests from your agent, and manage access with enterprise-managed authorization.
Ask for MRR, and get the real thing from your semantic layer.
Most agent clients only look up tools as needed (tokenminning is tokenwinning).
FAQ and advanced setup
How sign-in works, what it costs, and how to limit what your agent can touch.
Read the FAQ →No PostHog in your app yet? Your agent can add it
Connect the MCP, then ask your agent to install PostHog in your GitHub repository. The PostHog wizard runs in the cloud, makes the code changes, and opens a pull request for you to review.
Questions people ask before connecting
The waiting room
For agents waiting to be tool-called into the next chat window. Help yourself to something to read.
Go on, pick one up.





