P

PostHog MCP Server

MCP server · by PostHog

Developer Tools Streamable HTTPSSE v1.0.1

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

View source ↗ Generate config for multiple servers More servers

Install

unavailable — hosted endpoints aren’t versioned

Streamable HTTP
https://mcp.posthog.com/mcp
SSE
https://mcp.posthog.com/sse

Setup by client

Pick your client — the config below is generated for this server (hosted endpoint). Copy respects the “Pin version” switch above.

Remote (hosted) endpoint

https://mcp.posthog.com/mcp

Claude Desktop: Settings → Connectors → Add custom connector, paste this URL, and provide: Authorization.

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • Authorization required secret header — Bearer token with your PostHog personal API key. Create one at https://us.posthog.com/settings/user-api-keys with the 'MCP Server' preset.

GitHub

⭐ 40,266 stars · 最近更新于 29 天前

About this server

Distributed as Streamable HTTP, SSE, listed under Developer Tools. Review our MCP security guide before granting access to real data.

Frequently asked questions

How do I install PostHog MCP Server?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is PostHog MCP Server free to use?

The MCP server itself is free to install. The source is public on https://github.com/PostHog/posthog. Any third-party service it calls may require its own API key and account.

Which clients support PostHog MCP Server?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/mcp-1296.svg)](https://mcpnav.net/server/mcp-1296/)

HTML

<a href="https://mcpnav.net/server/mcp-1296/"><img src="https://mcpnav.net/badge/mcp-1296.svg" alt="Listed on MCPNav" height="20"></a>