Terminal
PostHog AI
codex
# Then run /plugins, select PostHog, and install
Manual MCP setup
Run the following command in your shell.
Codex
supports native OAuth, so you'll be prompted to log in to PostHog when you first use the MCP.
Terminal
PostHog AI
codex mcp
add
posthog --url https://mcp.posthog.com/mcp
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
Still have questions?
Ask PostHog AI
Was this page useful?
