PostHog MCP
Query analytics, manage feature flags, triage errors, and run HogQL from your coding agent.
Add PostHog MCP to your agent
Remote OAuth server. PostHog auth routes you to the correct US or EU region automatically. Run npx @posthog/wizard mcp add for guided setup.
1Config location
Global: ~/.cursor/mcp.json or project: .cursor/mcp.json
2Copy this snippet
{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}
Add this block under mcpServers, then restart Cursor.