Skip to content
Vinkius

PostHog Connector for AI agents.

13 live capabilities

Manage product analytics and feature flags from your chat interface.

Live agent request PostHog / Connector

Waiting for input…

AI Agent

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.

  • Claude
  • ChatGPT
  • Gemini
  • Cursor
  • Visual Studio Code
  • Windsurf

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

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

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

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

Capability set01 / 04

01—04

4 capabilities in this set.

Part of 13 available through PostHog.

  1. 01 Capability

    List cohorts

    View all behavioral cohorts and their filter definitions. This helps you see who is in your target groups.

  2. 02 Capability

    List events

    Browse through recent events and filter them by type. This is great for inspecting event properties.

  3. 03 Capability

    List feature flags

    List every flag in your project. Use this to audit your coverage and active rollouts.

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

Capability set02 / 04

05—07

3 capabilities in this set.

Part of 13 available through PostHog.

  1. 05 Capability

    Create feature flag

    Create a new flag with a unique key and name. You can also set rollout percentages and filters.

  2. 06 Capability

    Delete feature flag

    Permanently remove a flag and its data using its ID. This action is irreversible.

  3. 07 Capability

    Get feature flag

    Get the full details of a specific flag. Use this to check its status and configuration.

Capability set03 / 04

08—10

3 capabilities in this set.

Part of 13 available through PostHog.

  1. 08 Capability

    Get person

    Look up a specific user profile by their distinct ID. You'll see their properties and activity timeline.

  2. 09 Capability

    Get user

    View your current account details and permissions. Use this to verify your API key is active.

  3. 10 Capability

    List annotations

    List all the markers you've placed on your timeline graphs. This shows deployments and launches.

Capability set04 / 04

11—13

3 capabilities in this set.

Part of 13 available through PostHog.

  1. 11 Capability

    List persons

    See a list of users tracked in your account. You can also filter by creation date or activity.

  2. 12 Capability

    List projects

    List all the analytics projects in your organization. This shows your different workspaces.

  3. 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 preview
Advanced clients IDE · CLI

Claude · Web + desktop

Official guide ↗

Connector URL · ready to paste

Streamable HTTP
https://edge.vinkius.com/vk_preview_8VcsMkOZnGEFbUxwKe3mMQLdbs42FUTalA4xKqKJ/mcp
  1. Step 01

    Open Connectors

    In Claude Web or Claude Desktop, open Settings and choose Connectors.

  2. Step 02

    Add the URL

    Choose Add custom connector, name it PostHog, and paste the URL above.

  3. Step 03

    Turn it on in chat

    Select +, open Connectors, and enable PostHog for the conversation.

Where the request belongs

Work PostHog can move forward.

Built around the request

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.

01

Product Manager

Auditing rollout percentages and creating deployment annotations for stakeholders during a launch.

02

Developer

Toggling feature flags and checking event payloads during a hotfix without opening a browser.

03

Data Analyst

Reviewing cohort filters and pulling user activity timelines for deep dives into user behavior.

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