---
title: PostHog
description: Query, analyze, and manage your PostHog insights.
type: connection
keywords:
  - mcp
  - insights
  - events
  - feature flags
  - analytics
  - oauth
  - connect
---

# PostHog

Connection integration for eve. Query, analyze, and manage your PostHog insights.

## Install

Add the connection from eve's registry. This writes the initial definition under `agent/connections/` and installs its authentication dependency when needed:

```bash
eve add connection/posthog
```

## Quick start

### MCP · User

Create `agent/connections/posthog.ts`. The connection name is derived from the filename:

```ts
// agent/connections/posthog.ts
import { connect } from "@vercel/connect/eve";
import { defineMcpClientConnection } from "eve/connections";

export default defineMcpClientConnection({
  url: "https://mcp.posthog.com/mcp",
  description: "PostHog: insights, events, and feature flags.",
  auth: connect("posthog"),
});
```

Connect owns the OAuth flow, and each end-user authorizes in their own browser before their first tool call.

## Configure

### MCP · User

Link your project, create the connector, and pull OIDC locally:

```bash
vercel link
vercel connect create posthog
vercel env pull
```

See the [Connections docs](/docs/connections) for principal types, headers, approval, and protocol-specific filters.

[Read the full connection documentation](/docs/connections/mcp)

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)