ClaudeChatGPTPerplexityGeminiMicrosoft CopilotRaycastMeta AIGrokZ.aiQwenKimi
DeepSeekMistralCursorVS CodeWindsurfJetBrainsClineLovableVercel AI SDKLangChain

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.

Included with plan

Ask AI about this Connector

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.

ChatGPTClaudeCursorPerplexityGeminiMicrosoft CopilotRaycastMeta AI

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.

Capability set01 / 04

01-04

4 capabilities in this set.

Part of 13 available through PostHog.

  1. 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

  2. 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

  3. 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

  4. 04

    Get feature flag

    Provide the numeric flag ID from list_feature_flags. Get details for a specific PostHog feature flag

Capability set02 / 04

05-07

3 capabilities in this set.

Part of 13 available through PostHog.

  1. 05

    Get person

    Provide the distinct_id used to identify the person. Get details for a specific person in PostHog

  2. 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

  3. 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

Capability set03 / 04

08-10

3 capabilities in this set.

Part of 13 available through PostHog.

  1. 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

  2. 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

  3. 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

Capability set04 / 04

11-13

3 capabilities in this set.

Part of 13 available through PostHog.

  1. 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

  2. 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

  3. 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.

Daily averagePeak 1162ms
Aug 20Today
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.

Connector linkhttps://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — PostHog capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "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.