Repository avatar
Developer Tools
v1.0.1
active

pypistats-python-downloads-mcp

io.github.theluckystrike/pypistats-python-downloads-mcp

Live PyPI Python download velocity, trends, Python version adoption, and OS breakdown.

Documentation

pypistats-python-downloads-mcp

Live PyPI Python package download velocity, historical daily trends, Python minor version adoption, operating system breakdown, and side-by-side package comparisons over Model Context Protocol (MCP). Python maintainers, developer relations teams, and platform engineers can query pypistats.org/api/packages to track adoption and guide Python runtime deprecation with zero API keys and zero sign-up. It connects right away.

Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

https://pypistats-python-downloads-mcp.lipmichal.workers.dev/mcp

Available tools

ToolPurpose
get_pypi_recent_downloadsFetch last-day, last-week, and last-month PyPI downloads plus daily average
get_pypi_overall_trendInspect historical daily download series, peak day, and period growth percentage
get_pypi_python_version_adoptionRank Python minor version shares (3.10, 3.11, 3.12, 3.13) over a trailing window
get_pypi_os_breakdownCompute Linux, Windows, and macOS (Darwin) download distribution
compare_pypi_packagesCompare download velocity and relative monthly share across 2 to 5 PyPI packages

Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

{
  "mcpServers": {
    "pypistats-python-downloads": {
      "url": "https://pypistats-python-downloads-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

npm install
npm run build
npm start

Compliance and reliability

Every upstream request queries pypistats.org/api/packages with a polite User-Agent header (mcpstamp-pypistats/1.0 (hello@mcpstamp.com)), a hard 12-second timeout, and automatic retry on transient 5xx or 429 errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates newer MCP protocol headers cleanly.

More MCP Servers and Readiness Check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.