PostHog
posthog.comProduct analytics platform with feature flags, session replay, error tracking and experiments, exposed through a REST API, a hosted MCP server and a CLI.
What your agent can do
exposes PostHog's products
Via MCP.
capture, evaluate, create, update, and delete nearly all of your information in PostHog
Via API.
The PostHog CLI lets you use PostHog from your terminal
Via CLI.
Tasks depend on the interface and permissions.
Connection methods
Choose a route that fits your agent.
MCP
For compatible agent apps
OAuth sign-in
Docs checkedView setup for MCPCLI
For agents with a terminal
an API key
Docs checkedView setup for CLIAPI
For custom integrations
an API key
Docs checkedView paths for APIMCP connection
MCP server URL
https://mcp.posthog.com/mcp- Authentication
- OAuth is the recommended path
CLI connection
CLI package
posthog-cli- Authentication
- A personal API key with the scopes required for the commands you run.
API connection
API path
https://us.posthog.com- Authentication
- require authentication with your personal API key
View sources and checks
- API · capture, evaluate, create, update, and delete nearly all of your information in PostHogChecked 7 Oct 2026
- CLI · The PostHog CLI lets you use PostHog from your terminalChecked 7 Oct 2026
- MCP · exposes PostHog's productsChecked 7 Oct 2026