Skip to content

PostHog MCP Server

Query product analytics, manage feature flags and triage errors in PostHog.

Officialby PostHogHosted, nothing to installChecked November 8, 2026

PostHog's hosted MCP server gives Claude access to your PostHog project, from SQL and HogQL queries and insights to dashboards, feature flags, experiments and error tracking. One URL serves both US and EU accounts, and you can sign in with OAuth or use a personal API key made with the MCP Server preset. A good first prompt: "Which step of our signup funnel lost the most users this week, and what do the session recordings of those users have in common?" Acting on answers like that automatically is what The AI School's Autopilot course (early access) teaches; the free What is MCP guide covers the basics.

Who is PostHog MCP for?

  • Product managers
  • Startup founders tracking product usage
  • Engineers who ship behind feature flags

What can you ask PostHog MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
Show weekly active users for the last 12 weeks and point out any unusual drops.
Prompt 2
Which feature flags are rolled out to everyone and could be cleaned up?
Prompt 3
What are the top five errors this week, and how many users did each one affect?

How to connect PostHog to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, ChatGPT, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the PostHog MCP server to Claude Code for me: run this command: claude mcp add --transport http posthog https://mcp.posthog.com/mcp -s user
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

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

Type /mcp inside Claude Code, pick the server and choose Authenticate to sign in.

Hosted address: https://mcp.posthog.com/mcp

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

Run /mcp in Claude Code to sign in. Add ?readonly=true to the URL to hide write tools. PostHog's wizard can also add it to several AI tools at once: npx @posthog/wizard mcp add.

How did we check PostHog MCP?

Rechecked PostHog's MCP docs and FAQ (OAuth or a personal API key with the MCP Server preset, read-only and feature filters, 480 requests a minute), its pricing page and the server code in the PostHog monorepo (services/mcp, MIT, commit November 8, 2026; stars are for the whole monorepo); the endpoint still answers with an OAuth challenge. We have not run this server ourselves; the details come from the vendor's documentation and our own endpoint checks.

Source: posthog.com/docs/model-context-protocol

Other official pages we read for this entry:

What do people ask about PostHog MCP?

Is PostHog MCP free?

Connecting it and calling its tools is free. Your queries still count as normal PostHog usage, and AI-powered tools can bill as PostHog AI spend when AI data processing is on. The free tier covers 1M analytics events, 5K session recordings, 1M feature flag requests and 100K exceptions a month with no card (PostHog pricing page, checked November 8, 2026).

How do I stop Claude from changing anything in PostHog?

Add ?readonly=true to the server URL, or send the x-posthog-read-only header, and every tool that creates, updates or deletes disappears. You can also load only some tool groups, for example ?features=flags,dashboards,insights, and pin the session to one project with project_id.

Does it work with PostHog EU Cloud?

Yes. The same address, https://mcp.posthog.com/mcp, sends you to the US or EU region based on the account you sign in with, and PostHog says the MCP server does not store your analytics data: results go straight to your AI tool.

What are PostHog MCP's rate limits?

480 requests a minute and 4,800 an hour per OAuth token or personal API key, and session setup and tool listing count too. Over the limit you get a 429 error with a Retry-After header; AI-powered tools have lower limits of their own.

How do I turn PostHog MCP answers into a weekly report?

Write the prompt once (signups, activation and top errors, each compared with last week), save it as a Claude Code slash command and run it every Monday with the server set to read-only. Check the first few reports against your PostHog dashboards before you share them. Our Claude Code course (early access) shows how to save prompts as commands and check what Claude reports.

We wrote these answers from the official pages of each product named, read on November 8, 2026.

Using servers like PostHog from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.