PostHog (Unofficial)
v0.2.2Unofficial 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_..." })
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | PostHog personal API key (phx_...) |
project_id * | string | PostHog project ID (numeric string) |
limit | number | Max 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_..." })
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | PostHog personal API key (phx_...) |
project_id * | string | PostHog project ID (numeric string) |
search | string | Optional 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_..." })
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | PostHog personal API key (phx_...) |
project_id * | string | PostHog project ID (numeric string) |