recent

Pack: pypi-stats · Endpoint: https://gateway.pipeworx.io/pypi-stats/mcp

Fetch total PyPI download count for a package over a recent period (day, week, or month). Returns a single aggregate count from pypistats.org.

Parameters

NameTypeRequiredDescription
packagestringyes
periodstringnoday | week | month

Example call

Arguments

{
  "package": "requests"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('recent', {
  "package": "requests"
});

More examples

{
  "package": "numpy",
  "period": "month"
}

Response shape

FieldTypeDescription
dataobject
packagestringPackage name
typestringResponse type
Full JSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "last_day": {
          "type": "integer",
          "description": "Downloads in last day"
        },
        "last_week": {
          "type": "integer",
          "description": "Downloads in last week"
        },
        "last_month": {
          "type": "integer",
          "description": "Downloads in last month"
        }
      }
    },
    "package": {
      "type": "string",
      "description": "Package name"
    },
    "type": {
      "type": "string",
      "description": "Response type"
    }
  }
}

Connect

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

{
  "mcpServers": {
    "pypi-stats": {
      "url": "https://gateway.pipeworx.io/pypi-stats/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026