MCP server · PostHog
PostHog MCP Server
⚠ No independent security audit: entries summarize official sources only. Review permissions and code before installing.
- Type
- MCP server
- Tasks
- Debugging & observability
- Compatible agents
- Claude Code, Claude Desktop, Cursor, Codex, VS Code, Windsurf, Zed, v0 (source: clients with setup guides in PostHog's official MCP docs (posthog.com/docs/model-context-protocol))
- Verdict
- Pick it to triage production errors and check feature flags or analytics from your editor; start with readonly=true and pin the project before allowing writes.
- Permissions
- Reads and writes across your PostHog project with your account's access: product analytics and HogQL/SQL queries, error tracking (stack traces, issue status), feature flags, experiments, surveys, CDP destinations and more. Add `readonly=true` to drop all write tools; pin to one project with x-posthog-project-id.
- Credentials
- PostHog account via OAuth (routes to US or EU automatically), or a personal API key with the MCP Server preset as a Bearer header.
- Maintenance
- Hosted remote server (free to call; some AI-powered tools bill as PostHog AI spend); source in PostHog/posthog services/mcp, last commit 2026-10-24. The old PostHog/mcp repo is archived.
- License
- MIT (services/mcp package; hosted service under PostHog terms)
- Install
- Connect to https://mcp.posthog.com/mcp (OAuth). Wizard for most clients: `npx @posthog/wizard mcp add`. Claude Code: `claude mcp add --transport http posthog https://mcp.posthog.com/mcp -s user` or `claude plugin install posthog`. Official install docs ↗
- Source
- https://github.com/PostHog/posthog/tree/master/services/mcp
- Verified on
- 2026-10-24
Compared in: Best MCP servers for Debugging & observability in Cursor · Best MCP servers for Debugging & observability
Badge for your README
Maintain this project? Show that it's listed here. The badge only says it's listed; it is not a security review or an endorsement.