MCP Server
mcp
An MCP server for interacting with PostHog analytics, feature flags, error tracking and more.
140
GitHub Stars
11/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "posthog",
3 "command": "npx",
4 "args": [
5 "-y",
6 "mcp-remote@latest",
7 "https://mcp.posthog.com/mcp",
8 "--header",
9 "Authorization:${POSTHOG_AUTH_HEADER}"
10 ],
11 "env": {
12 "POSTHOG_AUTH_HEADER": "Bearer {INSERT_YOUR_PERSONAL_API_KEY_HERE}"
13 }
14}
JSON14 lines
README Documentation
PostHog MCP
The MCP server has been moved into the PostHog Monorepo - you can find it here.
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
Quick Install
Quick Actions
Key Features
Model Context Protocol
Secure Communication
Real-time Updates
Open Source