Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

PostHog

✓ service owner · posthog.com✓ In Claude’s connector directory

by PostHogversion 1.0.0i★ 41,029 (Stars for the whole repo)iRuns in the cloudOfficial site ↗

How to install

What it does

Query analytics, manage feature flags and experiments, and investigate errors in PostHog.

  • Connects Runs in the cloud
  • Account or key Sign in to the service when you connect (OAuth)
  • Category Marketing & social media

Use together with

Skills that teach the AI this kind of work; they work alongside this one

scroll-world

A skill that turn any brand into a scrollable 3D world landing page

by oso95★ 11,1091 skills

Skill · How-to guide

social-auto-upload

自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili

by dreammis★ 16,841 (whole repo)4 skills

Skill · How-to guide

native-subtitle-quote-image

保留视频内嵌字幕,精确取帧并生成 3:4 社交长图的 Agent Skill

by chengyi-ai★ 2,8951 skills

Skill · How-to guide

Why it ranks here

This one is in the “Apps that connect to AI” tab, which is ordered without stars, in this order

1. In Claude’s connector directoryYesdirectory popularity 18,191
2. Tried by our teamNo
3. Works for Thai usersNo
4. Usage without stars20/100Popularity 0 · Freshness 12 · Still answering 8 · Likes from users +0
5. Listed on2026-11-22

Likes from users: 0 · Adds at most 5 points to the order (1 per person). It cannot be bought.

Quality: Passed 4/4 basic checks (shown, not used for ordering)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install PostHog. Follow https://mcp.popnx.com/i/posthog-mcp-1p4si.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 4/4 checks · What you ask goes through the maker’s server (mcp.posthog.com) · ✓ Commands checked Nov 22, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Install it in the Claude app, no setup needed

PostHog is in the list Claude curates. Use the button below to add it · checked Nov 16, 2026

  1. Open the PostHog page in Claude

    Opens on claude.ai · if you are not signed in, the page shows “Sign in to add” first

  2. Click “Connect to Claude”, then sign in to your PostHog account if asked

    If you see “Failed to add the connector”, wait a moment and try again, or use another way below

  3. Try it

    Use PostHog and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using PostHog or shows a PostHog tool in the answer, you are connected

Link won’t open? Use the menu instead
  1. Open Claude on the web (claude.ai) or the Claude Desktop app

  2. Click “Customize” in the left sidebar

    Customize

  3. Choose the “Connectors” tab, then click the “+” button next to Connectors

    CustomizeConnectors+

  4. Type “PostHog” in the search box or scroll the list, then click it

  5. Click “Connect” (some say “Install”)

  6. Sign in to that service if asked

  7. Turn it on in a chat: click “+” at the lower left of the chat box → “Connectors” → switch on PostHog

Menu names are in English, as on Claude’s screen

Menu names checked against Anthropic’s help page on Nov 13, 2026 · your screen may differ slightly by app version

Other way: add it yourself by URL (custom connector)

Works with Claude · about 2 min

No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it

  1. Click this button: Claude opens the add-connector window already filled in

    Add PostHog to Claude ↗

    The name and URL are filled in for you. Check them and click Add · if you are signed out, Claude asks you to sign in first

    Click Continue past the sign-in settings Claude detected · under Authentication choose what the maker says (Sign in now, Sign in when needed or No sign in), then click Add

    Button not working? Fill it in yourself

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4

    Click “Add” → “Custom” → “Web” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NamePostHog
    Remote MCP server URL · Addresshttps://mcp.posthog.com/mcp
  2. Turn it on in a chat

    +ConnectorsPostHog

  3. Try it

    Use PostHog and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using PostHog or shows a PostHog tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with ChatGPT, depending on your plan

Full MCP: ChatGPT Business, Enterprise or Edu on the web · Pro: connects with read/fetch permissions, so tools that change data may not work · Plus: not confirmed in OpenAI’s docs; if you see an add-custom-MCP option on the Plugins page you can try these steps · web only

  1. Open ChatGPT’s add-MCP page on the web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Fill in the name and address

    Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin

    Name · NamePostHog
    Connection · Addresshttps://mcp.posthog.com/mcp
  3. Pick PostHog in a chat

    Start a new chat and pick PostHog from your plugins before typing

  4. Try it

    Use PostHog and tell me what you can do for me, then show me one thing

    ✓ If ChatGPT says it is using PostHog or shows a PostHog tool in the answer, you are connected

Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Claude Code · about 2 min

No key, nothing to install

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --transport http --scope user posthog https://mcp.posthog.com/mcp
  3. Type /mcp in Claude Code

    You should see PostHog listed as connected

  4. Try it

    Use PostHog and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using PostHog or shows a PostHog tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 2 min

No key, nothing to install

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use PostHog and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using PostHog or shows a PostHog tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 2 min

No key, nothing to install

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use PostHog and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using PostHog or shows a PostHog tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://mcp.posthog.com/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use PostHog💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http --scope user posthog https://mcp.posthog.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "posthog": {
      "url": "https://mcp.posthog.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "posthog": {
      "type": "http",
      "url": "https://mcp.posthog.com/mcp"
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Registry name
com.posthog/mcp
GitHub starsi
41,029 (Stars for the whole repo)
This repo holds several MCP listings; its stars count once in rankings
Downloads per weeki
Not on npm/PyPI
Verified domain
✓ posthog.com
Licencei
No licence stated
Connection
Runs in the cloud
Transport
streamable-http
Latest versioni
1.0.0
Published to registryi
Nov 22, 2026
Code last changedi
Nov 23, 2026
Last checked
Nov 23, 2026
Maker
PostHog
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

All apps, with pros and cons →

Related guides

What it can do

The server asks you to sign in before it lists its tools.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 23, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified against the domain posthog.com (the registry checks domain ownership)

  • ✓ Pass

    Still maintained

    Code last changed today

  • – Not applicable

    Has a licence

    Not applicable: a cloud server run by the owner of posthog.com; you don't run code from the repo

  • ✓ Pass

    Endpoint responds

    Responded in 25 ms (HTTP 401)

  • ✓ Pass

    Sign-in with OAuth

    Declares OAuth sign-in, so your AI app can take you to log in

  • … Not checked yet

    No hidden instructions in tool descriptions

    Not checked yet; we read the tool list when we check the endpoint

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/posthog-mcp-1p4si.svg)](https://mcp.popnx.com/en/servers/posthog-mcp-1p4si)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Marketing & social mediai

  • More stars than 99% of the other 4414 servers in this category
  • Published to the registry more recently than 97% of the other 4414 servers in this category
  • Basic checks equal to or better than 99% of the other 4414 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is PostHog safe?

It passed 4 of 4 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs in the maker’s cloud. Connect over the internet with nothing to install, but what you send passes through the maker’s servers.

Is it still maintained?

The GitHub repo last changed today, and the latest version (1.0.0) reached the registry yesterday.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT on the web (full MCP on Business and above; Pro read-only).

What can I use instead?

In the same category: Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

ChatbotX

Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.

by ChatbotXIOGrowing★ 1.1K Stars for the whole repoUpdated 17 days ago

Runs in the cloud✓ service owner · chatbotx.io

Betterlytics

Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.

by betterlyticsGrowing★ 197Updated 4 months ago

Runs in the cloud✓ service owner · betterlytics.io
Compared with similar ones
This one
PostHog
RelaticleChatbotXX (Twitter) MCP Server by XquikBetterlyticsBibiGPT YouTube Video Summarizer
Runs whereRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoYesNo
Add with + in ClaudeYesNoNoNoNoNo
Basic checks4/44/44/44/44/44/4
LicenseNOASSERTIONAGPL-3.0NOASSERTIONMITAGPL-3.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

PostHog MCP

The official MCP server for PostHog. PostHog makes your product self-driving — it reads your data and ships changes with you, never without you — and this server gives MCP clients (Claude, Cursor, VS Code, Zed, and more) that full surface: analytics and SQL, dashboards, experiments, feature flags, surveys, session replay, error tracking, and more.

Documentation: https://posthog.com/docs/model-context-protocol

Use the MCP Server

Quick install

You can install the MCP server automatically into Cursor, Claude, Claude Code, VS Code and Zed by running the following command:

npx @posthog/wizard@latest mcp add
Manual install
  1. Obtain a personal API key using the MCP Server preset.
  1. Add the MCP configuration to your desktop client (e.g. Cursor, Windsurf, Claude Desktop) and add your personal API key
{

"mcpServers": { "posthog": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "https://mcp.posthog.com/mcp", "--header", "Authorization:${POSTHOG_AUTH_HEADER}" ], "env": { "POSTHOG_AUTH_HEADER": "Bearer {INSERT_YOUR_PERSONAL_API_KEY_HERE}" } } } }

Minimal Node client (Streamable HTTP)

If you want to call MCP from Node (outside an IDE), use the Model Context Protocol SDK’s Streamable HTTP transport.

  • Auth: Use a personal PostHog API key and pass it as a Bearer token in Authorization.
  • Accept header: Clients must include Accept: application/json, text/event-stream.
  • Lifecycle: MCP requires initialize then a client notifications/initialized; the SDK performs this during connect().
// tools-list.mjs

import { Client } from '@modelcontextprotocol/sdk/client/index.js' import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js' import { ListToolsResultSchema } from '@modelcontextprotocol/sdk/types.js' import { mkdirSync, writeFileSync } from 'node:fs' import { join } from 'node:path' import { URL } from 'node:url'

const AUTH = process.env.POSTHOG_AUTH_HEADER // "Bearer phx_…" const MCP_URL = process.env.MCP_URL || 'https://mcp.posthog.com/mcp'

if (!AUTH?.startsWith('Bearer ')) { console.error('Set POSTHOG_AUTH_HEADER="Bearer phx_..."') process.exit(1) }

const transport = new StreamableHTTPClientTransport(new URL(MCP_URL), { requestInit: { headers: { Authorization: AUTH, // Required for Streamable HTTP (JSON + SSE) Accept: 'application/json, text/event-stream', }, }, serverInfo: { name: 'example-node-client', version: '0.0.1' }, })

const client = new Client({ name: 'example-node-client', version: '0.0.1' })

// Handles initialize + notifications/initialized await client.connect(transport)

const toolsResp = await client.request({ method: 'tools/list' }, ListToolsResultSchema) // { tools: [...] } const tools = toolsResp?.tools ?? [] console.log('Tools:', tools.length)

// (Optional) Save the full JSON-RPC envelope to a file (run from repo root) const envelope = { jsonrpc: '2.0', id: 'list-1', result: toolsResp } mkdirSync('reports', { recursive: true }) writeFileSync(join('reports', 'tools-list-http.json'), JSON.stringify(envelope, null, 2)) console.log('Saved: reports/tools-list-http.json')

await client.close()

Why these headers & steps?

  • Streamable HTTP requires the Accept header to include both JSON and SSE.
  • After initialize, the client must send notifications/initialized; the SDK does this for you in connect().

See also the main PostHog MCP docs for available tools and setup flows: https://posthog.com/docs/model-context-protocol

Example Prompts

Below are detailed examples showing realistic prompts and expected outputs:

Example 1: Feature flag management

Prompt: "Create a feature flag called 'new-checkout-flow' that's enabled for 20% of users, and show me the configuration"

What happens:

  1. The create-feature-flag tool creates the flag with a 20% rollout
  2. Returns the flag configuration including the key, rollout percentage, and targeting rules

Expected output:

Created feature flag 'new-checkout-flow':
  • Key: new-checkout-flow
  • Active: true
  • Rollout: 20% of all users
  • URL: https://us.posthog.com/project/ /feature_flags/12345
Example 2: Analytics query

Prompt: "How many unique users signed up in the last 7 days, broken down by day?"

What happens:

  1. The query-trends tool executes a trends query filtering for $signup events
  2. Returns daily counts with unique user aggregation

Expected output:

Signups over the last 7 days:
DateUnique users
2025-01-17142
2025-01-18156
2025-01-1998
......

Total: 847 unique signups

Example 3: A/B test creation and monitoring

Prompt: "Create an A/B test for our pricing page that measures conversion to the checkout page"

What happens:

  1. The experiment-create tool creates an experiment with control/test variants
  2. Sets up a funnel metric: pricing page view → checkout page view
  3. Creates an associated feature flag for variant assignment

Expected output:

Created experiment 'Pricing page test':
  • Feature flag: pricing-page-test
  • Variants: control (50%), test (50%)
  • Primary metric: Funnel conversion (pricing_page → checkout)
  • Status: Draft (ready to launch)
  • URL: https://us.posthog.com/project/ /experiments/789
Example 4: Error investigation

Prompt: "What are the top 5 errors in my project this week and how many users are affected?"

What happens:

  1. The query-error-tracking-issues-list tool fetches error groups sorted by occurrence count
  2. Returns error details including affected user counts

Expected output:

Top 5 errors this week:
  1. TypeError: Cannot read property 'id' of undefined
  • Occurrences: 1,247
  • Users affected: 89
  • First seen: 2 days ago
  1. NetworkError: Failed to fetch
  • Occurrences: 856
  • Users affected: 234
  • First seen: 5 days ago

...

Quick prompts

For simpler queries, you can use shorter prompts:

  • "What feature flags do I have active?"
  • "Show me my LLM costs this week"
  • "List my dashboards"
  • "What events are being tracked?"
Feature Filtering

You can limit which tools are available by adding query parameters to the MCP URL. If no features are specified, all tools are available. When features are specified, only tools matching those features are exposed.

https://mcp.posthog.com/mcp?features=flags,workspace,dashboards

Available features:

FeatureDescription
actionsActions
alertsAlerts
annotationsAnnotations
batch_exportsData pipelines
business_knowledgeBusiness knowledge
canvasCanvas
code_reviewPostHog Review
cohortsCohorts
conversationsConversations
coreCore utilities (project switching, docs search)
customer_analyticsCustomer analytics
dashboardsDashboards
data_catalogData catalog
data_schemaData schema exploration
data_warehouseData warehouse
debugDebug and diagnostic tools
docsPostHog documentation search
early_access_featuresEarly access features
endpointsEndpoints
engineering_analyticsEngineering analytics
error_trackingError tracking alerts
eventsEvent and property definitions
experimentsExperiments
feedbackSend feedback to the PostHog team
field_notesField notes
flagsFeature flags
health_issuesHealth
hog_function_templatesCDP function template browsing
hog_functionsFunctions
insightsRun insight queries
integrationsIntegrations
linksPostHog app URL generation
llm_analyticsAI observability
logsLogs
managed_migrationsManaged migrations
marketing_analyticsMarketing analytics
messagingMessaging
mcp_analyticsMCP analytics

| mcp_store | MCP Store

Only the beginning is shown; read the rest in the repo