Loading languages...
PO

PostHog

@PostHog140

Official PostHog MCP Server 🦔

posthog
mcp
analytics

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

# mcpServer Config

{
  "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}"
      }
    }
  }
}

# sseURL

https://mcp.posthog.com/sse
Transport:
sse
Language:
TypeScript
Created: 5/14/2025
Updated: 2/4/2026