PostHog MCP
MCP : Standardises the connection between an AI application and systems that expose tools or data
PostHog's official MCP server: your agent queries your product statistics, manages feature flags and investigates errors.
Instead of hunting for a number in the PostHog interface, you ask your agent, which runs the query and reads the result. The server is hosted by PostHog, connects through OAuth and routes you to your account's region, US or EU. It covers analytics, dashboards, experiments and errors. It is not limited to reading: the agent can change flags or settings. Connect it with a limited-rights account.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
Finding a product number, checking a feature flag or understanding an error usually means opening the PostHog interface and moving between screens. The PostHog MCP server lets you ask your agent in plain language, from your editor or the tool you already use.
The server is an endpoint hosted by PostHog at https://mcp.posthog.com/mcp. You sign in with your PostHog account, and the authentication server routes you to the right data region (US or EU) based on the account you use. The agent can then read and write across PostHog products: analytics queries, HogQL, feature flags, experiments, errors, CDP destinations and support ticket triage.
It is meant for product teams and developers who already use PostHog and an MCP-compatible agent such as Claude Code, Cursor, Codex, VS Code, Windsurf or Zed. It is useful for investigating an error without leaving the editor.
It is a poorer fit if you do not have a PostHog account, or if you do not want an agent to be able to change settings. The agent can write, not just read, so it is better to connect it with a limited-rights account.
What it offers
- ·Query your product statistics in plain language, for example the top 5 errors of the week with affected user counts.
- ·Run analytics queries and HogQL queries from your agent.
- ·Create and manage feature flags and experiments from a prompt.
- ·Investigate an error: pull the stack trace, message and metadata, then ask for a suggested fix.
- ·Change an error's status and create an assignment rule, for example routing future TypeErrors to the backend team.
- ·Run governed metrics from your semantic layer, so a question like MRR always gets the same definition.
- ·Set up CDP destinations and triage support tickets.
- ·Install with one command using the PostHog Wizard, or manually in several clients.
In practice
- Price
- Freemium
- Commercial use
- Commercial use: yes
- Available on
- claude-code, cursor, codex, any-agent
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Data with the vendor
- Maintenance
- Active
Links and repository checked on 30 November 2026 · added on 30 November 2026
How to install PostHog MCP
npx @posthog/wizard mcp add