PostHog Connector for AI agents.
13 live capabilities
Manage product analytics and feature flags from your chat interface.
Waiting for input…
Why people use PostHog
PostHog Analytics Management for Faster Product Decisions
With the PostHog MCP, you can just ask your AI agent for the status. It pulls the data directly, giving you the answer in seconds so you can stay focused on the code or the strategy.
What Vinkius changes
You get a direct line to your product data without the UI overhead.
Use it from Claude, ChatGPT, Cursor or another AI client you already have.
One account · 5,900+ Connectors
- Real-world use case 01
Emergency flag toggle
A developer notices a bug in production and asks their agent to use update_feature_flag to disable a feature immediately.
- Real-world use case 02
User behavior deep dive
A support lead asks the agent to pull a profile using get_person to see what actions a specific user took before a crash.
- Real-world use case 03
Launch audit
A PM asks the agent to list_annotations to see which deployments occurred during a recent drop in conversion rates.
Complete set · 13capabilities
The complete PostHog capability set.
These are the exact actions your AI can choose when you ask it to work with PostHog.
01—04
4 capabilities in this set.
Part of 13 available through PostHog.
- 01 Capability
List cohorts
View all behavioral cohorts and their filter definitions. This helps you see who is in your target groups.
- 02 Capability
List events
Browse through recent events and filter them by type. This is great for inspecting event properties.
- 03 Capability
List feature flags
List every flag in your project. Use this to audit your coverage and active rollouts.
- 04 Capability
Create annotation
Add a note to your insights graphs to mark a deployment or launch. This helps you see why metrics changed in the past.
05—07
3 capabilities in this set.
Part of 13 available through PostHog.
- 05 Capability
Create feature flag
Create a new flag with a unique key and name. You can also set rollout percentages and filters.
- 06 Capability
Delete feature flag
Permanently remove a flag and its data using its ID. This action is irreversible.
- 07 Capability
Get feature flag
Get the full details of a specific flag. Use this to check its status and configuration.
08—10
3 capabilities in this set.
Part of 13 available through PostHog.
- 08 Capability
Get person
Look up a specific user profile by their distinct ID. You'll see their properties and activity timeline.
- 09 Capability
Get user
View your current account details and permissions. Use this to verify your API key is active.
- 10 Capability
List annotations
List all the markers you've placed on your timeline graphs. This shows deployments and launches.
11—13
3 capabilities in this set.
Part of 13 available through PostHog.
- 11 Capability
List persons
See a list of users tracked in your account. You can also filter by creation date or activity.
- 12 Capability
List projects
List all the analytics projects in your organization. This shows your different workspaces.
- 13 Capability
Update feature flag
Update the name, description, or status of a flag. Only the fields you provide will change.
Set up in minutes
One URL. Then ask PostHog to work.
Claude and ChatGPT only need the Connector URL. Copy it once, add it in settings, and use PostHog from the conversation.
Choose your client
Live previewAdvanced clients IDE · CLI
Claude · Web + desktop
Connector URL · ready to paste
Streamable HTTPhttps://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp - Step 01
Open Connectors
In Claude Web or Claude Desktop, open Settings and choose Connectors.
- Step 02
Add the URL
Choose Add custom connector, name it PostHog, and paste the URL above.
- Step 03
Turn it on in chat
Select +, open Connectors, and enable PostHog for the conversation.
ChatGPT · Web + desktop
Connector URL · ready to paste
Streamable HTTPhttps://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp - Step 01
Open MCP settings
On desktop, open Settings and MCP servers. On web, open your workspace app or connector settings.
- Step 02
Add the URL
Choose Add server with Streamable HTTP, or create a custom MCP app, then paste the PostHog URL.
- Step 03
Save and start
Save the connection and enable PostHog in your conversation. Desktop may ask you to restart once.
Cursor · IDE configuration
Advanced setup
{
"mcpServers": {
"posthog-alternative": {
"url": "https://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp"
}
}
} - Step 01
Open MCP Settings
Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) → search "MCP Settings"
- Step 02
Add the server config
Paste the JSON configuration above into the mcp.json file that opens
- Step 03
Save the file
Cursor will automatically detect the new Connector
- Step 04
Start using PostHog
Open Agent mode in chat and ask: "Using PostHog, help me...". 13 tools available
VS Code Copilot · IDE configuration
Advanced setup
{
"mcpServers": {
"posthog-alternative": {
"url": "https://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp"
}
}
} - Step 01
Create MCP config
Create a .vscode/mcp.json file in your project root
- Step 02
Add the server config
Paste the JSON configuration above
- Step 03
Enable Agent mode
Open GitHub Copilot Chat and switch to Agent mode using the dropdown
- Step 04
Start using PostHog
Ask Copilot: "Using PostHog, help me...". 13 tools available
Windsurf · IDE configuration
Advanced setup
{
"mcpServers": {
"posthog-alternative": {
"url": "https://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp"
}
}
} - Step 01
Open MCP Settings
Go to Settings → MCP Configuration or press Cmd+Shift+P and search "MCP"
- Step 02
Add the server
Paste the JSON configuration above into mcp_config.json
- Step 03
Save and reload
Windsurf will detect the new server automatically
- Step 04
Start using PostHog
Open Cascade and ask: "Using PostHog, help me...". 13 tools available
Cline · IDE configuration
Advanced setup
{
"mcpServers": {
"posthog-alternative": {
"url": "https://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp"
}
}
} - Step 01
Open Cline MCP Settings
Click the Connectors icon in the Cline sidebar panel
- Step 02
Add remote server
Click "Add Connector" and paste the configuration above
- Step 03
Enable the server
Toggle the server switch to ON
- Step 04
Start using PostHog
Ask Cline: "Using PostHog, help me...". 13 tools available
Claude Code · Terminal command
Advanced setup
claude mcp add posthog-alternative --transport http "https://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp" - Step 01
Install Claude Code
Run npm install -g @anthropic-ai/claude-code if not already installed
- Step 02
Add the Connector
Run the command above in your terminal
- Step 03
Verify the connection
Run claude mcp to list connected servers, or type /mcp inside a session
- Step 04
Start using PostHog
Ask Claude: "Using PostHog, show me...". 13 tools are ready
Where the request belongs
Work PostHog can move forward.
This is for the product team that lives in the weeds of launch data. It's for the engineer who needs to toggle a flag during a hotfix at 2am and the PM who needs to verify a cohort's definition without asking for a manual export.
Product Manager
Auditing rollout percentages and creating deployment annotations for stakeholders during a launch.
Developer
Toggling feature flags and checking event payloads during a hotfix without opening a browser.
Data Analyst
Reviewing cohort filters and pulling user activity timelines for deep dives into user behavior.
Build the capability set
Add more capabilities.
Each Connector adds new actions and data without changing how you work.
Browse ConnectorsPostHog
Analyze product data via PostHog. list insights, track persons, inspect feature flags, and monitor experiments directly from any AI agent.
Heap
Automate product analytics via Heap. track events, identify users, and manage segments directly from any AI agent.
Statsig
Manage feature flags, dynamic configs, and experiments. Evaluate gates and log events directly from your AI agent.
Amplitude
Track user behavior, analyze product metrics, and manage cohorts directly from your AI agent using Amplitude's powerful analytics suite.
Countly
Manage product analytics via Countly. track user sessions, record custom events, and query deep behavioral metrics directly from your AI agent.
Mixpanel (Event Analytics & Insights)
Manage product analytics via Mixpanel. query event trends, track conversion funnels, and audit user cohorts.
Bring your own AI
Change the model, client or framework. Keep PostHog connected.
-
Claude -
ChatGPT -
Gemini -
Cursor -
VS Code -
Windsurf -
ZCode -
Cline -
Zed -
Continue -
Kiro -
Roo Code -
Zencoder -
Goose -
Void -
Augment Code -
Amp -
Qodo -
Tabnine -
Pieces -
Sourcegraph Cody -
JetBrains -
Warp -
Amazon Q -
Antigravity -
BoltAI -
Raycast -
Jan -
LM Studio -
AnythingLLM -
Open WebUI -
Msty -
Cherry Studio -
LibreChat -
TypingMind -
Chorus -
5ire -
n8n -
LangChain -
LlamaIndex -
CrewAI -
Vercel AI SDK
Before you connect
Questions about PostHog.
The practical details behind the request, access and result.
How can I use PostHog with my AI agent?
You can connect your PostHog account to your AI agent using this Connector. Once connected, you can ask your agent to perform tasks like checking flags, listing events, or looking up user profiles using plain English.
Can I toggle feature flags using the PostHog MCP?
Yes, you can. Your agent can update the status and rollout percentages of your flags directly, which helps you manage releases without leaving your current workspace.
How do I see user activity using PostHog?
You can ask your agent to pull a specific user's profile. It will return their properties, sign-up date, and a timeline of their recent activity.
Can the PostHog MCP create annotations?
Yes, it can. You can tell your agent to create an annotation for a specific event, like a deployment or a launch, to mark it on your timeline graphs.
Is it safe to delete flags with the PostHog MCP?
Yes, you can delete flags using the Connector, but be careful. This action is permanent and will remove all associated targeting conditions and experiment data.
How do I check my project cohorts?
You can ask your agent to list your cohorts. It will show you the names, descriptions, and the filter definitions for all your behavioral groups.
How do I create a PostHog Personal API Key?
Log in to PostHog, click your profile icon > Personal API keys, then + Create a Personal API Key. Give it a label, select the required scopes and copy the key immediately. it won't be shown again after page refresh.
Can I toggle feature flags via the agent?
Yes! Use create_feature_flag to add new flags, update_feature_flag to modify existing ones (name, description, enabled status), and delete_feature_flag to remove them. You'll need the numeric flag ID from list_feature_flags for update and delete operations.
What's the difference between events and persons?
Events are actions that happen in your product (pageviews, button clicks, purchases). Persons are the users who perform those actions, identified by distinct_id. Events are linked to persons, so you can see what actions a specific user has taken. Use list_events to browse activity and get_person to see a user's profile.
Can I use this with a self-hosted PostHog instance?
Yes! The capabilities default to https://app.posthog.com for the US cloud, but you can set the host parameter to your self-hosted instance URL (e.g. https://posthog.yourcompany.com). EU cloud users should set the host to https://eu.posthog.com.
One connection away
Give your agent a direct line to PostHog.
Connect PostHog once. Keep it beside 5,900+ managed Connectors when the next task needs more.
Explore every Connector No credit card required · Free tier available