Back to MCP Servers

Posthog Mcp

An MCP server for interacting with PostHog analytics, feature flags, error tracking and more.

developer-tools
By posthog
15026Updated 5 months agoTypeScriptMIT

Installation

npx -y mcp

Configuration

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": ["-y", "mcp"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes

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
View source on GitHub