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

NameTypeRequiredDescription
_apiKeystringyesAmplitude API key
_secretKeystringyesAmplitude secret key
startstringyesStart date (YYYYMMDD)
endstringyesEnd date (YYYYMMDD)
mstringnoMetric: “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

FieldTypeDescription
seriesarrayActive user counts by time period
dataobjectDetailed 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.

Regenerated from source · build May 9, 2026