PostHog (Unofficial)

v0.2.2
io.github.pipeworx-io/posthog Checked 1 day ago Published 15 days ago

Unofficial PostHog MCP — wraps PostHog Analytics API (app.posthog.com/api)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

posthog_get_events

Fetch recent events from a PostHog project. Returns event names, timestamps, and properties. Example: get_events({ project_id: "12345", limit: 50, _apiKey: "phx_..." })

ParameterTypeDescription
_apiKey *stringPostHog personal API key (phx_...)
project_id *stringPostHog project ID (numeric string)
limitnumberMax events to return (default 100, max 1000)

get_persons

Search for persons (users) in a PostHog project. Returns user profiles with properties. Example: get_persons({ project_id: "12345", search: "john@example.com", _apiKey: "phx_..." })

ParameterTypeDescription
_apiKey *stringPostHog personal API key (phx_...)
project_id *stringPostHog project ID (numeric string)
searchstringOptional search query to filter persons by email, name, or distinct ID

get_insights

List saved insights (charts, trends, funnels) for a PostHog project. Returns insight names, types, and configurations. Example: get_insights({ project_id: "12345", _apiKey: "phx_..." })

ParameterTypeDescription
_apiKey *stringPostHog personal API key (phx_...)
project_id *stringPostHog project ID (numeric string)