We've tested and documented setup for Claude Code, Claude Desktop, Cursor, Codex, VS Code, Windsurf, and Zed. The
PostHog Wizard
can install the server into most of these in one command.
Do I need to create an API key?
No, OAuth is the recommended path and works out of the box with the wizard. If your client doesn't support OAuth, you can use a
personal API key
with the
MCP Server
preset – see the
API key authentication
section below.
Can I use more than one PostHog account, organization, or project at the same time?
Yes, but add one MCP connection for each. A single connection signs in as one account and has one active organization and project. See
working with multiple accounts, organizations, or projects
.
Can my organization manage MCP access centrally through our IdP?
Yes.
