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

NameTypeRequiredDescription
from_datestringyesStart date in YYYY-MM-DD format
to_datestringyesEnd date in YYYY-MM-DD format
_apiKeystringyesMixpanel 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.

Regenerated from source · build May 9, 2026