PostHog MCP
Explore events, funnels, errors and feature flags in PostHog. OAuth routes you to the data region for your account.
Connect MCP
Copy the setup for your client. YourAgents does not run it or ask for tokens.
After adding the server, sign in through your client and review the requested permissions.
Codex
Run the command in your terminal, then sign in if prompted.
codex mcp add posthog --url https://mcp.posthog.com/mcp
codex mcp login posthog
Claude Code
Run the command in your terminal, then sign in if prompted.
claude mcp add --transport http posthog https://mcp.posthog.com/mcp
# Claude Code: /mcp
Cursor · .cursor/mcp.json
If you already have a config file, merge only this server entry and keep the other settings.
{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}
VS Code · .vscode/mcp.json
If you already have a config file, merge only this server entry and keep the other settings.
{
"servers": {
"posthog": {
"type": "http",
"url": "https://mcp.posthog.com/mcp"
}
}
}