An MCP (Model Context Protocol) server that enables AI assistants like Claude to manage npm packages through natural language. This server provides a comprehensive set of tools for the complete lifecycle of JavaScript/TypeScript package development, from initialization through publication and maintenance.
Part of the master-mcps monorepo collection of production-ready MCP servers.
Built with MCP TypeScript SDK v1.6.0 for stability and compatibility.
The NPM Package Manager MCP server offers a complete suite of tools:
- Initialize new npm packages with customizable package.json fields
- Create packages using modern ES Modules or CommonJS
- Set up private or public package configurations
- Install, update, and uninstall packages with fine-grained control
- Manage dependencies, devDependencies, and peerDependencies
- Work with global packages or project-specific dependencies
- List and audit installed dependencies
- Configure package.json fields and scripts
- Execute npm scripts with custom arguments
- Set up publishing configuration
- Update package versions following semantic versioning
- Publish packages to npm registry with custom access levels and tags
- Manage npm registry configuration for scoped packages
- Run security audits with automatic vulnerability fixing
- Search and get detailed information about packages
- View package metadata and documentation links
npm install -g @devlimelabs/npm-manage-mcpnpm install @devlimelabs/npm-manage-mcpClone the repository and install dependencies:
git clone https://github.com/devlimelabs/master-mcps.git
cd master-mcps/packages/npm-manage
npm install
npm run buildAdd the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"npm-manager": {
"command": "npx",
"args": ["-y", "@devlimelabs/npm-manage-mcp"]
}
}
}For a locally installed version:
{
"mcpServers": {
"npm-manager": {
"command": "node",
"args": ["/path/to/npm-manage-mcp/dist/bin.js"]
}
}
}Add to your Cursor settings:
{
"mcpServers": {
"npm-manager": {
"command": "npm-manage-mcp",
"env": {}
}
}
}Add to your .windsurf/config.json:
{
"mcpServers": {
"npm-manager": {
"command": "npm-manage-mcp",
"env": {}
}
}
}npm-init: Initialize a new npm package or update an existing one
npm-install: Install packages as dependencies, devDependencies, or peerDependenciesnpm-uninstall: Remove packages from your projectnpm-list-deps: List all dependencies in your projectnpm-update: Update packages to their latest versions
npm-set-scripts: Configure npm scripts in package.jsonnpm-run-script: Execute npm scriptsnpm-set-config: Set any field in package.json
npm-version: Update package version (major, minor, patch, or custom)npm-publish: Publish package to npm registrynpm-registry: Get or set npm registry configuration
npm-audit: Run security audit on dependenciesnpm-info: Get detailed information about packagesnpm-search: Search for packages on npm registry
- Node.js 16.0.0 or higher
- npm installed and accessible from the command line
- Requires npm to be installed and accessible from the command line
- Publishing operations require npm login
- Some operations may require appropriate file system permissions
For detailed testing instructions, see the Testing Guide.
To run in development mode:
npm run devTo run tests:
npm testFor a list of all available scripts:
npm runBuild and run with Docker:
docker build -t npm-manage-mcp .
docker run -it npm-manage-mcpMIT
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
This is part of the master-mcps monorepo. Please ensure all contributions follow the monorepo standards.