# PostHog MCP
> A hosted MCP server for using PostHog analytics, SQL, error tracking, feature flags, experiments, and other enabled products from an AI client.
Canonical: https://www.mcpfolio.com/servers/posthog
Last updated: 2026-10-28
## Catalog record

- Publisher: PostHog (official)
- Categories: productivity

## Website

https://posthog.com/

## Repository

https://github.com/PostHog/posthog/tree/master/services/mcp

## Transports

Streamable HTTP

## Authentication

PostHog OAuth hosted auth routes the user to the correct US/EU region.

## Tools

- **dashboard-get**: Example stable PostHog dashboard tool; full tools mode and availability depend on client configuration.
- **feature-flag-get-all**: Example stable PostHog feature-flag tool.
- **execute-sql**: Example stable PostHog SQL query tool.

## Sources

- [official_client_setup](https://posthog.com/docs/model-context-protocol/vscode)
- [official_source_repository](https://github.com/PostHog/posthog/tree/master/services/mcp)
- [official_documentation](https://posthog.com/docs/model-context-protocol)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/posthog) to view instructions for each supported client.