PostHog MCP by usefulapi

v1.2.1
io.usefulapi/posthog Checked 1 day ago Published 35 minutes ago

Read 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults 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/.

ParameterTypeDescription
organization_id *stringThe organization id (from posthog_list_organizations).
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText 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/.

ParameterTypeDescription
favoritedbooleanOnly insights the key owner has favorited.
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
savedbooleanOnly insights saved to the project list.
searchstringText 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}/.

ParameterTypeDescription
insight_id *stringThe 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
pinnedbooleanOnly pinned dashboards (true) or only unpinned ones (false).
searchstringText 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}/.

ParameterTypeDescription
dashboard_id *stringThe 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/.

ParameterTypeDescription
afterstringISO 8601 timestamp, for example 2026-11-01T00:00:00Z.
beforestringISO 8601 timestamp, for example 2026-11-01T00:00:00Z.
distinct_idstringDistinct id of the user who sent the events.
eventstringEvent name to match, for example $pageview.
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
person_idstringPerson 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText 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/.

ParameterTypeDescription
distinct_idstringExact distinct id to match.
emailstringExact email property to match.
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText 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}/.

ParameterTypeDescription
person_id *stringThe 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText 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/.

ParameterTypeDescription
activebooleanOnly active flags (true) or only inactive ones (false).
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText 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}/.

ParameterTypeDescription
flag_id *stringThe 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText to match against names.
statusstringStatus 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText to match against names.
statusstringStatus 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults 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/.

ParameterTypeDescription
limitintegerResults per page (PostHog default: 100).
offsetintegerResults to skip, for pagination.
searchstringText to match against names.