This page covers the PostHog MCP connector for agent tool access. For PostHog as an automation trigger (via webhooks), see PostHog.
Setup
- Go to Integrations and find PostHog
- Click Connect
- Enter your PostHog personal API key (get one here — use the “MCP Server” preset for recommended scopes)
- Click Save — Proliferate will test the connection automatically
Available tools
| Tool | Description |
|---|---|
feature-flag-get-definition | Get a feature flag’s definition and rollout settings |
feature-flag-get-all | List all feature flags |
create-feature-flag | Create a new feature flag |
update-feature-flag | Update a feature flag’s configuration |
delete-feature-flag | Delete a feature flag |
insights-get-all | List all insights |
insight-get | Get a specific insight |
insight-create-from-query | Create an insight from a query |
insight-update | Update an insight |
insight-delete | Delete an insight |
dashboards-get-all | List all dashboards |
dashboard-get | Get a specific dashboard |
dashboard-create | Create a new dashboard |
dashboard-update | Update a dashboard |
dashboard-delete | Delete a dashboard |
add-insight-to-dashboard | Add an insight to a dashboard |
list-errors | List errors with filtering and sorting |
error-details | Get detailed error information |
get-sql-insight | Run HogQL queries |
property-definitions | Get property definitions |
get-llm-total-costs-for-project | Get LLM cost tracking data |
organizations-get | List organizations |
organization-set-active | Set the active organization |
projects-get | List projects |
project-set-active | Set the active project |
docs-search | Search PostHog documentation |
Use cases
- Toggle feature flags as part of deployment automations
- Query error details when an automation is investigating an incident
- Pull analytics insights (conversion funnels, user trends) to inform automated reporting
The tools listed above may not be exhaustive and can change as PostHog updates their MCP server. See PostHog API documentation for the latest.
