
Connect PostHog to ChatGPT, Claude and Gemini
Set it up once and it works in ChatGPT, Claude, Cursor, and any other client you love. It all runs safely in the background, so you can relax and focus on what really matters. Query your analytics and feature flags using natural language.
Developed, maintained, and hosted by Vinkius.
MCP VERIFIED · PRODUCTION READY · VINKIUS GUARANTEED
Waiting for input…
Works with modern AI clients that support MCP, including ChatGPT, Claude, Cursor, and more.
Your AI does the work. We keep it safe and sound.
No other AI tool gives you this. Your workflow runs in the client you already love, your account stays protected, and you decide what the agent can and cannot do. It is the whole reason to make the switch.
Each Connector lives inside our infrastructure, the same place where your workflow runs. The three things below are already part of it, working quietly in the background so you never have to think about them. Nothing to add, nothing to set up, nothing to worry about.

Each Connector runs inside its own sealed environment.
Each Connector runs inside its own sealed V8 runtime — no access to your files, your system, or other servers. A Connector never sees past its own request.
One switch stops every agent. Instantly.
One action deactivates every Connector, revokes every token, and ends every session at once. AI Governance keeps the record.
Spending limits that pause instead of surprise.
Every user keeps their own connections and credentials, isolated from everyone else. Anything that would cross your spending limit is held for your approval, not billed.
Three controls, built into the layer your AI connects through.
Curated set · 10 capabilities
We ship only the actions that matter.
01-04
4 capabilities in this set.
Part of 10 available through PostHog.
- 01
Get person
This capability fetches the properties and details of a specific person via their ID.
- 02
List events
This capability provides a list of the most recent events captured by your project.
- 03
List dashboards
This capability returns a list of all dashboards in your PostHog project.
- 04
List persons
This capability returns a list of identified persons and users in the project.
05-07
3 capabilities in this set.
Part of 10 available through PostHog.
- 05
Get event
This capability pulls the specific details of a single event using its ID.
- 06
Get insight
This capability retrieves detailed metadata for a specific insight using its ID.
- 07
List actions
This capability retrieves the list of defined user actions available in your project.
08-10
3 capabilities in this set.
Part of 10 available through PostHog.
- 08
List experiments
This capability lists all active and past experiments to track product changes.
- 09
List feature flags
This capability lists all feature flags currently configured in your project.
- 10
List insights
This capability provides a list of all saved insights within your PostHog project.
Real work
What teams actually run
Feature Rollout Monitoring
Check if a new feature flag is active and see how it affects user segments immediately.
Debugging User Flows
Inspect specific person properties to see why a user is stuck in a particular funnel.
Experiment Validation
Ask your agent to list recent experiment results to see if a change is hitting its targets.
Data Integrity Checks
List recent events to ensure that your tracking implementation is working as expected.
Automate a task
Put PostHog to work on one thing.
Step-by-step automations your AI runs through this Connector: the workflow, the prompts to start with, and the exact capabilities behind each move.
One connector, every AI
PostHog works with the most popular AI clients.
These are the most popular clients, each with a step-by-step guide: one link, set up once, with governance and visibility built in. And because everything runs on the MCP standard, the same connection also works in any other compatible client — nothing to rebuild.
Claude
ChatGPT
Gemini
Perplexity
Grok
Microsoft Copilot
Cursor
VS Code
Windsurf
JetBrains
Cline
LangChain
Vercel AI SDK
Lovable
Z.ai
Raycast
Qwen Code
Kimi Code
Le ChatBuilding your own app? The connector is yours to use.
You don't need a client to put PostHog to work: the same hosted connection plugs into your own applications and agent code, with the same governance on every request. Build with it, chat with it — one connection for both.
Observed, not estimated
874ms average. Fast in production.
PostHog is checked daily against the live service.
- Fastest day
- 680ms
- Slowest day
- 1068ms
- 14-day trend
- Slowing+7%
Connect your client
One URL. Every client.
Activate the Connector, copy your link, and paste it into the client you already use. 10 capabilities arrive ready to run.
Preview access · not provider authentication
The vk_preview_* token belongs to Vinkius preview infrastructure. It lets Claude discover and display the capabilities of PostHog, so you can see the experience inside your AI.
It does not authenticate your account with PostHog. Actions requiring credentials or live account data may not run until you activate the Connector and authorize the service.
PostHog Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_vpYk0NiKfoRYdh0mOuVMNfGBNKFlD4K0TVsVAy1i/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — PostHog capabilities are ready to use.
{
"mcpServers": {
"posthog-mcp": {
"url": "https://edge.vinkius.com/vk_preview_vpYk0NiKfoRYdh0mOuVMNfGBNKFlD4K0TVsVAy1i/mcp"
}
}
}
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Step-by-step instructions for each client are in the guide. How to connect
Guided setup for Claude? Set up PostHog in Claude and other AIs
Who it's for
Built for the work PostHog owners hand off.
This MCP is for technical teams who need to bridge the gap between product analytics and their development workflow.
- 01
Product Managers
They use the AI to quickly check feature flag status or review insight results.
- 02
Growth Engineers
They monitor active experiments and user properties during development cycles.
- 03
Data Analysts
They audit event logs and person metadata without leaving their primary workspace.
FAQ
Questions PostHog owners ask.
- 01
How do I connect PostHog to my AI client?
You subscribe to the MCP on Vinkius and provide your PostHog Personal API Key and Project ID. Once connected, the capabilities are immediately available in your AI client.
- 02
Can I use this with an EU-based PostHog instance?
Yes. You can provide your specific PostHog Host during the setup process to ensure the connection works with EU instances.
- 03
Which AI clients are compatible?
This MCP works with any MCP-compatible client, including Claude, Cursor, and Windsurf.
- 04
What kind of data can my agent access?
Your agent can access insights, person properties, feature flags, experiments, dashboards, and recent event logs.
- 05
Do I need to manage the connection myself?
No. Vinkius hosts the MCP and manages the credentials so it is ready to use as soon as you connect your client.
- 06
Where do I find my Project ID?
You can find your Project ID in PostHog under Project Settings. It is a numeric ID usually found at the top of the settings page.
- 07
Does this support PostHog EU instances?
Yes! Use the optional POSTHOG_HOST credential and set it to https://eu.posthog.com. By default, it uses the US host (https://app.posthog.com).
- 08
Can I see individual user properties?
Absolutely. Use the get_person capability with a Person ID to retrieve all properties, tags, and identification metadata for a specific user.
Explore
More in Data Analytics
Mixpanel (Event Analytics & Insights) AI Connector
Manage product analytics via Mixpanel — query event trends, track conversion funnels, and audit user cohorts.
ViewPostHog AI Connector
Manage product analytics and feature flags via PostHog — query events, inspect cohorts, toggle flags and creat
ViewAmplitude AI Connector
Analyze product data via Amplitude — get user activity, calculate retention, analyze funnels, and track revenu
ViewGainsight PX AI Connector
Manage product experience, track user behavior, and oversee engagements via AI agents with Gainsight PX.
View
Suggestions
Google Analytics 4 AI Connector
Understand your website and app traffic with event-based analytics that reveal user behavior, conversions, and
ViewGrowingIO AI Connector
Leading product analytics platform in China — manage events, segments, and metrics via AI.
ViewFeature Adoption Analytics AI Connector
Quantify feature success through adoption velocity, saturation estimates, and retention impact modeling.
ViewHeap AI Connector
Automate product analytics via Heap — track events, identify users, and manage segments directly from any AI a
View
Connect PostHog to Claude, Cursor, ChatGPT & more
