PostHog MCP for Codex
Contents
Server URL
Quick install
Codex plugin
Manual MCP setup
The PostHog
MCP server
enables Codex to directly interact with your PostHog data – managing feature flags, querying analytics, investigating errors, and more.
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
The
PostHog Wizard
can install the MCP server directly into Codex:
Terminal
PostHog AI
npx @posthog/wizard mcp
add
Codex plugin
You can also install PostHog as a
Codex plugin
:
Terminal
PostHog AI
codex plugin marketplace
add
PostHog/ai-plugin
After adding the plugin, run
codex
in your terminal and select
PostHog
from the
/plugins
menu to install and enable.
