PostHog
MCP server by PostHog Verified · posthog.com
Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.
Install PostHog
Built from the published package, never by AI.
claude mcp add --transport http posthog https://mcp.posthog.com/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
{
"mcpServers": {
"posthog": {
"serverUrl": "https://mcp.posthog.com/mcp"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
https://mcp.posthog.com/mcpIn ChatGPT: Settings, Connectors, Add custom connector, then paste this URL. Works in any client that supports remote servers.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the posthog block.
About
The PostHog MCP server connects an AI assistant to PostHog, a platform that stores analytics, errors, replays, and business data. According to the source, agents can query and act on that data. The remote server is at https://mcp.posthog.com/mcp and routes to the US or EU data region when a user logs in.
The source says it installs into Claude Code, Cursor, Codex, VS Code, Zed, or PostHog Desktop with the command npx @posthog/wizard mcp add. It is aimed at product teams and developers who use PostHog for product analytics, feature flags, experiments, and error tracking.
Written from the project's README and checked against it.
What you need
- A PostHog account (PostHog Cloud US or EU, or a self-hosted instance)
- An MCP-compatible client such as Claude Code, Cursor, Codex, VS Code, Zed, or PostHog Desktop
Try asking
- Show me the top product analytics events from this week.
- Create a feature flag to roll out a new checkout to select users.
- Find the error tracking issues that spiked yesterday and summarize them.
Good to know
- Open source self-hosted deployments are not supported by customer support and come with no guarantees.
- Open source deployments should scale to about 100k events per month before migrating to PostHog Cloud.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Query product analytics from an AI assistant
- Manage feature flags and experiments
- Investigate errors and session replays
Alternatives to PostHog
All alternatives →World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.
Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.
Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.
OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.
Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.
Lets Codex, Claude Code or another MCP client control a live kepler.gl map. It loads data, configures layers, applies filters, manages bookmarks and plays camera tours through a local bridge to an open browser tab. Aimed at people who work with geolocation data.
Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data
PostHog: common questions
Is there a free tier for PostHog?
Yes. The source says PostHog Cloud includes a monthly free tier for each product, with no card required. It lists 1 million events, 5k recordings, 1M flag requests, 100k exceptions, 10GB of logs, and 1500 survey responses free every month.
Can I self-host PostHog instead of using Cloud?
The source describes an open source hobby deploy that runs on one Ubuntu machine with Docker. It needs 8GB or more of memory and a domain whose DNS A record points to the machine.
Where is the remote PostHog MCP server?
The remote MCP server is at https://mcp.posthog.com/mcp. The source says it routes to the correct US or EU data region when the user logs in.
How do I install PostHog?
In Claude Code run claude mcp add --transport http posthog https://mcp.posthog.com/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is PostHog the official server?
PostHog is published by posthog.com from its verified domain in the official MCP Registry.
Is PostHog free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is PostHog safe to use?
It scores 94 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to PostHog?
Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.
Does PostHog work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
