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".
Say what should happen.
The workflow builds itself.
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 flagevaluate_feature_flagsEvaluate feature flagsPOSTAgents: ask firstEvaluate feature flags for a userget_feature_flagGet feature flagGETAgents: ask firstGet feature flag details by IDlist_feature_flagsList feature flagsGETAgents: ask firstList all feature flags in projectupdate_feature_flagUpdate feature flagPATCHAgents: ask firstUpdate feature flag configuration
Person, 5 operations
create_aliasCreate aliasPOSTAgents: ask firstCreate alias to merge user identitiesdelete_personDelete personDELETEAgents: ask firstDelete a person from PostHogget_personGet personGETAgents: ask firstGet person details by IDidentify_userIdentify userPOSTAgents: ask firstIdentify and update user profile propertieslist_personsList personsGETAgents: ask firstList all users/persons in project
Survey, 5 operations
create_surveyCreate surveyPOSTAgents: ask firstCreate a new surveydelete_surveyDelete surveyDELETEAgents: ask firstDelete a surveyget_surveyGet surveyGETAgents: ask firstGet survey details by IDlist_surveysList surveysGETAgents: ask firstList all surveys in projectupdate_surveyUpdate surveyPATCHAgents: ask firstUpdate survey configuration
Experiment, 4 operations
create_experimentCreate experimentPOSTAgents: ask firstCreate a new A/B test experimentget_experimentGet experimentGETAgents: ask firstGet experiment details and resultslist_experimentsList experimentsGETAgents: ask firstList all A/B test experimentsupdate_experimentUpdate experimentPATCHAgents: ask firstUpdate experiment configuration
Cohort, 3 operations
create_cohortCreate cohortPOSTAgents: ask firstCreate a new user cohortget_cohortGet cohortGETAgents: ask firstGet cohort details by IDlist_cohortsList cohortsGETAgents: ask firstList all user cohorts
Annotation, 2 operations
create_annotationCreate annotationPOSTAgents: ask firstCreate annotation marker on graphslist_annotationsList annotationsGETAgents: ask firstList all annotations in project
Dashboard, 2 operations
get_dashboardGet dashboardGETAgents: ask firstGet dashboard details by IDlist_dashboardsList dashboardsGETAgents: ask firstList all dashboards in project
Event, 2 operations
batch_captureBatch capturePOSTAgents: ask firstBatch capture multiple events in one requestcapture_eventCapture eventPOSTAgents: ask firstCapture and track a user event
Group, 2 operations
group_identifyGroup identifyPOSTAgents: ask firstIdentify and update group propertieslist_groupsList groupsGETAgents: ask firstList all groups by type
Insight, 2 operations
get_insightGet insightGETAgents: ask firstGet insight details and resultslist_insightsList insightsGETAgents: ask firstList all saved insights and reports
Session recording, 2 operations
get_session_recordingGet session recordingGETAgents: ask firstGet session recording detailslist_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 mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect PostHog EU
- Create your workspace
Sign up free. Nothing to install.
- 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.
- 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.
