# PostHog MCP server

Query product analytics, feature flags, and experiments

- Publisher: Official (the product's own vendor)
- Category: Analytics
- Transport: Remote (HTTP)
- Page: https://mcp-linker.milisp.dev/servers/posthog

## Add with MCP Linker

Open this server in the app, where you choose the client and scope: `mcp-linker://servers/io.github.milisp.mcp-linker%2Fposthog`

Get the app: https://github.com/milisp/mcp-linker/releases/latest

## What you'll need

- `Authorization`: secret. Bearer token with your PostHog personal API key (format: Bearer <key>). Create one at https://us.posthog.com/settings/user-api-keys with the 'MCP Server' preset.

## Manual configuration

For clients that read an `mcpServers` JSON file. Replace values in angle brackets.

```json
{
  "mcpServers": {
    "posthog": {
      "type": "http",
      "url": "https://mcp.posthog.com/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}
```

## Links

- Source: https://github.com/PostHog/posthog
- Edit this entry: https://github.com/milisp/mcp-linker/blob/main/registry/servers/posthog.json
