Integration

PostHog EU integration

PostHog EU Cloud (eu.posthog.com); for a project on us.posthog.com (or app.posthog.com) use the PostHog integration instead, since a personal API key only works on the cloud it was created on. Product analytics for event tracking and ingestion, persons and groups, insights and HogQL queries, cohorts, feature flags, experiments and session recordings. The EU cloud answers a US key with HTTP 401 or 403 "Personal API key found in request Authorization header is invalid".

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in PostHog EU.Built from the 38 PostHog EU tools below, on the connection you add once.

Common PostHog EU use cases

  • Modify targeting rules
  • Create NPS survey
  • End running survey
  • Launch new A/B test
  • End running experiment
  • Play back user session
  • Remove outdated survey
  • Discover tracked events
  • Fetch saved report data
  • List deployment markers

What you can do with PostHog EU

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Feature flag, 5 operations

  • create_feature_flagCreate feature flagPOSTAgents: ask firstCreate a new feature flag
  • evaluate_feature_flagsEvaluate feature flagsPOSTAgents: ask firstEvaluate feature flags for a user
  • get_feature_flagGet feature flagGETAgents: ask firstGet feature flag details by ID
  • list_feature_flagsList feature flagsGETAgents: ask firstList all feature flags in project
  • update_feature_flagUpdate feature flagPATCHAgents: ask firstUpdate feature flag configuration

Person, 5 operations

  • create_aliasCreate aliasPOSTAgents: ask firstCreate alias to merge user identities
  • delete_personDelete personDELETEAgents: ask firstDelete a person from PostHog
  • get_personGet personGETAgents: ask firstGet person details by ID
  • identify_userIdentify userPOSTAgents: ask firstIdentify and update user profile properties
  • list_personsList personsGETAgents: ask firstList all users/persons in project

Survey, 5 operations

  • create_surveyCreate surveyPOSTAgents: ask firstCreate a new survey
  • delete_surveyDelete surveyDELETEAgents: ask firstDelete a survey
  • get_surveyGet surveyGETAgents: ask firstGet survey details by ID
  • list_surveysList surveysGETAgents: ask firstList all surveys in project
  • update_surveyUpdate surveyPATCHAgents: ask firstUpdate survey configuration

Experiment, 4 operations

  • create_experimentCreate experimentPOSTAgents: ask firstCreate a new A/B test experiment
  • get_experimentGet experimentGETAgents: ask firstGet experiment details and results
  • list_experimentsList experimentsGETAgents: ask firstList all A/B test experiments
  • update_experimentUpdate experimentPATCHAgents: ask firstUpdate experiment configuration

Cohort, 3 operations

  • create_cohortCreate cohortPOSTAgents: ask firstCreate a new user cohort
  • get_cohortGet cohortGETAgents: ask firstGet cohort details by ID
  • list_cohortsList cohortsGETAgents: ask firstList all user cohorts

Annotation, 2 operations

  • create_annotationCreate annotationPOSTAgents: ask firstCreate annotation marker on graphs
  • list_annotationsList annotationsGETAgents: ask firstList all annotations in project

Dashboard, 2 operations

  • get_dashboardGet dashboardGETAgents: ask firstGet dashboard details by ID
  • list_dashboardsList dashboardsGETAgents: ask firstList all dashboards in project

Event, 2 operations

  • batch_captureBatch capturePOSTAgents: ask firstBatch capture multiple events in one request
  • capture_eventCapture eventPOSTAgents: ask firstCapture and track a user event

Group, 2 operations

  • group_identifyGroup identifyPOSTAgents: ask firstIdentify and update group properties
  • list_groupsList groupsGETAgents: ask firstList all groups by type

Insight, 2 operations

  • get_insightGet insightGETAgents: ask firstGet insight details and results
  • list_insightsList insightsGETAgents: ask firstList all saved insights and reports

Session recording, 2 operations

  • get_session_recordingGet session recordingGETAgents: ask firstGet session recording details
  • list_session_recordingsList session recordingsGETAgents: ask firstList session recordings

Action, 1 operation

  • list_actionsList actionsGETAgents: ask firstList all defined actions

Event definition, 1 operation

  • list_event_definitionsList event definitionsGETAgents: ask firstList all event definitions

Property definition, 1 operation

  • list_property_definitionsList property definitionsGETAgents: ask firstList all property definitions

Query, 1 operation

  • query_hogqlQuery hogqlPOSTAgents: ask firstExecute HogQL SQL query

Use PostHog EU from Claude Code, Cursor or Codex

Connect PostHog EU in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its PostHog EU operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect PostHog EU

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect PostHog EU once

    Add your PostHog EU connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

PostHog EU integration FAQ

What can you do with the PostHog EU integration?

LiveContext exposes 38 operations on PostHog EU, covering feature flag, person, survey and experiment. Common uses include Modify targeting rules, Create NPS survey and End running survey.

Popular integrations

Browse the whole catalog