Skip to main content

Creating your API key

1

Navigate to PostHog API settings

Go to eu.posthog.com/settings/user-api-keys.
If your project is in the US, change the URL prefix to us.posthog.com.
2

Click Create key

Open the Personal API keys section and select Create personal API key.
PostHog API Keys settings page showing the Create personal API key button
3

Fill in the form

  • Select Projects
  • Choose the project you want to integrate
Create personal API key form showing project selection and access tabs
4

Set access permissions

Select MCP Server from the Scopes dropdown.
PostHog Scopes dropdown with MCP Server selected
5

Create and copy your API key

Click Create key and paste it into the form at userjourneys.
You’re all set