PostHog MCP for Claude Desktop
Contents
The PostHog MCP server enables Claude Desktop to directly interact with your PostHog data – managing feature flags, querying analytics, investigating errors, and more.
The PostHog connector
The quickest way to install the PostHog MCP into Claude Desktop is the PostHog connector.
- Visit the PostHog connector page in the Claude connector directory.
- Click Connect to add the connector to your Claude Desktop.
- When prompted, sign in to PostHog to finish authentication.
After that, PostHog MCP tools are available in Claude Desktop wherever that connector is supported.
If you added PostHog to your team as an admin, it's available across your org but not connected to your account. If this is the case, the connector shows a gear icon and Remove from your team instead of Connect.
Connect individually to use it. Go to Settings > Connectors, click Connect on PostHog, and sign in.
Server URL
https://mcp.posthog.com/mcp
The PostHog authentication server automatically routes you to the correct data region (US or EU) based on the account you log in with.
Quick install
If you don't see the connector, or you prefer a one-command install, the PostHog Wizard can install the MCP server directly into Claude Desktop:
Manual setup
You can also edit Claude Desktop's configuration file directly. For more on Claude's custom connector options, see Anthropic's remote MCP guide.
- Open Claude Desktop and navigate to Settings > Developer
- Click Edit Config to open the configuration file
- Update
claude_desktop_config.jsonwith the following configuration:
- Save the configuration file and restart Claude Desktop
- The MCP server should show as PostHog in your list of Connectors found in Settings > Connectors
When you first use the MCP server, you'll be prompted to log in to PostHog to authenticate.
Be mindful of prompt injection – LLMs can be tricked into following untrusted commands, so always review tool calls before executing them.
What's next
- Use cases – 20+ example prompts and multi-step recipes for the most useful MCP workflows
- Tools reference – every tool the MCP server exposes, grouped by category
- FAQ and advanced setup – auth, scoping, filtering, safety, and other operational details