get_insights

Pack: posthog · Endpoint: https://gateway.pipeworx.io/posthog/mcp

List saved insights (charts, trends, funnels) for a PostHog project. Returns insight names, types, and configurations. Example: get_insights({ project_id: “12345”, apiKey: “phx…” })

Parameters

NameTypeRequiredDescription
project_idstringyesPostHog project ID (numeric string)
_apiKeystringyesPostHog personal API key (phx_…)

Example call

Arguments

{
  "project_id": "12345",
  "_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_insights","arguments":{"project_id":"12345","_apiKey":"your-posthog-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_insights', {
  "project_id": "12345",
  "_apiKey": "your-posthog-api-key"
});

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Saved insights 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.

Regenerated from source · build May 9, 2026