Product analytics
## Mixpanel MCP Server: Product Analytics The **Mixpanel MCP Server** integrates Mixpanel's product analytics platform into Google Antigravity. This enables tracking user behavior, analyzing funnels, and understanding product usage patterns. ### Why Mixpanel MCP? Mixpanel excels at product analytics: - **Event Tracking**: Detailed user actions - **Funnel Analysis**: Conversion optimization - **Retention**: User cohort analysis - **A/B Testing**: Experiment tracking - **Real-Time**: Live data insights ### Key Features #### 1. Track Events ```python from mixpanel import Mixpanel mp = Mixpanel("your-project-token") # Track event mp.track("user-123", "Purchase Completed", { "product_id": "prod-456", "amount": 99.99, "currency": "USD" }) # Set user properties mp.people_set("user-123", { "plan": "premium", "signup_date": "2024-01-15" }) ``` #### 2. Query Analytics ```python import requests headers = {"Authorization": f"Basic {credentials}"} # Funnel analysis response = requests.post( "https://mixpanel.com/api/2.0/funnels", headers=headers, json={ "funnel_id": 12345, "from_date": "2024-01-01", "to_date": "2024-03-01" } ) funnel = response.json() print(f"Conversion: {funnel['data']['conversion_rate']}%") ``` #### 3. Cohort Analysis ```python # Create cohort response = requests.post( "https://mixpanel.com/api/2.0/cohorts/create", headers=headers, json={ "name": "Power Users", "description": "Users with 10+ sessions", "filter": { "event": "Session", "count": {"gte": 10} } } ) ``` ### Configuration ```json { "mcpServers": { "mixpanel": { "command": "npx", "args": ["-y", "@anthropic/mcp-mixpanel"], "env": { "MIXPANEL_TOKEN": "your-project-token", "MIXPANEL_API_SECRET": "your-api-secret" } } } } ``` ### Use Cases **Product Analytics**: Understand user behavior. **Conversion Optimization**: Improve funnels. **User Segmentation**: Target user cohorts. The Mixpanel MCP Server brings product analytics to Antigravity.
{
"mcpServers": {
"mixpanel": {
"mcpServers": {
"mixpanel": {
"env": {
"MIXPANEL_TOKEN": "your-project-token",
"MIXPANEL_API_SECRET": "your-api-secret"
},
"args": [
"-y",
"mixpanel-mcp-server"
],
"command": "npx"
}
}
}
}
}