Segment MCP server

Connect Segment to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Segment MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the track event tool in Segment
  • Use the alias user tool in Segment
  • Use the batch events tool in Segment
  • Use the create data regulation tool in Segment
  • Use the list destinations tool in Segment
  • Use the manage reverse etl model tool in Segment

Supported Tools

track_event

Track Event

Send a Track event to Segment's Tracking API. Records a user action or event with optional properties. Requires a write key to be configured in authentication.

alias_user

Alias User

Send an Alias call to Segment's Tracking API. Merges two user identities by linking a previousId to a new userId. Useful when an anonymous user signs up and you want to combine their pre- and post-signup activity. Requires a write key.

batch_events

Batch Events

Send a batch of Identify, Track, Page, Screen, Group, or Alias calls in a single request to Segment's Tracking API. More efficient than individual calls for high-volume data import. Requires a write key.

create_regulation

Create Data Regulation

Create a GDPR deletion or suppression request. Submits a regulation to delete or suppress user data across sources or the entire workspace. Can also list existing regulation requests.

list_destinations

List Destinations

List all configured destinations in the Segment workspace. Returns destination details including name, enabled status, source connection, and metadata.

manage_reverse_etl

Manage Reverse ETL Model

Create, update, list, or delete reverse ETL models. Reverse ETL models define SQL queries against your warehouse and sync results back to downstream destinations on a schedule.

get_usage

Get Usage Metrics

Query current Segment monitoring data: daily API call usage, daily monthly tracked users (MTU), destination delivery metrics, and workspace event volume. Useful for monitoring consumption and identifying sources of high event volume.

list_tracking_plans

List Tracking Plans

List all tracking plans in the workspace. Optionally retrieve the rules and connected sources for a specific tracking plan.

manage_function

Manage Function

Create, update, list, or delete custom JavaScript functions. Functions run within Segment's infrastructure and can act as sources, destinations, or insert middleware to transform events.

list_warehouses

List Warehouses

List all data warehouses in the workspace, optionally with connected sources and connection state for a specific warehouse.

manage_transformation

Manage Transformation

Create, update, list, or delete event transformations. Transformations modify events in-flight (rename events, rename properties, add computed properties) before they reach destinations.

manage_destination

Manage Destination

Create, update, or delete a destination in your Segment workspace. Destinations are analytics tools, marketing platforms, or data warehouses where Segment routes collected data. To create a new destination, provide the **sourceId** and **metadataId** (from the catalog). To update or delete, provide the **destinationId**.

manage_tracking_plan

Manage Tracking Plan

Create, update, delete, or connect tracking plans. Tracking plans define expected event schemas and validate incoming data against those schemas. Violations generate when events don't match the spec.

page_screen

Record Page or Screen View

Send a Page or Screen call to Segment's Tracking API. Records a page view (web) or screen view (mobile) with optional properties. Requires a write key.

browse_catalog

Browse Catalog

Browse the Segment integration catalog to discover available source, destination, and warehouse types. Returns metadata IDs needed when creating new sources, destinations, or warehouses.

manage_source

Manage Source

Create, update, or delete a data source in your Segment workspace. Sources represent websites, mobile apps, servers, or cloud services that send data into Segment. To create a new source, provide the **metadataId** (from the catalog) and a **slug**. To update or delete, provide the **sourceId**.

group_user

Group User

Send a Group call to Segment's Tracking API. Associates a user with a group (company, organization, account, team) and records group traits. Requires a write key.

list_sources

List Sources

List all data sources in the Segment workspace. Returns source details including name, slug, enabled status, write keys, and connected destinations/warehouses metadata.

get_source

Get Source

Retrieve detailed information about a specific source, including its connected destinations and warehouses.

identify_user

Identify User

Send an Identify call to Segment's Tracking API. Ties a user to their traits like email, name, and plan. Requires a write key.

list_audit_events

List Audit Events

List audit trail events for the workspace. Audit events record actions like source creation, destination updates, user invitations, and other workspace changes.

manage_destination_filter

Manage Destination Filter

Create, update, or remove filters on a destination. Destination filters control which events are forwarded, allowing you to drop events, sample a percentage, or strip specific properties before delivery.

manage_warehouse

Manage Warehouse

Create, update, delete, or manage source connections for data warehouses. Warehouses like BigQuery, Snowflake, and Redshift receive synced data from Segment sources.

manage_destination_subscription

Manage Destination Subscription

Create, retrieve, update, list, or remove Segment destination subscriptions. Destination subscriptions configure an Actions destination mapping, including the action to run, trigger condition, enabled state, and mapping settings.

manage_source_write_key

Manage Source Write Key

Create or remove Segment source write keys. Use this to rotate Tracking API credentials for a source without recreating the source.

Connect Segment to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Segment in Metorial. In your Metorial portal, enable the Segment MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Segment tools.

Run Segment through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Segment and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Segment tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Segment

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Apolloio

Search and prospect B2B contacts and companies from a database of over 275 million people and 70 million organizations. Enrich people and company data with emails, phone numbers, and firmographic details. Create and manage contacts, accounts, deals, and tasks. Add contacts to email sequences and manage sequence statuses. Log and search call records. Perform bulk operations for contact creation, account creation, task creation, and data enrichment.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Hubspot

Create, read, update, and delete CRM objects including contacts, companies, deals, tickets, and custom objects. Manage associations between CRM records. Track engagements such as calls, emails, meetings, notes, and tasks. Send transactional and marketing emails, manage campaigns, and handle subscription preferences. Build and manage marketing workflows, sequences, and automation actions. Manage CMS content including blog posts, landing pages, and HubDB tables. Handle commerce data including products, orders, invoices, quotes, and payments. Create and manage contact lists for segmentation. Configure deal, ticket, and order pipelines with custom stages. Search and filter CRM records. Bulk import and export CRM data. Manage users, teams, and account settings.

Technical notes for Segment

Collect, unify, and route customer event data across tools and platforms. Track user actions (identify, track, page, screen, group, alias) via the Tracking API. Manage workspace resources including sources, source write keys, destinations, destination subscriptions, warehouses, tracking plans, functions, and reverse ETL models via the Public API. Create and enforce event schemas with tracking plans. Configure destination filters to control event routing. Build audiences and computed traits based on user behavior. Create custom JavaScript functions for source, destination, or middleware logic. Monitor API usage, event volume, event delivery metrics, and monthly tracked users. Handle GDPR deletion and suppression requests. Browse the integration catalog and manage identity, access, and roles for workspace users. Forward events to external webhooks in real time.

Frequently asked questions

Common questions about connecting Segment to AI agents with Metorial.

  1. How many tools does the Segment MCP server have?
    The Segment MCP server exposes 25 tools, including Track Event, Alias User, Batch Events. Each one is governed and traced through Metorial.
  2. Segment exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Segment MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Segment and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Segment MCP server yourself or use the hosted gateway.

Connect Segment to production AI agents

See how Metorial gives your team governed access to Segment, with tracing and security controls built in.