recent

Pack: pypi-stats · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/recent for the schema, then POST the same URL with its arguments for the data.

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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the pypi-stats pack
{
  "mcpServers": {
    "pypi-stats": {
      "url": "https://gateway.pipeworx.io/pypi-stats/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026