get_events
Pack: posthog · Endpoint: https://gateway.pipeworx.io/posthog/mcp
Fetch recent events from a PostHog project. Returns event names, timestamps, and properties. Example: get_events({ project_id: “12345”, limit: 50, apiKey: “phx…” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
project_id | string | yes | PostHog project ID (numeric string) |
limit | number | no | Max events to return (default 100, max 1000) |
_apiKey | string | yes | PostHog personal API key (phx_…) |
Example call
Arguments
{
"project_id": "12345",
"limit": 50,
"_apiKey": "your-posthog-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/posthog/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_events","arguments":{"project_id":"12345","limit":50,"_apiKey":"your-posthog-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_events', {
"project_id": "12345",
"limit": 50,
"_apiKey": "your-posthog-api-key"
});
More examples
{
"project_id": "67890",
"_apiKey": "your-posthog-api-key"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Recent events from a PostHog project"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"posthog": {
"url": "https://gateway.pipeworx.io/posthog/mcp"
}
}
}
See Getting Started for client-specific install steps.