Customer data platform
## Segment MCP Server: Customer Data Platform The **Segment MCP Server** integrates Segment's customer data platform into Google Antigravity. This enables collecting, cleaning, and routing customer data to hundreds of analytics and marketing tools. ### Why Segment MCP? Segment unifies customer data: - **Single API**: Collect once, send everywhere - **400+ Integrations**: Connect any tool - **Data Quality**: Clean and validate data - **Identity Resolution**: Unified customer profiles - **Protocols**: Data governance built-in ### Key Features #### 1. Track Events ```python import analytics analytics.write_key = "your-write-key" analytics.track("user-123", "Order Completed", { "order_id": "ORD-456", "revenue": 99.99, "products": [{"sku": "SKU-1", "name": "Widget"}] }) analytics.identify("user-123", { "email": "user@example.com", "plan": "premium" }) ``` #### 2. Query Profiles ```python import requests headers = {"Authorization": f"Bearer {api_token}"} # Get user profile response = requests.get( f"https://profiles.segment.com/v1/spaces/{space_id}/collections/users/profiles/user_id:123", headers=headers ) profile = response.json() print(f"Traits: {profile['traits']}") ``` #### 3. Manage Sources ```python # List sources response = requests.get( "https://api.segmentapis.com/sources", headers=headers ) for source in response.json()["data"]["sources"]: print(f"Source: {source['name']} - {source['slug']}") ``` ### Configuration ```json { "mcpServers": { "segment": { "command": "npx", "args": ["-y", "@anthropic/mcp-segment"], "env": { "SEGMENT_WRITE_KEY": "your-write-key", "SEGMENT_API_TOKEN": "your-api-token" } } } } ``` ### Use Cases **Data Collection**: Single API for all analytics. **Data Routing**: Send to 400+ destinations. **Customer Profiles**: Unified user data. The Segment MCP Server brings customer data infrastructure to Antigravity.
{
"mcpServers": {
"segment": {
"mcpServers": {
"segment": {
"env": {
"SEGMENT_WRITE_KEY": "your-write-key"
},
"args": [
"-y",
"segment-mcp-server"
],
"command": "npx"
}
}
}
}
}