Use PostHog with your AI.
Connect your account once and let the AI you already use work with it, without building another integration. Manage product analytics and feature flags via PostHog. query events, inspect cohorts, toggle flags and create annotations from any AI agent.
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.
Complete set · 13 capabilities
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
List cohorts
Each cohort is a dynamic group of users defined by event-based or property-based filters. Returns cohort ID, name, description, whether it is calculated or static. List behavioral cohorts in PostHog
- 02
List feature flags
Each flag has a key, name, enabled status, rollout percentage, filters and release conditions. Returns flag ID, key, name, whether it is active, and the targeting configuration. Use this to audit feature flag coverage. List all feature flags in PostHog
- 03
Create annotation
Annotations appear on insights graphs and help correlate metric changes with deployments, launches or incidents. Requires the content text. Optionally set a date_marker (ISO 8601 date). Create a new annotation in PostHog
- 04
Get feature flag
Provide the numeric flag ID from list_feature_flags. Get details for a specific PostHog feature flag
05-07
3 capabilities in this set.
Part of 13 available through PostHog.
- 05
Get person
Provide the distinct_id used to identify the person. Get details for a specific person in PostHog
- 06
List events
Optionally filter by event name (e.g. "pageview", "signup", "purchase") and set a limit. Each event includes the event name, timestamp, person distinct ID and properties. List events tracked in PostHog
- 07
Update feature flag
Provide the flag ID and any fields to change: name, description, enabled status. Only the fields you provide will be updated. Update an existing PostHog feature flag
08-10
3 capabilities in this set.
Part of 13 available through PostHog.
- 08
Create feature flag
Requires the flag key (unique identifier). Optionally set the name, description, enabled status, rollout percentage and filters. The key must be unique across all flags in the project. Create a new PostHog feature flag
- 09
Delete feature flag
All targeting conditions, release conditions and experiment data associated with the flag will be deleted. Provide the numeric flag ID. WARNING: this action is irreversible. Delete a PostHog feature flag
- 10
Get user
Returns user ID, email, name, organization membership and permissions. Use this to verify your API key is working and check your access level. Get the current PostHog user details
11-13
3 capabilities in this set.
Part of 13 available through PostHog.
- 11
List annotations
Annotations are markers on timeline graphs that highlight important events like deployments, feature launches or incidents. Returns annotation ID, content, date marker and whether it is pinned. List annotations in PostHog
- 12
List persons
Each person has distinct IDs, properties, creation date and last event timestamp. Optionally set limit (default 20) and offset for pagination. List persons (users) tracked in PostHog
- 13
List projects
Each project is an analytics workspace with its own events, persons, feature flags and cohorts. Returns project ID, name, organization and creation date. List PostHog projects
Observed, not estimated
924ms average. Fast in production.
PostHog is checked daily against the live service.
- Fastest day
- 760ms
- Slowest day
- 1162ms
- 14-day trend
- Stable+3%
Connect your client
One URL. Every client.
Activate the Connector, copy your link, and paste it into the client you already use. 13 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_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/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-alternative-mcp": {
"url": "https://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/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
FAQ
Questions PostHog owners ask.
- 01
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.
- 02
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.
- 03
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.
- 04
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.
Explore
More in Loved By Devs
DevCycle AI Connector
Equip your AI agent to manage feature flags, monitor environments, and track variations via the DevCycle API.
ViewBugHerd AI Connector
Manage BugHerd projects, tasks, and comments through AI Agents.
ViewBugHerd AI Connector
Manage BugHerd projects, tasks, and comments through AI Agents.
ViewzipBoard AI Connector
Automate visual feedback and bug tracking via zipBoard — manage projects, files, and tasks with AI.
View
Suggestions
ProofHub AI Connector
Empower your AI agent to manage your ProofHub projects — list tasks, create to-dos, read discussions, and trac
ViewToggl Plan AI Connector
Manage your team's visual timelines, track project phases, and balance workloads securely via your AI agent.
ViewTeamwork Projects AI Connector
Manage projects, tasks, milestones, time entries, and messages via Teamwork API.
ViewWebVizio AI Connector
Review and annotate live websites with visual feedback tools that let teams comment directly on pages during d
View
