segment MCP Server
by katekrugerio.github.katekruger/segment-mcpv0.1.2
Read-first MCP server for Twilio Segment: routing, stale sources, delivery health, governance.
context tax
queued
security
queued
cold start
queued
freshness
Maintained37d ago
Install segment MCP server
Install in Claude Code
claude mcp add segment -e SEGMENT_API_TOKEN='<segment-api-token>' -e SEGMENT_REGION='<segment-region>' -- uvx segment-mcpInstall in Cursor
{
"mcpServers": {
"segment": {
"command": "uvx",
"args": [
"segment-mcp"
],
"env": {
"SEGMENT_API_TOKEN": "<segment-api-token>",
"SEGMENT_REGION": "<segment-region>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"segment": {
"command": "uvx",
"args": [
"segment-mcp"
],
"env": {
"SEGMENT_API_TOKEN": "<segment-api-token>",
"SEGMENT_REGION": "<segment-region>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"segment": {
"type": "stdio",
"command": "uvx",
"args": [
"segment-mcp"
],
"env": {
"SEGMENT_API_TOKEN": "<segment-api-token>",
"SEGMENT_REGION": "<segment-region>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"segment": {
"command": "uvx",
"args": [
"segment-mcp"
],
"env": {
"SEGMENT_API_TOKEN": "<segment-api-token>",
"SEGMENT_REGION": "<segment-region>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| SEGMENT_API_TOKEN | yes | yes | Segment Public API token. Only a Workspace Owner can mint one — Segment App -> Workspace Settings -> Access Management -> Tokens -> Create Token -> Public API. |
| SEGMENT_REGION | yes | — | Workspace region: 'us' or 'eu'. No default — must be set explicitly, or the server refuses to start. |
| SEGMENT_MCP_MODE | — | — | read (default) | write | admin. Every tool in v0.1 is read-only regardless of this setting. |
| SEGMENT_PROFILE_TOKEN | — | — | Separate credential for the Profile API (not yet wired to a tool in this version). Leave unset. |
| SEGMENT_PROFILE_SPACE_ID | — | — | Unify Space ID for the Profile API (not yet wired to a tool in this version). Leave unset. |
Freshness
Maintained — last maintenance signal 37d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-02 · 37d ago · GitHub
Latest release
2026-09-01 · 38d ago · GitHub · v0.1.3
Package published
no data · npm/PyPI
Registry entry updated
2026-08-30 · 40d ago · official registry · v0.1.2
FAQ
›How do I install the segment MCP server in Claude Code?
Run: claude mcp add segment -e SEGMENT_API_TOKEN='<segment-api-token>' -e SEGMENT_REGION='<segment-region>' -- uvx segment-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does segment require an API key?
Yes. It expects SEGMENT_API_TOKEN, SEGMENT_REGION, of which 1 is a secret.
›Can I use segment as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is segment in the official MCP registry?
Yes, as io.github.katekruger/segment-mcp.
Alternatives to segment
Other communication MCP servers.