friendlygeorge avatar

Posthog Mcp Server

friendlygeorge/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 tools

Public 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


View the full README on GitHub

Details

Repository
github.com/friendlygeorge/posthog-mcp-server
Category
Monitoring & Observability
Package
posthog-mcp-server
Transport
STDIO
Registry
MCP registry, active

More from friendlygeorge

Related Monitoring & Observability MCP servers

View all
1hithereiamaliff avatarSingapore LTA DataMall MCP Serverhithereiamaliff/mcp-ltadatamallsgAccess real-time public transit information including bus arrivals, train service alerts, and station crowding levels in Singapore. Check live parking availabil0stars
2hithereiamaliff avatarSingapore LTA DataMall MCP Serverhithereiamaliff/mcp-ltadatamallsgAccess real-time public transit information including bus arrivals, train service alerts, and station crowding levels in Singapore. Check live parking availabil0stars
3hrishikesh-thakre avatarAI Workbench MCPhrishikesh-thakre/ai-workbench-mcpGoose-first MCP server for Workbench-owned acceptance evidence, validation gates, and analytics.0stars
4exploratory-io avatarExploratory Serverexploratory-io/exploratorySearch and read notes, dashboards, charts, analytics and data published on Exploratory.0stars
5frase-io avatarFrase SEOfrase-io/mcp-serverSEO, GEO & AI Visibility — research, write, optimize, publish & monitor content. 121 tools.0stars
6adkit avatarPinterest Ads MCP Server by AdKitadkit/pinterest-ads-mcpPinterest Ads MCP server: read campaign analytics and draft campaign changes from AI.0stars