- Log in to PostHog
- Click your profile icon or name
- Scroll down to Personal API Keys
- Click + Create a personal API Key
- Give your key a descriptive label
- Select the scopes (permissions) required:
- Choose only the endpoints you need (security best practice)
- Or simply select the MCP preset
- Click Create key
- Copy the key value immediately (it’s only shown once)