npm-mcp

v0.0.3
io.github.alisaitteke/npm-mcp Checked 1 day ago Published 10 months ago

MCP 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

ParameterTypeDescription
query *stringSearch query (package name or keywords)
limitnumberMaximum number of results (default: 10, max: 50)

get_package_details

Get detailed information about a specific npm package including versions, dependencies, and repository info

ParameterTypeDescription
packageName *stringName of the package
versionstringSpecific version (optional, defaults to latest)

audit_security

Check package for known security vulnerabilities and get recommendations

ParameterTypeDescription
packageName *stringName of the package to audit
versionstringSpecific version to audit (optional)

check_compatibility

Analyze compatibility of a package with existing project dependencies

ParameterTypeDescription
existingDependencies *objectExisting package.json dependencies
packageName *stringName of the package to check
versionstringVersion or version range

analyze_quality

Evaluate package quality metrics including maintenance, popularity, and sustainability

ParameterTypeDescription
packageName *stringName of the package to analyze

analyze_npx_command

Analyze and validate an npx command before execution (security check)

ParameterTypeDescription
command *stringPackage to analyze (e.g., "create-react-app" or "typescript@5.0.0")
argsarrayCommand arguments (optional)
timeoutnumberTimeout in milliseconds (default: 30000)

compare_versions

Compare different versions of a package and analyze breaking changes

ParameterTypeDescription
fromVersion *stringStarting version
packageName *stringName of the package
toVersion *stringTarget version

analyze_capabilities

Analyze package capabilities: ESM/CJS support, TypeScript, platforms (Node/Browser/Deno), exports, build tools

ParameterTypeDescription
packageName *stringName of the package to analyze
versionstringSpecific version (optional, defaults to latest)

generate_quick_start

Generate ready-to-use code examples for a package (installation, basic usage, framework-specific examples)

ParameterTypeDescription
packageName *stringName of the package
frameworkstringTarget framework (auto-detect if not specified)
versionstringSpecific version (optional)

compare_packages

Compare multiple packages side-by-side (features, size, popularity, maintenance, TypeScript support)

ParameterTypeDescription
packages *arrayArray of package names to compare (2-5 packages)

analyze_bundle_size

Analyze bundle size impact: minified, gzipped sizes, tree-shaking support, recommendations

ParameterTypeDescription
packageName *stringName of the package
versionstringSpecific version (optional)

find_similar_packages

Find similar/alternative packages based on keywords and functionality

ParameterTypeDescription
packageName *stringName of the package to find alternatives for
limitnumberNumber of results (default: 5, max: 10)