npm (Unofficial)
v0.2.2Unofficial npm MCP — wraps the npm Registry API (free, no auth)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
npm_search_packages
Search npm for packages by keyword. Returns package names, descriptions, latest versions, publish dates, and publishers. Use when discovering libraries for a task.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string |
limit | number | Maximum number of results to return (default 10, max 50) |
npm_get_package
Get full details for a specific package: version, description, dependencies, homepage, repository, and license. Use after search_packages to evaluate a candidate package.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact package name (e.g., "express", "lodash") |
get_downloads
Fetch npm download counts for a package over a named period (last-day, last-week, last-month, last-year) or a custom date range like "2024-01-01:2024-06-30". Returns total downloads, start date, and end date.
| Parameter | Type | Description |
|---|---|---|
name * | string | Package name |
period | string | Download period: last-day, last-week (default), last-month, or a date range like 2024-01-01:2024-06-30 |
npm_list_versions
List published versions of an npm package with publish dates, dist-tags (latest/next/beta), and deprecation notices — answers "what versions of <pkg> exist", "when was <pkg> last published", "is the latest version deprecated". Returns versions newest-first, plus the package created/last-modified timestamps.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact package name (e.g. "express", "@types/node"). |
limit | number | Number of recent versions to return (default 20, max 100). |
get_version_info
Get metadata for a SPECIFIC version (or dist-tag) of an npm package: dependencies, dev/peer dependencies, engines, license, tarball + integrity hash + unpacked size, and any deprecation notice. Use for "dependencies of <pkg>@<version>", pinned-version audits, or inspecting a particular release. Version accepts an exact version (e.g. "4.18.2"), a dist-tag (e.g. "latest", "next"), or omit for the latest.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact package name (e.g. "express"). |
version | string | Exact version (e.g. "4.18.2"), a dist-tag (e.g. "latest", "next"), or omit for latest. |