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
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | Package name |
period | string | no | Download 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
| Field | Type | Description |
|---|---|---|
package | string | Package name |
downloads | number | Total downloads in the period |
period | string | The requested download period |
start | string | Period start date |
end | string | Period 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.