Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Posthog

MCP server by pipeworx-io Verified · npm:@pipeworx

MCP Posthog is an unofficial MCP server that wraps the PostHog Analytics API. It lets AI assistants fetch events, search persons and list saved insights from a PostHog project. It is aimed at developers and analysts who work with PostHog data.

  • Score 61
  • 0 stars
  • 19 a week
  • MIT
  • Updated

Install MCP Posthog

Built from the published package, never by AI.

claude mcp add mcp-posthog -- npx -y @pipeworx/mcp-posthog

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Posthog in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-posthog block.

About

MCP Posthog is an unofficial MCP server that wraps the PostHog Analytics API. It gives an AI assistant three tools: get_events to fetch recent events with names, timestamps and properties, get_persons to search for users and their profiles, and get_insights to list saved charts, trends and funnels. It is part of the Pipeworx MCP gateway, which connects AI agents to 1866+ live data sources.

It can be used as a hosted connection at gateway.pipeworx.io/posthog/mcp, or run locally with npx from @pipeworx/mcp-posthog as a stdio bridge that forwards calls to the same endpoint. Each tool call takes a project ID and a PostHog API key. The source states that the project is not affiliated with, endorsed by, or published by PostHog. It suits developers and analysts who want to query PostHog data from an AI assistant.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get_eventsFetches recent events from a PostHog project, with names, timestamps and properties.
  • get_personsSearches for persons (users) in a PostHog project and returns their profiles.
  • get_insightsLists saved insights such as charts, trends and funnels for a PostHog project.

What you need

  • PostHog API key, passed as _apiKey in each tool call
  • PostHog project ID
  • Network access
  • Node.js with npx, for the local npm bridge

Try asking

  • Show me the 50 most recent events from my PostHog project 12345.
  • Find the PostHog person profile for john@example.com.
  • List the saved insights in my PostHog project, with their types.

Good to know

  • Anonymous use is capped at 50 calls a day. A free Pipeworx account raises the cap to 200 a day.
  • The npm bridge needs network access and has no offline mode.
  • The integration is unofficial and not affiliated with PostHog.
  • The endpoint also lists about 30 shared Pipeworx meta-tools alongside the pack's own tools.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MCP Posthog

All alternatives →
World Monitor koala73
98

World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.

ACA Remote 91k
Power BI Authoring MCP Server (Local) microsoft
95

Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.

AAA Local 9.7k/wk
Seal Open Data ariacom
95

Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.

AAA Remote 1.7k
OpenMetadataopen-metadata
94

OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.

AAA Remote 16k
Flint Chart MCP microsoft
94

Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.

AAA Local 4.6k
PostHog PostHog
94

Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.

AFA Remote 41k

Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data

MCP Posthog: common questions

Is this an official PostHog integration?

No. The source describes it as an independent, unofficial integration that is not affiliated with, endorsed by, or published by PostHog.

Does it work offline?

No. The npm bridge forwards every call to the Pipeworx gateway and needs network access.

What PostHog data can it read?

The three listed tools cover events, persons and saved insights from a PostHog project.

How do I install MCP Posthog?

In Claude Code run claude mcp add mcp-posthog -- npx -y @pipeworx/mcp-posthog. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Posthog the official server?

MCP Posthog is published by npm:@pipeworx from its verified domain in the official MCP Registry.

Is MCP Posthog free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP Posthog safe to use?

It scores 61 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP Posthog?

Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.

Does MCP Posthog work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Posthog Install

Add to stack

Loading.