get_downloads

Pack: npm · Endpoint: https://gateway.pipeworx.io/npm/mcp

Check download counts for a package over a time period (e.g., ‘last-week’, ‘last-month’, ‘last-year’). Returns total downloads to assess package popularity and adoption.

Parameters

NameTypeRequiredDescription
namestringyesPackage name
periodstringnoDownload period: last-day, last-week (default), last-month, or a date range like 2024-01-01:2024-06-30

Example call

Arguments

{
  "name": "react"
}

curl

curl -X POST https://gateway.pipeworx.io/npm/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_downloads","arguments":{"name":"react"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_downloads', {
  "name": "react"
});

More examples

{
  "name": "axios",
  "period": "last-month"
}

Response shape

Always returns: package, downloads, period, start, end

FieldTypeDescription
packagestringPackage name
downloadsnumberTotal downloads in the period
periodstringThe requested download period
startstringPeriod start date
endstringPeriod end date
Full JSON Schema
{
  "type": "object",
  "properties": {
    "package": {
      "type": "string",
      "description": "Package name"
    },
    "downloads": {
      "type": "number",
      "description": "Total downloads in the period"
    },
    "period": {
      "type": "string",
      "description": "The requested download period"
    },
    "start": {
      "type": "string",
      "description": "Period start date"
    },
    "end": {
      "type": "string",
      "description": "Period end date"
    }
  },
  "required": [
    "package",
    "downloads",
    "period",
    "start",
    "end"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "npm": {
      "url": "https://gateway.pipeworx.io/npm/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026