PostHog MCP Server logo

PostHog MCP Server

Connects AI coding clients to PostHog for product analytics, feature flags, experiments, and related product data.

Install PostHog MCP Server

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://mcp.posthog.com/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Hosted endpointLive · TodayLive Remote EndpointOur automated health check connected to this remote MCP endpoint successfully.Last checked 11/9/2026, 4:45:30 AM

Clients with native remote MCP support can connect directly to this URL.

Remote endpoint
https://mcp.posthog.com/mcp

Overview

PostHog MCP Server connects MCP-compatible agents to PostHog’s product data and operational tools. It runs as a remote MCP endpoint, routes users to the US or EU data region after login, and supports setup through the PostHog wizard. Reach for it when an agent needs to query analytics or work with feature flags, experiments, and other PostHog capabilities from an editor.

Use cases

  • Query product analytics while investigating user behavior
  • Inspect product signals when diagnosing errors or conversion problems
  • Manage feature rollouts from an MCP-compatible editor
  • Review experiment results against goal metrics
  • Connect PostHog context to an AI coding workflow

Key features

  • Remote MCP endpoint at mcp.posthog.com/mcp
  • US and EU region routing after login
  • Product, web, and group analytics access
  • Feature flag and experiment workflows
  • Session replay, observability, and warehouse context
  • PostHog wizard-based client setup

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

47/51 checks healthy over the last 90d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 1

Scanned 23d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars40kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How PostHog MCP Server works

What PostHog MCP Server does

PostHog MCP Server exposes PostHog through the Model Context Protocol so AI agents can work with product context from an MCP-compatible client. PostHog brings together product analytics, web analytics, group analytics, session replays, error tracking, logs, tracing, feature flags, experiments, surveys, workflows, warehouse data, and other product information.

The MCP connection is useful for agents that need to investigate user behavior, inspect product signals, or help with product iteration without switching out of an editor. The available PostHog platform includes both read-oriented analysis and actions such as managing feature rollouts and experiments.

How it works

The hosted endpoint is https://mcp.posthog.com/mcp. A client connects to this remote MCP server, and PostHog routes the session to the appropriate US or EU data region when the user signs in. This avoids running a local MCP process for the hosted PostHog connection.

PostHog also provides MCP analytics, marked as beta, for examining how agents use MCP servers. The wider PostHog platform can combine analytics with session recordings, errors, logs, traces, flags, experiments, and warehouse data, giving an agent access to multiple forms of product context through one service.

Setup and configuration

Use the PostHog wizard to add the MCP server to a supported client:

Terminal
npx @posthog/wizard mcp add

The documented clients include Claude Code, Cursor, Codex, VS Code, Zed, and PostHog Desktop. A PostHog account and sign-in are required for the hosted endpoint. PostHog Cloud is available in US and EU regions; the remote server selects the relevant region during login.

The setup wizard itself can also be installed or run with:

Terminal
npx -y @posthog/wizard@latest

Client-specific setup guides are available in PostHog’s Model Context Protocol documentation. The MCP endpoint is hosted by PostHog, so this connection does not require a local server command or server environment variables.

Tools and capabilities

Depending on the PostHog capabilities exposed through the MCP connection, agents can work with areas including:

  • Product, web, and group analytics
  • Session replays and heatmaps
  • Error tracking, logs, and distributed tracing
  • Feature flags and controlled rollouts
  • Experiments and their goal metrics
  • Surveys, support, and workflows
  • Warehouse and data pipeline context
  • AI observability data, including traces, generations, latency, and cost

PostHog’s product analytics supports event-based analysis through visualizations or SQL. Its feature flags support selective releases, while experiments measure changes against goal metrics. These capabilities make the server relevant for product investigation, debugging, release decisions, and analysis performed from an AI coding environment.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about PostHog MCP Server

PostHog MCP Server is an MCP server that connects AI agents and coding clients to PostHog. Its main tools cover product analytics, feature flags, experiments, and related product context, including capabilities across replays, observability, warehouse data, and other PostHog products through the hosted MCP endpoint.

Install it with `npx @posthog/wizard mcp add`. The wizard adds the hosted PostHog MCP endpoint to a supported client, including Claude Code, Cursor, Codex, VS Code, Zed, and PostHog Desktop. Sign in to PostHog when the client connects.

The hosted endpoint is `https://mcp.posthog.com/mcp`. It routes the authenticated session to PostHog’s US or EU data region, so clients connect to one endpoint while PostHog handles regional routing.

Yes, PostHog lists Cursor as a supported client. Run `npx @posthog/wizard mcp add` to configure the connection, then authenticate with PostHog through the client.

It can provide access to PostHog product context such as product, web, and group analytics, session replays, errors, logs, traces, feature flags, experiments, warehouse data, and AI observability. The available scope depends on the PostHog capabilities exposed through the MCP connection.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPostHog MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/posthog-mcp-server?style=directory)](https://allmcps.com/mcp/posthog-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/posthog-mcp-server"><img src="https://allmcps.com/api/badge/posthog-mcp-server?style=directory" alt="PostHog MCP Server on AllMCPs" /></a>