Skip to content

PostHog MCP server

  • MCP server
  • 1+ callable tools
  • 5 capabilities
Installation guide

Overview

PostHog's hosted MCP server lets AI clients work with PostHog data, including feature flags, product analytics, experiments, error tracking, session replay and SQL. It runs at mcp.posthog.com and connects through OAuth or a personal API key.

Capabilities:

  • Manage feature flags and experiments
  • Query product analytics and run SQL
  • Investigate and triage error tracking issues
  • Build and update dashboards and insights
  • Review session replays and logs

Works with

The products your agent can work with through this server.

Tools

The callable functions your agent uses to work with this server.

PostHog MCP server tools
ToolWhat it does
execSingle CLI-style tool that wraps PostHog's MCP tools in cli mode, the default mode for most clients.

Installation

Add PostHog MCP server to Claude Code

Run this in your terminal:

claude mcp add --transport http posthog https://mcp.posthog.com/mcp

If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.

Sources

Documentation and source code reviewed on 10 November 2026.