Skip to main content
Back to the PostHog MCP server

MCP Gateway · ChatGPT

PostHog icon

Connect PostHog to ChatGPT

Growth, marketing and customer success teams in ChatGPT can work with PostHog for launches and outreach. ChatGPT can create a survey, read an experiment's results and look up a cohort before a campaign. A workspace admin imports Speakeasy's plugin marketplace and sets which roles get PostHog, and the gateway decides which tools each role can call.

Category
Data & analytics
Tools
172
Authentication
API key
ChatGPT
Web, desktop and mobile

Behind the MCP Gateway

Run PostHog MCP behind the MCP Gateway

One URL for every agent, sign-in through your IdP, RBAC down to the tool, and every PostHog call inspected and logged.

Deploy on MCP Gateway

Set up

Add PostHog to ChatGPT in 4 steps

  1. 01

    Add PostHog from the catalog

    An admin finds PostHog in the MCP Catalog (MCP Gateway > MCP > Catalog) and clicks Add. Speakeasy registers the vendor's server as a remote MCP server and proxies sessions to it. Nothing is copied or re-hosted.

    PostHog authenticates with an API key. Enter it under Upstream headers in the install dialog, or later on the server's Settings tab. The key is stored on the server, sent with every upstream request, and never reaches anyone's client configuration.

    Where MCP-scoped policies are enabled, the install offers a recommended risk policy for the new server that detects secrets and PII and inspects tool requests and responses.

  2. 02

    Choose who can use PostHog

    Give teams the mcp:connect scope on the PostHog server through team access or a role. ChatGPT connects to the PostHog server's own URL, and the server's authorization decides who can connect and which tools they can call.

  3. 03

    Connect ChatGPT

    Import the organization's plugin marketplace into the ChatGPT workspace and set who gets each plugin.

    New MCP servers join the project's default plugin automatically. Each server's overview page shows which plugin it is published to, with Publish or Update to change it.

    Give the importing workspace admin collaborator access to the marketplace repository, and connect their GitHub account in ChatGPT under Plugins > GitHub > Manage.

    In ChatGPT, open Admin > Plugins > Add > Import marketplace.

    Set each plugin's installation policy, Installed or Available, per role.

    Enable the MCP servers the plugin connects to.

  4. 04

    Sign in and use PostHog from ChatGPT

    The first time ChatGPT connects, it opens a browser so the person can sign in to Speakeasy through your identity provider.

    From then on, PostHog's tools appear in ChatGPT, limited to what the person's access allows, and every call lands in the gateway's tool logs.

The marketplace syncs from GitHub once a day. Use Sync now to pick up a change straight away.

Use cases

What ChatGPT users do with PostHog

Launch a feedback survey

Describe what you want to learn and ChatGPT creates a PostHog survey with open-ended, multiple choice or rating questions that fit the goal you described.

survey-create

Read an experiment's results

Ask ChatGPT how a pricing page test is going. It fetches the experiment's primary and secondary metrics and exposure data and explains them without jargon.

experiment-get-allexperiment-results-get

Look up a cohort before a campaign

Before an email campaign, ChatGPT lists cohorts and reports how many people are in the one you plan to target and how it is defined.

cohorts-listcohorts-retrieve

Tools

172 tools

Each PostHog tool can be allowed or denied per team and role at the MCP Gateway before ChatGPT sees it.

experiment-get-all

Get all experiments in the project.

experiment-create

Create a comprehensive A/B test experiment. , ['product_view', 'add_to_cart', 'purchase']) and use funnel_steps parameter 6) Configure variants (default 50/50 control/test unless they specify otherwise) 7) Set targeting criteria if needed.

experiment-delete

Delete an experiment by ID.

experiment-update

Update an existing experiment by ID. Can update name, description, lifecycle state, variants, metrics, and other properties. RESTART WORKFLOW: To restart a concluded experiment, set end_date=null, conclusion=null, conclusion_comment=null, and optionally set a new start_date.

experiment-get

Get details of a specific experiment by ID.

See all 172 tools

Control

What Speakeasy can see and stop in ChatGPT

The gateway covers every client the same way. The rest depends on what ChatGPT exposes to Speakeasy.

Tool logs

Gateway

Every PostHog call is logged with the person and the client that made it.

Access by role

Gateway

People reach only the PostHog tools their team or role allows.

Request and response blocking

Gateway

A risk policy scoped to PostHog can reject a tool request before it reaches the server, or withhold a result from ChatGPT. MCP-scoped policies are enabled per organization.

Conversation import

ChatGPT

ChatGPT activity can be imported through OpenAI's Compliance API for review after the fact. It can't block in real time.

  • The workspace import needs a ChatGPT Business, Enterprise or Edu admin.

Questions

Frequently asked questions

Is personal data from PostHog redacted in ChatGPT?
PII redaction and prompt injection detection run on every PostHog tool call at the gateway. ChatGPT activity can also be imported through OpenAI's Compliance API for review after the fact.
Which ChatGPT plans can use PostHog through Speakeasy?
The workspace import needs an admin on a ChatGPT Business, Enterprise or Edu workspace. The admin sets each plugin's installation policy per role.
How do ChatGPT users get PostHog?
An admin adds PostHog from the Speakeasy MCP Catalog and grants access by team or role. Import the organization's plugin marketplace into the ChatGPT workspace and set who gets each plugin. Each person then sees only the PostHog tools their access allows.
Are PostHog calls from ChatGPT logged?
Yes. PostHog calls go through the MCP Gateway, which logs each tool call and attributes it to the person and the client that made it.

Connect more

PostHog in other clients

AI everywhere.

Control here.