In short: PostHog's official hosted MCP server. Run insights and SQL on your product data, check web analytics and manage flags, experiments and surveys from AI.
What it does
The PostHog MCP Server is PostHog’s own hosted server. It connects an AI client to your PostHog projects, so the client can run analytics queries, read dashboards and work with feature flags, experiments and surveys. You add one URL and sign in with your PostHog account. There is nothing to install.
A typical request: “Compare sign-up conversion from the pricing page for paid search and organic visitors over the last 30 days.” The client builds the query, runs it through the server and explains the numbers. For harder questions it can write HogQL, PostHog’s SQL dialect, and run it directly.
Good uses for marketing teams
- Checking how visitors from a campaign move through sign-up and activation
- Weekly web analytics summaries by channel, landing page and referrer
- Setting up a feature flag or experiment for a new landing page variant
- Reading survey responses and grouping them into themes
- Finding session replays for visitors who dropped off at a key step
Things to know
- The server can change data. It can create flags, experiments and dashboards. Use readonly=true if the client only needs to report.
- The full tool list is long. Add a features parameter to the URL, such as features=insights,dashboards, to keep only the groups you use.
- On the sign-in screen you can limit access to specific projects. Requests for other projects then fail.
- PostHog sets rate limits per credential. Busy agents can hit them, so keep automated workflows modest.
- Your PostHog data goes to the AI provider behind your client. Check that this fits your data policies first.
What it can do
- Run insight queries and HogQL SQL against your PostHog events and persons
- Read and build dashboards, saved insights, cohorts and annotations
- Check web analytics, marketing analytics and session replays
- Create and update feature flags and experiments, and read experiment results
- Create and review surveys and their responses
- Investigate error tracking issues and update their status
- Limit the tools on offer by feature group, or hide every write tool with a read-only setting
How to set it up
- Run npx @posthog/wizard mcp add in a terminal. The wizard adds the server to Claude, Claude Code, Cursor, VS Code and other supported clients.
- Or add it to Claude Code by hand with the command below, then run /mcp and sign in to PostHog in the browser.
- On the sign-in screen, choose which organisations and projects the client can reach.
- To stop the client from changing anything, add readonly=true to the server URL.
- Ask the client which events you track to confirm it works.
Command from the publisher’s docs:
claude mcp add --transport http posthog https://mcp.posthog.com/mcp -s userWorks with
Based on the publisher’s documentation and the transport the server uses. Check the publisher’s docs for the latest list.
Questions about PostHog MCP Server
Can I connect the PostHog MCP server in read-only mode?
Yes. Add readonly=true to the URL, or send the x-posthog-read-only header, and PostHog hides the tools that create, update or delete data.
Does the PostHog MCP server work with EU Cloud projects?
Yes. The same URL works for both regions. The sign-in sends you to the US or EU data region based on the account you log in with.
Sources
We checked this listing against these pages on 29 November 2026.
Spotted something out of date? Email listings@marketingmcphub.com.