Model Context Protocol (MCP)
Contents
Get started in 30 seconds
What can you do with the PostHog MCP?
Go deeper
Next steps
The PostHog
Model Context Protocol (MCP)
server is a free, hosted endpoint that lets your AI agent use PostHog – with just plain text questions your agents can ship a feature flag from a prompt, dig into a stack trace without leaving your editor, run a HogQL query through Claude, triage a support ticket, set up a CDP destination, and much more.
It works with any MCP-compatible client, including
PostHog Desktop
, Claude Code, Claude Desktop, Cursor, Codex, VS Code, Windsurf, and Zed.
Connecting to the MCP server and calling its MCP tools is free, but some MCP tools use LLMs internally and may be billed as PostHog AI spend.
