PostHog (Unofficial)
MCP server by pipeworx-io Community
PostHog MCP lets AI assistants fetch recent events, search persons and list saved insights from a PostHog project. It is an unofficial wrapper of the PostHog Analytics API, aimed at developers and analysts.
Install PostHog (Unofficial)
Built from the published package, never by AI.
claude mcp add posthog -- npx -y @pipeworx/mcp-posthogRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install PostHog (Unofficial) in Claude Desktop
{
"mcpServers": {
"posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add posthog -- npx -y @pipeworx/mcp-posthog{
"mcpServers": {
"posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install PostHog (Unofficial) in Antigravity CLI
gemini mcp add posthog npx -y @pipeworx/mcp-posthogGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 posthog block.
About
PostHog MCP is a Model Context Protocol server that wraps the PostHog Analytics API. It gives an AI assistant three tools: get_events returns recent events with names, timestamps and properties, get_persons searches persons (users) and their profiles, and get_insights lists saved charts, trends and funnels. The examples pass a project ID and a PostHog API key with each call.
The server is part of Pipeworx, an MCP gateway connecting AI agents to 1866+ live data sources. Clients can connect to the hosted endpoint at gateway.pipeworx.io/posthog/mcp, or run the npm package @pipeworx/mcp-posthog through npx, which forwards calls to that same endpoint and needs network access. The project describes itself as an independent, unofficial integration, not endorsed by PostHog, and it is aimed at people who want an AI assistant to query their PostHog analytics.
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 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 project ID and API key
- Node.js to run the npx bridge
- Network access, no offline mode
- Pipeworx account key for higher daily limits (optional)
| Setting | Needed | What it is |
|---|---|---|
PIPEWORX_Environment variable, secret | Optional | Optional Pipeworx API key. Without it calls are anonymous and capped daily; a free key raises the cap. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
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 and funnels in my PostHog project
Good to know
- Unofficial integration, not affiliated with PostHog
- Anonymous calls are capped at 50 a day
- A free Pipeworx account raises the cap to 200 a day
- The npx bridge has no offline mode
Security check
ANo 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 PostHog (Unofficial)
All alternatives →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.
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.
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.
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.
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.
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.
Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data
PostHog (Unofficial): common questions
Is the PostHog MCP server official?
No. The source describes it as an independent, unofficial integration that is not affiliated with, endorsed by, or published by PostHog.
Which PostHog data can it read?
The three tools cover recent events, persons with their properties, and saved insights such as charts, trends and funnels. The source does not list other PostHog endpoints.
Does it need a PostHog API key?
The examples pass a PostHog API key as the _apiKey argument on each call. The source does not state separately whether a key is always required.
How do I install PostHog (Unofficial)?
In Claude Code run claude mcp add 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 PostHog (Unofficial) the official server?
PostHog (Unofficial) is a community project by pipeworx-io, not verified by a company domain.
Is PostHog (Unofficial) free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is PostHog (Unofficial) safe to use?
It scores 73 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 PostHog (Unofficial)?
Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.
Does PostHog (Unofficial) work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
