PostHog MCP Server

By thumbsupordown

The official PostHog MCP server lets AI agents work across the PostHog product analytics platform. Agents can create and update feature flags, insights, dashboards, and experiments, run saved HogQL queries, triage error-tracking issues, manage cohorts and alerts, search PostHog docs, and read project settings.

Tools

alert-create

Create a new alert on a PostHog insight or metric.

cohorts-create

Create a brand-new user cohort in the PostHog project.

cohorts-list

List all of the user cohorts defined in the project.

dashboard-create

Create a brand-new dashboard in the PostHog project.

dashboard-update

Update the layout or metadata of a PostHog dashboard.

docs-search

Search the PostHog product documentation for a topic.

error-tracking-issues-partial-update

Update the status of a PostHog error-tracking issue.

experiment-create

Create a new A/B test experiment in the PostHog project.

feature-flag-create

Create a brand-new feature flag in the PostHog project.

feature-flag-delete

Delete an existing feature flag from the PostHog project.

feature-flag-update

Update the configuration of an existing feature flag.

insight-create

Create a new product insight such as a trend or funnel.

insight-update

Update the definition of an existing PostHog insight.

project-get

Retrieve details and settings for a PostHog project.

view-create

Create a new saved HogQL query view within PostHog.

view-run

Run a saved HogQL query view and return its results.

Want to create your own MCP server?

Create an account to add and manage your own MCP servers.