compare_packages
Compare multiple npm packages side-by-side (downloads, stars, license, etc.).
Look up an npm package properly before adding it — downloads, GitHub stars and license, the README, its versions and its dependency tree.
LABSCO SUMMARY
Search plus downloads plus stars is table stakes; the parts that change a decision are the dependency tree at a depth you choose, and the version list with publish dates, which is how you tell a maintained package from an abandoned one. Extracting the usage snippet out of the README is the small convenience that saves reading a long document to find one import line.
An npm registry lookup server. It searches, fetches package context, and compares candidates, so a library decision is made against real numbers rather than recall.
No account and no key. Node.js v18.17 or newer; run it with npx -y npmlens-mcp@latest over stdio, from the npm package npmlens-mcp, currently 0.1.12. It makes live requests to npm and to GitHub when tools are called, and to nothing else — there is no arbitrary URL fetching. GITHUB_TOKEN is optional and only raises the GitHub rate limit.
One command — npx -y npmlens-mcp@latest
USE CASES
Compare them side by side on downloads, stars and license, then read the version history behind each.
Search the registry, or search by the keyword combination the ecosystem tags them with.
Read its dependency tree to the depth you care about before installing.
Extract the usage snippet, and fetch the README only if you need more.
Look at the recent downloads and the publish dates on its latest versions.
Pull the enriched info — registry metadata, weekly downloads and GitHub details together.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
compare_packagesCompare multiple npm packages side-by-side (downloads, stars, license, etc.).
get_downloadsGet npm downloads for the last day/week/month.
get_package_dependenciesGet the dependency tree for a package.
get_package_infoGet enriched package info: registry metadata, last-week downloads, and GitHub repo details when available.
get_package_versionsList all available versions of a package with publish dates and dist tags.
get_readmeFetch README text for a given npm package (optionally a specific version).
get_usage_snippetExtract a likely usage snippet from a package's README.
search_by_keywordsSearch npm packages by specific keywords/tags.
search_npmSearch the npm registry for packages.
BEFORE YOU INSTALL
9 tools when we connected.
CONTEXT COST
Rated by the size of the 9 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y npmlens-mcp@latest{
"amp.mcpServers": {
"npmlens": {
"command": "npx",
"args": [
"-y",
"npmlens-mcp@latest"
]
}
}
}{
"mcpServers": {
"npmlens": {
"command": "npx",
"args": [
"-y",
"npmlens-mcp@latest"
]
}
}
}claude mcp add npmlens npx npmlens-mcp@latestcodex mcp add npmlens -- npx npmlens-mcp@latestStart Copilot CLI: copilot
Open the add-server dialog: /mcp add
Enter these fields and press CTRL+S to save — Server name: npmlens, Server Type: Local, Command: npx -y npmlens-mcp@latest
code --add-mcp '{"name":"npmlens","command":"npx","args":["-y","npmlens-mcp@latest"]}'gemini mcp add npmlens npx npmlens-mcp@latest