Skip to content

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

  1. 01

    In the AI panel, open Customize › Connections.

  2. 02

    Choose Add connection, then select PostHog from the gallery.

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

Try Pro free for 14 days

Every new account gets the trial with no card, then moves to Free and keeps its data. For Mac and Windows.