PostHog

{/* Generated by scripts/generate-integration-catalog.mjs. Do not edit by hand. */}

At a glance

  • Availability: Experimental (how to enable).
  • Authentication: API key.
  • Connection: The key from POSTHOG_API_KEY is sent as the Bearer prefixed Authorization header.
  • Provider documentation: Authentication reference.

Credentials

Set these per environment. See Connect an integration.

VariableRequiredDescription
POSTHOG_API_KEYYesPostHog Personal API Key Docs.
POSTHOG_PROJECT_API_KEYNoPostHog project API key (phc_...) the local scaffold's capture-event tool sends. Event ingestion rejects personal API keys. Docs.
POSTHOG_HOSTNoPostHog API host or HTTPS origin: us.posthog.com for US Cloud (default; https://app.posthog.com is the legacy US alias) or eu.posthog.com for EU Cloud Docs.

Tools

ToolAccessDescription
Get Trends<br /><code className="reference-identifier">posthog__get_trends</code>ReadGet trends
List Feature Flags<br /><code className="reference-identifier">posthog__list_feature_flags</code>ReadList feature flags
List Persons<br /><code className="reference-identifier">posthog__list_persons</code>ReadList persons
Capture Event<br /><code className="reference-identifier">posthog__capture_event</code>WriteCapture event

Verify the connection

Call a read tool such as posthog__get_trends with arguments for your account. Confirm that the result comes from the intended account or workspace before enabling write tools.