PostHog MCP servers

PostHog runs an official hosted MCP server at one URL for both US and EU accounts. It reads trends, funnels, retention, web analytics and SQL, and can also create and change insights, dashboards, feature flags, experiments and surveys.

Docs reviewed Nov 20, 20262 optionsAnalytics and attribution

Short answer

Official server PostHog MCP

It is PostHog's own hosted server, it is free to connect, and a read-only switch or a tool filter lets you limit what the assistant can change.

All 2 options compared

Official first. Everything here comes from each server's own docs.

Official

PostHog's hosted MCP server at https://mcp.posthog.com/mcp. You sign in with OAuth in the browser, or send a personal API key made with the MCP Server preset, which is scoped to one project.

  • Run trends, funnels, retention, lifecycle, stickiness and paths queries, and list the people behind each result
  • Run HogQL/SQL against your project data
  • Read web analytics overviews, stats, web vitals and heatmaps
  • Audit UTMs and manage marketing analytics conversion goals

It has write and delete tools by default. Add readonly=true (or the x-posthog-read-only header) to keep only read tools, or features= or tools= to expose a subset. Some AI-powered tools are billed as PostHog AI spend and only appear when AI data processing is on in your organization.

Hosted (remote URL)OAuthRead and write
Gateway

Connect an AI agent to multiple business applications through one MCP integration.

Hosted (remote URL)

Composio Connect: A PostHog toolkit with several hundred tools for insights, feature flags and experiments, connected with a personal API key for the US or EU region. Source, checked Nov 20, 2026.

Set it up

PostHog MCP

Claude
  1. Open the PostHog connector in Claude's connector directory and click Connect.
  2. Sign in to PostHog when prompted. You are routed to the US or EU region based on your account.
  3. If a team admin already added PostHog, go to Settings > Connectors, click Connect on PostHog and sign in.

From the vendor's docs.

Claude Code
  1. Run the command below, or install the plugin with claude plugin install posthog.
  2. Start Claude Code, run /mcp and log in to PostHog in the browser.
claude mcp add --transport http posthog https://mcp.posthog.com/mcp -s user

From the vendor's docs.

Cursor
  1. Go to Cursor Settings > Tools & Integrations and click New MCP Server.
  2. Add the block below to mcp.json and save it.
  3. Check that posthog shows a green status under MCP Tools, then log in to PostHog on first use.
{
  "mcpServers": {
    "posthog": {
      "url": "https://mcp.posthog.com/mcp"
    }
  }
}

From the vendor's docs.

Prompts to start with

Signup funnel

Build a funnel from pageview on the pricing page to signup to first project created for the last 30 days, broken down by UTM source.

Campaign UTM audit

Run a UTM audit on this project and list campaigns with missing or inconsistent utm_source and utm_medium values.

Weekly web report

Give me the web analytics overview for the last 7 days versus the previous 7: visitors, pageviews, bounce rate and top referrers.

Retention by cohort

Show weekly retention for users who signed up in the last 8 weeks, split by whether they came from paid or organic traffic.

Experiment readout

List my running experiments with their primary metric results and tell me which ones have enough data to call a winner.

Questions

Is the PostHog MCP server official?

Yes. PostHog hosts it at https://mcp.posthog.com/mcp and documents setup for Claude Desktop, Claude Code, Cursor, Codex, VS Code, Windsurf and Zed. The installer npx @posthog/wizard mcp add sets it up in several of these clients at once.

Do I need an API key?

No. OAuth sign-in is the recommended method. For clients without OAuth you can create a personal API key with the MCP Server preset, which scopes it to one project, and send it as Authorization: Bearer <your-api-key>.

Can I stop it from changing data?

Yes. Set the readonly query parameter or the x-posthog-read-only header to true and PostHog removes every tool that creates, updates or deletes data. You can also expose only some categories with features= (for example flags, experiments, sql) or named tools with tools=.

Does it work with PostHog EU Cloud, and what does it cost?

One URL serves both regions: the sign-in routes you to US or EU based on your account, and each region needs its own connection. Connecting and calling tools is free; normal PostHog usage still applies, and some AI-powered tools count as PostHog AI spend. Limits are 480 requests per minute and 4,800 per hour per credential.