Segment MCP Server
for AI Agents
Connect your AI agent to StackOne's Segment MCP server and give it 61 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
61 Agent Actions
Create, read, update, and delete across Segment — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Segment MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Segment tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Segment call.
Tools Discovery →What is the Segment MCP Server?
A Segment MCP server lets AI agents read and write Segment data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Segment MCP server ships with 61 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Segment MCP Tools
Every action from Segment's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Sources
- Create Source
Create a new source in the workspace
- List Sources
List all sources in the workspace
- Get Source
Retrieve a source by its id
- Update Source
Update an existing source
- Delete Source
Delete a source by its id
Destinations
- Create Destination
Create a new destination in the workspace
- List Destinations
List all destinations in the workspace
- Get Destination
Retrieve a destination by its id
- Update Destination
Update an existing destination
- Delete Destination
Delete a destination by its id
Warehouses
- Create Warehouse
Create a new warehouse in the workspace
- List Warehouses
List all warehouses in the workspace
- Get Warehouse
Retrieve a warehouse by its id
- Update Warehouse
Update an existing warehouse
- Delete Warehouse
Delete a warehouse by its id
Tracking Plans
- Create Tracking Plan
Create a new tracking plan in the workspace
- List Tracking Plans
List all tracking plans in the workspace
- Get Tracking Plan
Retrieve a tracking plan by its id
- Update Tracking Plan
Update an existing tracking plan
- Delete Tracking Plan
Delete a tracking plan by its id
Spaces
- List Spaces
List all spaces in the workspace
- Get Space
Retrieve a space by its id
Audiences
- Create Audience
Create a new audience in a space
- List Audiences
List all audiences in a space
- Get Audience
Retrieve an audience by its id
Computed Traits
- Create Computed Trait
Create a new computed trait in the space
- List Computed Traits
List all computed traits in the space
- Get Computed Trait
Retrieve a computed trait by its id
Functions
- Create Function
Create a new function in the workspace
- List Functions
List all functions of a given type in the workspace
- Get Function
Retrieve a function by its id
- Delete Function
Delete a function by its id
Transformations
- Create Transformation
Create a new transformation in the workspace
- List Transformations
List all transformations in the workspace
- Get Transformation
Retrieve a transformation by its id
- Update Transformation
Update an existing transformation
- Delete Transformation
Delete a transformation by its id
Reverse Etl Models
- Create Reverse Etl Model
Create a new Reverse ETL Model in the workspace
- List Reverse Etl Models
List all Reverse ETL Models in the workspace
- Get Reverse Etl Model
Retrieve a Reverse ETL Model by its id
- Delete Reverse Etl Model
Delete a Reverse ETL Model by its id
Labels
- Create Label
Create a new label in the workspace
- List Labels
List all labels in the workspace
- Delete Label
Delete a label by its key and value
Users
- List Users
List all users in the workspace
- Get User
Retrieve a user by its id
User Groups
- Create User Group
Create a new user group in the workspace
- List User Groups
List all user groups in the workspace
- Get User Group
Retrieve a user group by its id
- Update User Group
Update an existing user group
- Delete User Group
Delete a user group by its id
Other (10)
- Get Workspace
Retrieve the workspace associated with the API token
- List Connected Destinations From Source
List destinations connected to a source
- List Connected Warehouses From Source
List warehouses connected to a source
- List Subscriptions From Destination
List subscriptions for a destination
- List Connected Sources From Warehouse
List sources connected to a warehouse
- List Invites
List all pending invites in the workspace
- List Roles
List all roles in the workspace
- List Audit Events
List audit events in the workspace
- Update Audience For Space
Update an existing audience in a space
- Remove Audience From Space
Remove an audience from a space
Set Up Your Segment MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Segment in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More Data & Analytics MCP Servers
203+ actions
122+ actions
104+ actions
102+ actions
101+ actions
80+ actions
73+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Segment MCP Server FAQ
Does StackOne have a Segment MCP server?
Segment MCP server vs direct API integration — what's the difference?
How does Segment authentication work for AI agents?
origin_owner_id.Are Segment MCP tools vulnerable to prompt injection?
What is the context bloat of a Segment agent and how do I avoid it?
Can I limit which actions my Segment agent can access?
Can I create custom agent actions for my Segment MCP server?
When should I NOT use a Segment MCP server?
What AI frameworks and AI clients does the StackOne Segment MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.