Set up the PostHog MCP server
Read PostHog analytics, session replays, and errors in your AI client, or create feature flags and experiments.
Official · PostHog
Add it to your client
- 01
In the AI panel, open Customize › Connections.
- 02
Choose Add connection, then select PostHog from the gallery.
- 03
Review what it reads and can change, its plan requirements, and any usage charges. Then sign in.
What you can do
Read analytics and SQL query results.
Inspect session replays and errors.
Create feature flags and experiments.
Create annotations and actions, or delete annotations.
Try asking
“Show the errors recorded in this project.”
What it can change
Can create feature flags, experiments, annotations, and actions, and delete annotations. MCP calls are free, but some AI-powered tools require AI data processing and can incur PostHog AI charges.
Review the available tools
Connect the server to see its available tools in your client.