All integrations

PostHog

Connection

Query, analyze, and manage your PostHog insights.

Install

Connections live under agent/connections/. Auth is brokered by Vercel Connect, so install the framework and the Connect SDK:

npm install eve@latest @vercel/connect

Quick start

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

// agent/connections/posthog.tsimport { 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

Create the connector, link it to your project, and pull OIDC locally:

vercel connect create posthogvercel linkvercel env pull

See the Connections docs for principal types, headers, approval, and protocol-specific filters.

Agents using PostHog