Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.
VariableRequiredDescription
POSTHOG_API_KEYYesPostHog Personal API Key Docs.
POSTHOG_HOSTNoPostHog API host (defaults to https://us.posthog.com; app.posthog.com is the legacy US alias) Docs.

Tools

ToolAccessDescription
Get TrendsReadRetrieve event trends and analytics data
List Feature FlagsReadList all feature flags in your PostHog project
List PersonsReadList persons/users tracked in PostHog
Capture EventWriteTrack a custom event in PostHog

Example prompts

  • Show me the trends for key events in my PostHog project over the last 7 days.
  • List all active feature flags and their current rollout status.
  • Give me insights about recent user activity and top users in my PostHog project.