get_events
Pack: mixpanel · Endpoint: https://gateway.pipeworx.io/mixpanel/mcp
Query event data from Mixpanel for a date range. Returns event counts and properties. Example: get_events({ from_date: “2024-01-01”, to_date: “2024-01-31”, event: “Sign Up”, _apiKey: “your_api_secret” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
from_date | string | yes | Start date in YYYY-MM-DD format, e.g. “2024-01-01” |
to_date | string | yes | End date in YYYY-MM-DD format, e.g. “2024-01-31” |
event | string | no | Optional specific event name to filter by, e.g. “Sign Up”, “Purchase” |
_apiKey | string | yes | Mixpanel API secret (used for Basic auth) |
Example call
Arguments
{
"from_date": "2024-01-01",
"to_date": "2024-01-31",
"event": "Sign Up",
"_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_events","arguments":{"from_date":"2024-01-01","to_date":"2024-01-31","event":"Sign Up","_apiKey":"your-mixpanel-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_events', {
"from_date": "2024-01-01",
"to_date": "2024-01-31",
"event": "Sign Up",
"_apiKey": "your-mixpanel-api-key"
});
More examples
{
"from_date": "2024-02-01",
"to_date": "2024-02-29",
"_apiKey": "your-mixpanel-api-key"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Event data query result 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.