amp_get_active_users
Pack: amplitude · Endpoint: https://gateway.pipeworx.io/amplitude/mcp
Get active user counts by granularity (daily, weekly, or monthly) for a date range. Returns totals and trend data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | Amplitude API key |
_secretKey | string | yes | Amplitude secret key |
start | string | yes | Start date (YYYYMMDD) |
end | string | yes | End date (YYYYMMDD) |
m | string | no | Metric: “active” (DAU), “new”, or “returning” (default “active”) |
Example call
Arguments
{
"_apiKey": "your-amplitude-api-key",
"_secretKey": "your-amplitude-secret-key",
"start": "20240101",
"end": "20240131"
}
curl
curl -X POST https://gateway.pipeworx.io/amplitude/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"amp_get_active_users","arguments":{"_apiKey":"your-amplitude-api-key","_secretKey":"your-amplitude-secret-key","start":"20240101","end":"20240131"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('amp_get_active_users', {
"_apiKey": "your-amplitude-api-key",
"_secretKey": "your-amplitude-secret-key",
"start": "20240101",
"end": "20240131"
});
More examples
{
"_apiKey": "your-amplitude-api-key",
"_secretKey": "your-amplitude-secret-key",
"start": "20240101",
"end": "20240131",
"m": "new"
}
Response shape
| Field | Type | Description |
|---|---|---|
series | array | Active user counts by time period |
data | object | Detailed user metrics by granularity |
Full JSON Schema
{
"type": "object",
"properties": {
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Date period (YYYYMMDD)"
},
"value": {
"type": "number",
"description": "Active user count"
}
}
},
"description": "Active user counts by time period"
},
"data": {
"type": "object",
"description": "Detailed user metrics by granularity"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"amplitude": {
"url": "https://gateway.pipeworx.io/amplitude/mcp"
}
}
}
See Getting Started for client-specific install steps.