npm-mcp
v0.0.3MCP server for npm package management, security analysis, and compatibility checking
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_packages
Search npm registry for packages by name or keywords with popularity ranking
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (package name or keywords) |
limit | number | Maximum number of results (default: 10, max: 50) |
get_package_details
Get detailed information about a specific npm package including versions, dependencies, and repository info
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Name of the package |
version | string | Specific version (optional, defaults to latest) |
audit_security
Check package for known security vulnerabilities and get recommendations
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Name of the package to audit |
version | string | Specific version to audit (optional) |
check_compatibility
Analyze compatibility of a package with existing project dependencies
| Parameter | Type | Description |
|---|---|---|
existingDependencies * | object | Existing package.json dependencies |
packageName * | string | Name of the package to check |
version | string | Version or version range |
analyze_quality
Evaluate package quality metrics including maintenance, popularity, and sustainability
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Name of the package to analyze |
analyze_npx_command
Analyze and validate an npx command before execution (security check)
| Parameter | Type | Description |
|---|---|---|
command * | string | Package to analyze (e.g., "create-react-app" or "typescript@5.0.0") |
args | array | Command arguments (optional) |
timeout | number | Timeout in milliseconds (default: 30000) |
compare_versions
Compare different versions of a package and analyze breaking changes
| Parameter | Type | Description |
|---|---|---|
fromVersion * | string | Starting version |
packageName * | string | Name of the package |
toVersion * | string | Target version |
analyze_capabilities
Analyze package capabilities: ESM/CJS support, TypeScript, platforms (Node/Browser/Deno), exports, build tools
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Name of the package to analyze |
version | string | Specific version (optional, defaults to latest) |
generate_quick_start
Generate ready-to-use code examples for a package (installation, basic usage, framework-specific examples)
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Name of the package |
framework | string | Target framework (auto-detect if not specified) |
version | string | Specific version (optional) |
compare_packages
Compare multiple packages side-by-side (features, size, popularity, maintenance, TypeScript support)
| Parameter | Type | Description |
|---|---|---|
packages * | array | Array of package names to compare (2-5 packages) |
analyze_bundle_size
Analyze bundle size impact: minified, gzipped sizes, tree-shaking support, recommendations
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Name of the package |
version | string | Specific version (optional) |
find_similar_packages
Find similar/alternative packages based on keywords and functionality
| Parameter | Type | Description |
|---|---|---|
packageName * | string | Name of the package to find alternatives for |
limit | number | Number of results (default: 5, max: 10) |