Posthog MCP Server
Connects AI assistants to PostHog for analytics, feature flags, cohorts, dashboards, and experiment data.
Install Posthog MCP Server
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"posthog-mcp-server-2": {
"command": "npx",
"args": [
"-y",
"posthog-mcp-server"
],
"env": {
"POSTHOG_API_KEY": "YOUR_VALUE_HERE",
"POSTHOG_HOST": "YOUR_VALUE_HERE",
"POSTHOG_PROJECT": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
claude mcp add --env POSTHOG_API_KEY=YOUR_VALUE_HERE --env POSTHOG_HOST=YOUR_VALUE_HERE --env POSTHOG_PROJECT=YOUR_VALUE_HERE --transport stdio posthog-mcp-server-2 -- npx -y posthog-mcp-serverRun in your terminal. Add --scope project to share it with your team through .mcp.json.
Automated check passed— started and listed 13 tools correctly ().
Overview
Use cases
- Query recent product events
- Inspect users and their activity
- Review dashboards and saved insights
- Check feature flags and experiment results
Key features
- Filter and list PostHog events
- Search persons and retrieve user details
- Read dashboards and execute saved insights
- List and evaluate feature flags
- Inspect cohorts and experiments
- Read project and action metadata
Tools13
What Posthog MCP Server lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
We have not completed a health check for this listing yet.
What it can do
From the 13 tools this server returned when we ran it.
Observed 2026-11-11 in an isolated sandbox. A description of reach, not a security audit.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 9d ago via OSV.dev · posthog-mcp-server (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Posthog MCP Server works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Posthog MCP Server
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/posthog-mcp-server-2)<a href="https://allmcps.com/mcp/posthog-mcp-server-2"><img src="https://allmcps.com/api/badge/posthog-mcp-server-2?style=directory" alt="Posthog MCP Server on AllMCPs" /></a>