
Posthog Mcp Server
Connects Claude and other MCP clients to PostHog's product analytics API. You get 12 tools covering the main PostHog surface area: query events with filters, look up persons and their properties, execute saved insights and trends, check feature flag evaluations for specific users, pull experiment results with statistical significance, and list dashboards, cohorts, and actions. Useful when you're debugging user behavior, checking A/B test performance, or need to surface analytics data without leaving your editor. Requires a PostHog personal API key and works with both PostHog Cloud (US/EU) and self-hosted instances. The project ID can be set globally or passed per call.
- tools
- 13
- transport
- STDIO
- last updated
- Jun 6, 2026
Tools
13 toolsPublic tool metadata for what this MCP can expose to an agent.
list_eventsQuery events with filters (event name, person, date range, properties)
Query events with filters (event name, person, date range, properties)
No parameter schema in public metadata yet.
get_personGet a person (user) by distinct_id — properties, creation date, event count
Get a person (user) by distinct_id — properties, creation date, event count
No parameter schema in public metadata yet.
list_personsSearch and list persons with pagination
Search and list persons with pagination
No parameter schema in public metadata yet.
list_dashboardsList all dashboards — names, tags, widget counts
List all dashboards — names, tags, widget counts
No parameter schema in public metadata yet.
get_dashboardGet a specific dashboard with its insights and widgets
Get a specific dashboard with its insights and widgets
No parameter schema in public metadata yet.
execute_insightExecute a saved insight (trend, funnel, etc.) and get results
Execute a saved insight (trend, funnel, etc.) and get results
No parameter schema in public metadata yet.
list_feature_flagsList all feature flags — key, active status, rollout percentage
List all feature flags — key, active status, rollout percentage
No parameter schema in public metadata yet.
evaluate_feature_flagEvaluate a flag for a specific user and get variant value
Evaluate a flag for a specific user and get variant value
No parameter schema in public metadata yet.
list_cohortsList cohorts — name, type (dynamic/static/SQL), person count
List cohorts — name, type (dynamic/static/SQL), person count
No parameter schema in public metadata yet.
list_experimentsList A/B tests — name, status, feature flag, dates
List A/B tests — name, status, feature flag, dates
No parameter schema in public metadata yet.
get_experimentGet experiment results with variant data and statistical significance
Get experiment results with variant data and statistical significance
No parameter schema in public metadata yet.
list_actionsList custom event actions/definitions
List custom event actions/definitions
No parameter schema in public metadata yet.
get_project_infoGet project name, ID, settings, and data region
Get project name, ID, settings, and data region
No parameter schema in public metadata yet.
Sponsors
Readme
PostHog MCP Server
Connect AI assistants to PostHog — query events, persons, insights, dashboards, feature flags, cohorts, and experiments through the Model Context Protocol.
Works with Claude Desktop, Cursor, Windsurf, Cline, Continue, and any MCP-compatible client.
Features
Details
- Repository
- github.com/friendlygeorge/posthog-mcp-server
- Category
- Monitoring & Observability
- Package
posthog-mcp-server- Transport
- STDIO
- Registry
- MCP registry, active