# PostHog

<div style={{maxWidth: '720px'}}>
![The PostHog connector in Workspace Settings, for feature flags, insights, events and logs, with a Connect button](</docs/_next/static/media/posthog-connector.31nvmitt6zyah.jpg>)
</div>

[PostHog MCP](https://mcp.posthog.com/) lets agents query your PostHog account directly. This helps agents understand how a feature is used in production or debug behavior with real analytics context.

For use cases and example prompts, see [PostHog for AI coding agents](/integrations/posthog).

## What is PostHog? [#what-is-posthog]

[PostHog](https://posthog.com) is a product analytics platform with feature flags, session replay, experiments, error tracking, and logs.

## What agents can do [#what-agents-can-do]

Once you connect PostHog, agents can look up:

- Feature flags
- Insights
- Events
- Logs
- Error tracking data

## Setup [#setup]

Generate a key using the MCP Server preset at [app.posthog.com/settings/user-api-keys?preset=mcp_server](https://app.posthog.com/settings/user-api-keys?preset=mcp_server).

Then connect it in Superconductor: find **PostHog** on the [Connectors page](https://www.superconductor.com/workspaces/default/connectors), click **Connect**, and paste your personal API key. The [Connectors guide](/docs/integrations/connectors#fill-in-the-connection-details) explains **Me** and **Workspace** ownership and the separate settings for personal assistants, team assistants, and projects.

## When to use it [#when-to-use-it]

Ask agents to use PostHog when a ticket depends on product usage, flag state, event volume, conversion behavior, or production logs.

## Limitations [#limitations]

Some Cursor models currently have an issue with the PostHog MCP server. For now, Superconductor excludes PostHog MCP when you run Cursor's Composer 2.5, Composer 2.5 Fast, any Grok profile, or Auto. PostHog MCP remains available for other agent profiles. This is a temporary limitation while we work to fix the issue.