MCP server
PostHog MCP by usefulapi
io.usefulapi/posthog
Checked 28 Nov 2026, 11:13 UTC · Connected to it and listed its tools
Read insights, dashboards, events, feature flags and error issues in PostHog.
Working at last checkVerified publisher: usefulapi.ioAbout 3,615 tokens per request once connected19 tools
https://posthog.usefulapi.io/mcp
At a glance
- Type
- MCP server
- Publisher
- usefulapi.io (verified by the MCP Registry)
- Status
- Working at last check
- Tools
- 19
- Token cost
- About 3,615 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 28 Nov 2026, 11:13 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http posthog https://posthog.usefulapi.io/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.posthog] url = "https://posthog.usefulapi.io/mcp"
Gemini CLI
{"mcpServers":{"posthog":{"httpUrl":"https://posthog.usefulapi.io/mcp"}}}
Cursor
{"mcpServers":{"posthog":{"url":"https://posthog.usefulapi.io/mcp"}}}
VS Code
{"servers":{"posthog":{"type":"http","url":"https://posthog.usefulapi.io/mcp"}}}
Antigravity
agy mcp add posthog https://posthog.usefulapi.io/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"posthog","server_url":"https://posthog.usefulapi.io/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"posthog","server_url":"https://posthog.usefulapi.io/mcp"}
Tools
posthog_get_dashboard~133 tokens
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}/.posthog_get_feature_flag~129 tokens
Get one feature flag by id with its filters, rollout percentage and variants. PostHog API: GET /api/projects/{project_id}/feature_flags/{id}/.posthog_get_insight~134 tokens
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}/.posthog_get_person~120 tokens
Get one person by id with all properties and linked distinct ids. PostHog API: GET /api/projects/{project_id}/persons/{id}/.posthog_list_actions~177 tokens
List actions (named groups of events and page rules) defined in the project. PostHog API: GET /api/projects/{project_id}/actions/.posthog_list_annotations~186 tokens
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/.posthog_list_cohorts~179 tokens
List cohorts (saved groups of persons defined by filters), with names and counts. PostHog API: GET /api/projects/{project_id}/cohorts/.posthog_list_dashboards~206 tokens
List dashboards in the project, with names, pin state and creators. PostHog API: GET /api/projects/{project_id}/dashboards/.posthog_list_error_tracking_issues~165 tokens
List error tracking issues (grouped exceptions) with their names, status and occurrence data. PostHog API: GET /api/projects/{project_id}/error_tracking/issues/.posthog_list_event_definitions~203 tokens
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/.posthog_list_events~316 tokens
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/.posthog_list_experiments~215 tokens
List experiments (A/B tests) with their status, linked feature flag and launch dates. PostHog API: GET /api/projects/{project_id}/experiments/.posthog_list_feature_flags~210 tokens
List feature flags with their keys, active state, rollout and creation details. PostHog API: GET /api/projects/{project_id}/feature_flags/.posthog_list_insights~248 tokens
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/.posthog_list_organizations~156 tokens
List the organizations this API key can see, with their ids. Use an id with posthog_list_projects. PostHog API: GET /api/organizations/.posthog_list_persons~231 tokens
List persons (identified or anonymous users) with their properties and distinct ids. PostHog API: GET /api/projects/{project_id}/persons/.posthog_list_projects~230 tokens
List the projects in one organization, with their numeric project ids and names. PostHog API: GET /api/organizations/{organization_id}/projects/.posthog_list_session_recordings~169 tokens
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/.posthog_list_surveys~208 tokens
List surveys with their names, types, status and response settings. PostHog API: GET /api/projects/{project_id}/surveys/.
Browse
Related MCP servers
- PostHog (Unofficial)
Unofficial PostHog MCP — wraps PostHog Analytics API (app.posthog.com/api) - CorpusIQ
One governed MCP endpoint for 40+ business systems. Read-only, source-cited answers. - WorkOS MCP by usefulapi
Read SSO, directory users and invitations; sync directories and revoke invitations in WorkOS. - nimo
Monitoring that tells you the fix: uptime, Core Web Vitals, cron check-ins, Journey Watch. - Flagsmith MCP by usefulapi
Read flags, segments and audit logs; switch flags on or off in Flagsmith. - Kinde MCP by usefulapi
Users, organizations, roles, permissions, applications and feature flags. - Logz.io MCP by usefulapi
Search logs, read alerts, enable or disable them, and read dashboards in Logz.io. - AIOProductOS MCP
AIOProductOS: revenue, feedback, work and analytics on one customer record. 71 tools, 3 apps.
Badge for your README
[](https://aptlynx.net/servers/io.usefulapi/posthog)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents