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

Posthog MCP Server

by friendlygeorgeversion 1.0.0i★ 0iRuns on your computer
Registry nameio.github.friendlygeorge/posthog-mcp-server

How to install

Overview

Description from the maker (original English)

MCP server for PostHog — product analytics for AI assistants. Query events, persons, insights, da...

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Marketing & social media

Install

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

Passed 1/2 checks · Runs on your computer

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "posthog": {
          "command": "npx",
          "args": [
            "-y",
            "posthog-mcp-server"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Posthog MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Posthog MCP Server or shows a Posthog MCP Server 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

ChatGPT cannot connect Posthog MCP Server yet

Posthog MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Posthog MCP Server

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Marketing & social media that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Open Terminal

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

  3. Paste this command and press Enter

    claude mcp add posthog -- npx -y posthog-mcp-server
  4. Type /mcp in Claude Code

    You should see Posthog MCP Server listed as connected

  5. Try it

    Use Posthog MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Posthog MCP Server or shows a Posthog MCP Server 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, with some setup first

Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Posthog MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Posthog MCP Server or shows a Posthog MCP Server 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, with some setup first

Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

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

  4. Try it

    Use Posthog MCP Server and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Posthog MCP Server or shows a Posthog MCP Server 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 →

JSON settings are under “For developers” below

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

Installed on your computer

Claude Code

claude mcp add posthog -- npx -y posthog-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "posthog": {
      "command": "npx",
      "args": [
        "-y",
        "posthog-mcp-server"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "posthog": {
      "command": "npx",
      "args": [
        "-y",
        "posthog-mcp-server"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "posthog": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "posthog-mcp-server"
      ]
    }
  }
}

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

At a glance

Downloads per weeki
47/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
1.0.0
Published to registryi
Jun 6, 2026
Code last changedi
Jun 6, 2026
Maker
friendlygeorge
Packages
npm: posthog-mcp-server
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.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

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 11, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account friendlygeorge, which owns the repo

  • ✕ Fail

    Still maintained

    No code changes for over a year, or the repo is archived

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

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 with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Marketing & social mediai

  • More stars than 0% of the other 3767 servers in this category
  • Published to the registry more recently than 10% of the other 3767 servers in this category
  • Basic checks equal to or better than 10% of the other 3767 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 MCP Server safe?

It passed 1 of 2 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 on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 5 months ago, and the latest version (1.0.0) reached the registry 5 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: PostHog MCP Server, Openshorts, Google Ads + Meta Ads + SEO/GEO MCP

Alternatives

Servers in the same category from other makers, sorted by stars.

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

PostHog MCP Server

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

by PostHogWidely used★ 40.7KUpdated 10 months ago

Runs in the cloud

Openshorts

Turn long videos into viral vertical shorts and publish them to TikTok, Instagram and YouTube.

by mutonbyWidely used★ 7.6KUpdated 3 months ago

Runs in the cloud

Google Ads + Meta Ads + SEO/GEO MCP

Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI

by irinabuht12-ossWidely used★ 7.2KUpdated 30 days ago

Runs in the cloud

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 Server

Connect AI assistants to PostHog — query events, persons, insights, dashboards, feature flags, cohorts, and experiments through the Model Context Protocol.

Works with Claude Desktop, Cursor, Windsurf, Cline, Continue, and any MCP-compatible client.

Features

ToolDescription
list_eventsQuery events with filters (event name, person, date range, properties)
get_personGet a person (user) by distinct_id — properties, creation date, event count
list_personsSearch and list persons with pagination
list_dashboardsList all dashboards — names, tags, widget counts
get_dashboardGet a specific dashboard with its insights and widgets
execute_insightExecute a saved insight (trend, funnel, etc.) and get results
list_feature_flagsList all feature flags — key, active status, rollout percentage
evaluate_feature_flagEvaluate a flag for a specific user and get variant value
list_cohortsList cohorts — name, type (dynamic/static/SQL), person count
list_experimentsList A/B tests — name, status, feature flag, dates
get_experimentGet experiment results with variant data and statistical significance
list_actionsList custom event actions/definitions
get_project_infoGet project name, ID, settings, and data region

Quick Start

1. Get a PostHog API Key

Go to PostHog → Settings → Personal API Keys and create a key with read access.

Or visit: https://your-instance.posthog.com/settings/user-api-keys

2. Configure your MCP client

Claude Desktop — add to claude_desktop_config.json:

{

"mcpServers": { "posthog": { "command": "npx", "args": ["-y", "posthog-mcp-server"], "env": { "POSTHOG_API_KEY": "phx_YOUR_API_KEY_HERE", "POSTHOG_HOST": "https://us.i.posthog.com", "POSTHOG_PROJECT": "YOUR_PROJECT_ID" } } } }

Cursor — add to MCP settings (.cursor/mcp.json):

{

"mcpServers": { "posthog": { "command": "npx", "args": ["-y", "posthog-mcp-server"], "env": { "POSTHOG_API_KEY": "phx_YOUR_API_KEY_HERE", "POSTHOG_HOST": "https://us.i.posthog.com", "POSTHOG_PROJECT": "YOUR_PROJECT_ID" } } } }

3. Run manually (for testing)
# Clone and build

git clone https://github.com/friendlygeorge/posthog-mcp-server.git cd posthog-mcp-server npm install npm run build

Run

POSTHOG_API_KEY=phx_... POSTHOG_PROJECT=12345 node dist/index.js

Environment Variables

VariableRequiredDefaultDescription
POSTHOG_API_KEY✅—Your PostHog personal API key (phx_...)
POSTHOG_HOST❌https://us.i.posthog.comPostHog instance URL (use https://eu.i.posthog.com for EU)
POSTHOG_PROJECT❌""Default project ID. If empty, must be specified per-call.
Self-hosted PostHog

If you run PostHog on your own infrastructure, set POSTHOG_HOST to your instance URL:

POSTHOG_HOST=https://posthog.yourcompany.com

Example Queries

Once configured, ask your AI assistant:

  • *"Show me the last 20 pageview events"*
  • *"Who are the most active users this week?"*
  • *"What's the status of our signup conversion experiment?"*
  • *"Is the new-checkout-flow feature flag enabled for user abc123?"*
  • *"Show me all active dashboards"*
  • *"Execute insight 42 and show me the trend"*
  • *"List all feature flags that are currently active"*
  • *"How many people are in the 'Power Users' cohort?"*

API Reference

This server wraps the PostHog REST API (v1). Full documentation:

  • PostHog API docs: https://posthog.com/docs/api
  • MCP protocol: https://modelcontextprotocol.io
  • PostHog: https://posthog.com

Development

npm install

npm run dev # Build and run npm run build # Build only npm start # Run built output

License

MIT © Nova