
PostHog
HTTP-SSEOfficialMCP server for PostHog integration, feature flag management, and error tracking
MCP server for PostHog integration, feature flag management, and error tracking
You can install the MCP server automatically into popular clients by running the following command:
npx @posthog/wizard@latest mcp add
Obtain a personal API key using the MCP Server preset here.
Add the MCP configuration to your desktop client (e.g. Cursor, Windsurf, Claude Desktop) and add your personal API key
{ "mcpServers": { "posthog": { "command": "npx", "args": [ "-y", "mcp-remote@latest", "https://mcp.posthog.com/sse", "--header", "Authorization:${POSTHOG_AUTH_HEADER}" ], "env": { "POSTHOG_AUTH_HEADER": "Bearer {INSERT_YOUR_PERSONAL_API_KEY_HERE}" } } } }
Here are some examples of prompts you can use:
.dev.vars
in the rootdocs-search
tool (see Inkeep API key - mcp
)INKEEP_API_KEY="..."