About npm
An MCP server for AI agents working with npm and Node.js packages. It combines registry search and package details with dependency audits, bundle estimates, and package comparisons.
Key features
- 01Search the npm registry
- 02Inspect package metadata and scores
- 03Audit dependencies for age and vulnerabilities
- 04Estimate package bundle size
- 05Compare packages across metrics
Use cases
- 01Find packages by keyword
- 02Review versions, dependencies, and licenses
- 03Check a package.json for outdated or vulnerable dependencies
- 04Estimate bundle impact before adding a package
- 05Compare candidate packages
MCP support
Exposes npm and Node.js package-management tools to MCP clients, including registry search, dependency auditing, and bundle-size estimation.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
5Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | number | No | Max results to return (default: 10, max: 50) |
| keyword | string | Yes | Search keyword or phrase |
Details
From the project READMEmcp-npm-tools
MCP server providing npm and Node.js package management tools for AI agents.
Tools
npm_search
Search the npm registry for packages by keyword. Returns name, description, version, weekly downloads, and last publish date.
npm_package_info
Get detailed information about a specific npm package: all published versions, dependencies, maintainers, repository URL, license, unpacked size, npm quality/popularity/maintenance scores, and weekly download count.
npm_dependency_audit
Analyze a package.json file to find outdated dependencies (compares pinned/range version against latest), deprecated packages, and known security vulnerabilities via the npm bulk advisory API.
npm_bundle_size
Estimate the bundle size of an npm package using the Bundlephobia API. Returns minified size, gzipped size, dependency count, and tree-shaking support indicators.
npm_compare_packages
Compare two or more packages side by side across multiple dimensions: weekly downloads, bundle size, number of runtime dependencies, last publish date, GitHub stars, and license.
Setup
npm install
npm run build
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"npm-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-npm-tools/dist/index.js"]
}
}
}
Development
npm run build # compile TypeScript
npm start # run the server
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.