npm and PyPI Package Adoption MCP Server
An MCP server for the Mamba Labs npm and PyPI Package Adoption actor on Apify. npm and PyPI downloads, trend, versions, and release dates per package.
What's Inside
- What it does
- Quick start
- Prerequisites
- Example prompts
- Tool
- Inputs
- Pricing
- Full actor documentation
- License
What it does
Give npm or PyPI package names. The actor reads the npm registry and download APIs, PyPI's JSON API, and pypistats.org, and returns one row per package: downloads over the last day, 7, 30, 180, and 365 days, the 30 day trend, monthly totals, latest version, release dates, releases in the last 12 months, license, repository, maintainers count, and deprecation. npm download counts cover 365 days; PyPI counts cover 180 days.
All of the work runs on Apify. This package is a thin client that starts the actor run, waits for it, and hands back the dataset rows.
Quick start
You need Node.js 18 or newer and an Apify account with an API token.
Add this to your Claude Desktop config (claude_desktop_config.json), Cursor, or any MCP client:
{
"mcpServers": {
"mamba-npm-pypi-package-adoption": {
"command": "npx",
"args": [
"-y",
"@mambalabsdev/mcp-npm-pypi-package-adoption"
],
"env": {
"APIFY_TOKEN": "your-apify-token"
}
}
}
}
Restart the client. The get_package_adoption tool appears.
Prerequisites
- Node.js 18 or newer.
- An Apify API token from console.apify.com/account/integrations, set as
APIFY_TOKEN. The server lists its tool without a token; a call needs one.
Example prompts
- "Compare monthly npm downloads for express and fastify."
- "Which of these PyPI packages grew most in the last 30 days: requests, httpx, aiohttp?"
- "When did these npm packages last ship a release, and are any deprecated?"
Tool
get_package_adoption. One tool. Example arguments:
{
"npm_packages": [
"express",
"fastify"
],
"pypi_packages": [
"requests",
"httpx"
]
}
Inputs
Every buyer facing input of the actor. Omitted inputs take the actor's own defaults.
| Input | Type | Required | Description |
|---|---|---|---|
npm_packages |
array | no | npm package names or npmjs.com package URLs, for example express, @angular/core, or https://www.npmjs.com/package/react. One per line; one line can hold several names separated by commas. In Clay, put the column inside a one item list. |
pypi_packages |
array | no | PyPI package names or pypi.org project URLs, for example requests, django, or https://pypi.org/project/httpx/. One per line; one line can hold several names separated by commas. |
max_charge_usd |
string | no | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. |
Pricing
Pay per event on Apify, billed to your Apify account. Prices in USD.
| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
package-row, one package |
$0.003 | $0.00285 | $0.0027 | $0.00255 |
apify-actor-start, per run start |
$0.004 | $0.004 | $0.004 | $0.004 |
Package names that do not exist, repeats, rate limits, API errors, and refused input are free. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.
Full actor documentation
apify.com/mambalabs/npm-pypi-package-adoption
License
MIT. See LICENSE.