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.
Install MCP Posthog
Built from the published package, never by AI.
claude mcp add mcp-posthog -- npx -y @pipeworx/mcp-posthogRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-posthog -- npx -y @pipeworx/mcp-posthog{
"mcpServers": {
"mcp-posthog": {
"args": [
"-y",
"@pipeworx/mcp-posthog"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-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 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
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 MCP Posthog
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
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.
