← All integrations

Segment MCP server

207 operations8 webhooks

Twilio Segment: send track, identify, page, screen, group and alias calls, and manage the workspace through the Public API: sources, destinations, warehouses, tracking plans, functions, deletion and suppression, users, audiences and Reverse ETL (207 operations).

Try Segment with your agent

Connect Segment, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.

Using Corsair, show me what you can do in Segment on my account, then run one read-only example and show me the result.

Runs once, when you ask

Segment tools and triggers

Tools are what your agent can do in Segment through Corsair's MCP server. Triggers are the Segment events a routine can start from.

Audiences

  • CreateWrite

    Create Audience. Creates Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.

    audiences.create

  • Create PreviewRead-only

    Create Audience Preview. Previews Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. This endpoint also has a rate limit of 700 requests per month per spaceId, which is lower than the default due to access pattern restrictions. Segment limits previews per minute and per month, and each attempt counts: the plugin sends it once and does not retry a 429 or a 5xx.

    audiences.createPreview

  • DeleteDestructive

    Remove Audience from Space. Deletes an Audience by id and spaceId. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Cannot be undone.

    audiences.delete

  • Destinations.AddWrite

    Add Destination to Audience. Establishes a connection between an audience and a Destination. To start syncing data, you must create an Activation for the connection created here. Note that the Destination must be added to Engage through the Engage Settings page within the App before creating the connection through the API. Alpha in Segment's API: it may change.

    audiences.destinations.add

  • Destinations.ListRead-only

    List Destinations from Audience. Lists all Destinations from an Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Alpha in Segment's API: it may change.

    audiences.destinations.list

  • Destinations.List SupportedRead-only

    List Supported Destinations from Audience. Lists the Destinations that have been reviewed and validated for activation with this audience type. Use this endpoint to discover the available action ids and the Destination fields that can be mapped before creating an Activation. Alpha in Segment's API: it may change.

    audiences.destinations.listSupported

  • Destinations.RemoveDestructive

    Remove Destination from Audience. Removes a Destination from an Audience. If there are activations associated with the Destination, the request will return a 409 Conflict error. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Alpha in Segment's API: it may change. Cannot be undone.

    audiences.destinations.remove

  • Destinations.UpdateWrite

    Update Destination for Audience. Updates a Destination for an Audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Alpha in Segment's API: it may change.

    audiences.destinations.update

  • GetRead-only

    Get Audience. Returns the Audience by id and spaceId. Supports including audience schedules using ?include=schedules. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.

    audiences.get

  • Get PreviewRead-only

    Get Audience Preview. Reads the results of an audience preview. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.

    audiences.getPreview

  • ListRead-only

    List Audiences. Returns Audiences by spaceId. Supports including audience schedules using ?include=schedules. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.

    audiences.list

  • List ConsumersRead-only

    List Audience Consumers from Space And Audience. Returns the list of consumers for the given audience. In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled.

    audiences.listConsumers

Connect Segment to Claude, ChatGPT or Cursor

  1. 1

    Connect Segment in Corsair

    Add your Segment API key once in Corsair. Corsair stores the credential encrypted and makes the Segment API calls for your agent, so it never goes into a prompt or a config file. Connect Segment

    If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Segment. On a ChatGPT personal plan, connect Segment here first.

  2. 2

    Add Corsair's MCP server to your agent

    Every client uses the same address:

    https://mcp.corsair.dev/mcp
    Open Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.

    Codex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client

  3. 3

    Sign in and choose what needs your approval

    Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Segment's read and write operations run right away and its 46 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.

FAQ

Install corsair and @corsair-dev/segment, add the Segment plugin, and connect with an API key. Then call methods like corsair.segment.api.activations.batchQuery() from your app. Corsair verifies webhooks, and keeps each tenant isolated.

Yes. Segment requires an API key from your Segment account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.

Yes. One Corsair client can hit Segment, GitHub, Notion, Stripe, and the rest. Trigger Segment from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.

Teams use Corsair for twilio Segment: send track, identify, page, screen, group and alias calls, and manage the workspace through the Public API: sources, destinations, warehouses, tracking plans, functions, deletion and suppression, users, audiences and Reverse ETL (207 operations). Common builds include sync jobs, admin tooling, and agents that call Segment APIs from your backend. Webhook handlers react to Segment events and fan out to Slack, email, or other plugins in the same tenant.

The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Segment API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.

We maintain @corsair-dev/segment in the open repo. When Segment ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.

No. Corsair does not read your Segment data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Segment data on your behalf.

Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.

Yes. Put Segment on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 46 destructive Segment operations. You can change a link's mode at hub.corsair.dev/me.