Creating your API key
1
Navigate to PostHog API settings
2
Click Create key
Open the Personal API keys section and select Create personal API key.

PostHog API Keys settings with Create personal API key button
3
Fill in the form
- Select Projects
- Choose the project you want to integrate

Create personal API key form with project selection
4
Set access permissions
Select MCP Server from the Scopes dropdown.

Select MCP Server from the Scopes dropdown
5
Create and copy your API key
Click Create key and paste it into the form at userjourneys.
You’re all set