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