get_retention
Pack: mixpanel · Endpoint: https://gateway.pipeworx.io/mixpanel/mcp
Get user retention cohort data from Mixpanel. Shows how many users return over time. Example: get_retention({ from_date: “2024-01-01”, to_date: “2024-01-31”, _apiKey: “your_api_secret” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
from_date | string | yes | Start date in YYYY-MM-DD format |
to_date | string | yes | End date in YYYY-MM-DD format |
_apiKey | string | yes | Mixpanel API secret (used for Basic auth) |
Example call
Arguments
{
"from_date": "2024-01-01",
"to_date": "2024-01-31",
"_apiKey": "your-mixpanel-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/mixpanel/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_retention","arguments":{"from_date":"2024-01-01","to_date":"2024-01-31","_apiKey":"your-mixpanel-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_retention', {
"from_date": "2024-01-01",
"to_date": "2024-01-31",
"_apiKey": "your-mixpanel-api-key"
});
Response shape
Full JSON Schema
{
"type": "object",
"description": "User retention cohort data from Mixpanel"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"mixpanel": {
"url": "https://gateway.pipeworx.io/mixpanel/mcp"
}
}
}
See Getting Started for client-specific install steps.