All integrations

PostHog

ConnectionMCP

Query, analyze, and manage your PostHog insights.

Read the full connection docs

Install

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

bash
npm install eve@latest @vercel/connect

Quick start

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

ts
// 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

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

bash
vercel linkvercel connect create posthogvercel env pull

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