PostHog MCP by usefulapi
v1.2.1Read insights, dashboards, events, feature flags and error issues in PostHog.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
posthog_list_organizations List organizations
List the organizations this API key can see, with their ids. Use an id with posthog_list_projects. PostHog API: GET /api/organizations/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
posthog_list_projects List projects
List the projects in one organization, with their numeric project ids and names. PostHog API: GET /api/organizations/{organization_id}/projects/.
| Parameter | Type | Description |
|---|---|---|
organization_id * | string | The organization id (from posthog_list_organizations). |
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
posthog_list_insights List insights
List saved insights (analytics charts and queries) in the project, with names, short ids and last-viewed dates. Good first call to find an insight. PostHog API: GET /api/projects/{project_id}/insights/.
| Parameter | Type | Description |
|---|---|---|
favorited | boolean | Only insights the key owner has favorited. |
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
saved | boolean | Only insights saved to the project list. |
search | string | Text to match against names. |
posthog_get_insight Get an insight
Get one insight by id: its name, query definition and filters, and its latest results when PostHog has them. PostHog API: GET /api/projects/{project_id}/insights/{id}/.
| Parameter | Type | Description |
|---|---|---|
insight_id * | string | The insight id (from posthog_list_insights). |
posthog_list_dashboards List dashboards
List dashboards in the project, with names, pin state and creators. PostHog API: GET /api/projects/{project_id}/dashboards/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
pinned | boolean | Only pinned dashboards (true) or only unpinned ones (false). |
search | string | Text to match against names. |
posthog_get_dashboard Get a dashboard
Get one dashboard by id with its tiles (the insights placed on it) and their latest results. PostHog API: GET /api/projects/{project_id}/dashboards/{id}/.
| Parameter | Type | Description |
|---|---|---|
dashboard_id * | string | The dashboard id (from posthog_list_dashboards). |
posthog_list_events List events
List raw captured events, newest first, optionally filtered by event name, person, distinct id or time range. Use a time range to keep results small. PostHog API: GET /api/projects/{project_id}/events/.
| Parameter | Type | Description |
|---|---|---|
after | string | ISO 8601 timestamp, for example 2026-11-01T00:00:00Z. |
before | string | ISO 8601 timestamp, for example 2026-11-01T00:00:00Z. |
distinct_id | string | Distinct id of the user who sent the events. |
event | string | Event name to match, for example $pageview. |
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
person_id | string | Person id (from posthog_list_persons). |
posthog_list_event_definitions List event names
List the event names the project has seen, with verified and last-seen details. Good for finding the right event name before posthog_list_events. PostHog API: GET /api/projects/{project_id}/event_definitions/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
posthog_list_persons List persons
List persons (identified or anonymous users) with their properties and distinct ids. PostHog API: GET /api/projects/{project_id}/persons/.
| Parameter | Type | Description |
|---|---|---|
distinct_id | string | Exact distinct id to match. |
email | string | Exact email property to match. |
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
posthog_get_person Get a person
Get one person by id with all properties and linked distinct ids. PostHog API: GET /api/projects/{project_id}/persons/{id}/.
| Parameter | Type | Description |
|---|---|---|
person_id * | string | The person id (from posthog_list_persons). |
posthog_list_actions List actions
List actions (named groups of events and page rules) defined in the project. PostHog API: GET /api/projects/{project_id}/actions/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
posthog_list_cohorts List cohorts
List cohorts (saved groups of persons defined by filters), with names and counts. PostHog API: GET /api/projects/{project_id}/cohorts/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
posthog_list_feature_flags List feature flags
List feature flags with their keys, active state, rollout and creation details. PostHog API: GET /api/projects/{project_id}/feature_flags/.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Only active flags (true) or only inactive ones (false). |
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
posthog_get_feature_flag Get a feature flag
Get one feature flag by id with its filters, rollout percentage and variants. PostHog API: GET /api/projects/{project_id}/feature_flags/{id}/.
| Parameter | Type | Description |
|---|---|---|
flag_id * | string | The feature flag id (from posthog_list_feature_flags). |
posthog_list_experiments List experiments
List experiments (A/B tests) with their status, linked feature flag and launch dates. PostHog API: GET /api/projects/{project_id}/experiments/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
status | string | Status to match, for example running, draft or completed. |
posthog_list_surveys List surveys
List surveys with their names, types, status and response settings. PostHog API: GET /api/projects/{project_id}/surveys/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |
status | string | Status to match, for example running, draft or completed. |
posthog_list_error_tracking_issues List error issues
List error tracking issues (grouped exceptions) with their names, status and occurrence data. PostHog API: GET /api/projects/{project_id}/error_tracking/issues/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
posthog_list_session_recordings List session recordings
List session recordings (replays of user sessions) with ids, durations and start times. Metadata only; no video. PostHog API: GET /api/projects/{project_id}/session_recordings/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
posthog_list_annotations List annotations
List chart annotations (dated notes such as a release or an incident) that appear on PostHog charts. PostHog API: GET /api/projects/{project_id}/annotations/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (PostHog default: 100). |
offset | integer | Results to skip, for pagination. |
search | string | Text to match against names. |