Npm MCP logo

Npm MCP

by mikusnuz

Manage npm packages through MCP, including publishing, dependency operations, registry queries, audits, and diagnostics.

Install Npm MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mikusnuz-npm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/npm-mcp"
      ],
      "env": {
        "NPM_TOKEN": "YOUR_VALUE_HERE",
        "NPM_PATH": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 42 tools correctly (17d ago).

Overview

mikusnuz/npm-mcp exposes npm package management operations to AI assistants through MCP, connecting local Node.js projects with the npm CLI and registry. Its tools cover publishing, version changes, staged releases, package discovery, dependency maintenance, security audits, SBOM generation, and environment checks. Use it when an MCP client needs to inspect or modify npm projects without switching to a separate terminal. The server runs with Node.js 20 or newer, while some staged publishing and script-approval features require newer npm and Node.js versions.

Use cases

  • Publish a local package to the npm registry
  • Audit project dependencies and optionally apply fixes
  • Search npm for packages and inspect registry metadata
  • Review and approve dependency install scripts
  • Generate a CycloneDX or SPDX software bill of materials

Key features

  • Publish, version, deprecate, unpublish, and stage npm packages
  • Install, update, inspect, deduplicate, and remove dependencies
  • Search the npm registry and compare package versions
  • Run audits, generate SBOMs, and check npm health
  • Manage npm 12 dependency install-script policies
  • Authenticate with NPM_TOKEN or existing npm login credentials

Tools42

What Npm MCP lets your agent do. Expand a tool for its parameters.

Verified live~4.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

8/8 checks healthy over the last 91d

What it can do

From the 42 tools this server returned when we ran it; 3 declare their own safety hints.

Runs commands · 1Can delete or modify data · 4Handles credentials · 1Makes network requests · 4Read-only tools · 37
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age248 days
Maintainers1

Observed 2026-10-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 18h ago via OSV.dev · @mikusnuz/npm-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads318Package downloads in the last 30 days.
Last commit20d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed42Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Npm MCP works

What mikusnuz/npm-mcp does

mikusnuz/npm-mcp brings npm workflows into MCP-compatible AI clients. It can work with local project directories for package installation, removal, updates, version changes, packing, auditing, and other dependency operations. It also queries the npm registry for package metadata, search results, documentation links, repository links, bug trackers, version differences, and download-related package information.

Publishing workflows include direct publication, version bumps, package removal, deprecation, and dry-run packing. The stage tool supports staged package publication, listing staged versions, inspecting or downloading them, and approving or rejecting a staged release. Approval and rejection require maintainer two-factor authentication.

How it works

The server runs as a Node.js process and exposes npm operations as MCP tools. Local-project tools accept a project path; registry and package tools accept package names or version specifications. For example, an agent can bump a project from its current version, publish it, inspect the contents that would be packed, or compare two package versions.

Authentication can come from an NPM_TOKEN supplied in the MCP client configuration or from credentials already stored by npm login in the user’s npm configuration. Two-factor authentication codes can be passed for operations that require them, including staged release approval or rejection and certain maintainer or token changes.

Dependency script controls are designed for npm 12 and later. An agent can list unreviewed install scripts, then approve specific reviewed dependencies with version pinning or deny named dependencies. These policy operations do not execute the scripts; the intended installation or build must be run separately.

Setup and configuration

Install the project from its repository, install dependencies, and build it with npm:

bash
git clone https://github.com/mikusnuz/npm-mcp.git
cd npm-mcp
npm install
npm run build

Configure an MCP client to launch dist/index.js with Node.js. A typical configuration supplies the npm token through NPM_TOKEN:

config.json
{
  "mcpServers": {
    "npm-mcp": {
      "command": "node",
      "args": ["/path/to/npm-mcp/dist/index.js"],
      "env": {
        "NPM_TOKEN": "npm_xxxxxxxxxxxx"
      }
    }
  }
}

Use NPM_PATH when the npm executable is not the one available on the system path, or when a separate npm installation is needed. Staged publishing requires npm 11.15.0 or later and Node.js 22.14.0 or later. The server requires Node.js 20 or newer overall.

Tools and capabilities

Publishing and release management include publish, stage, version, unpublish, deprecate, and pack. Registry inspection includes view, search, bugs, repo, docs, and diff.

Project dependency operations include install, uninstall, update, outdated, ls, explain, dedupe, prune, fund, and query. Security and diagnostics include audit, sbom, doctor, and ping. The server also exposes pending-scripts, approve-scripts, and deny-scripts for npm 12 script policy workflows, plus whoami for checking the authenticated npm account.

The package supports common release tasks such as publishing a scoped package, checking outdated dependencies, generating CycloneDX or SPDX SBOM output, and querying dependencies with CSS-like selectors.

Limitations and notes

Staged publication is separate from direct publication: the package is not published until a staged version is approved. Approval and rejection require maintainer 2FA, and staged workflows may require a stage-capable token. Direct publishing with a stage-only token fails with E_STAGE_REQUIRED.

npm version differences affect available operations. In particular, the install-script approval tools require npm 12 or newer, and older npm versions do not support those options. Approval is explicit rather than bulk, and a lockfile can result in a name-only approval when a trusted resolved version cannot be pinned.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Npm MCP

mikusnuz/npm-mcp is an MCP server that connects AI assistants to the npm CLI, npm registry, and local Node.js projects. Its main tools publish and version packages, manage dependencies, search registry data, run security audits, generate SBOMs, inspect package metadata, and check npm environment and authentication status.

Install it by cloning the repository, running npm install, and building with npm run build. Configure your MCP client to launch the resulting dist/index.js with Node.js. The server requires Node.js 20 or newer.

Set NPM_TOKEN in the MCP client configuration or run npm login locally first. Existing credentials in ~/.npmrc are used when no NPM_TOKEN is configured. Pass an OTP when npm requires two-factor authentication.

Yes, with npm 12 or newer. Use pending-scripts to review unapproved scripts, then approve specific dependencies with approve-scripts or deny them with deny-scripts. These tools update policy but do not execute the scripts.

Yes. The stage tool can publish to a pending stage, list or inspect staged versions, download one for review, and approve or reject it. Staged publishing requires npm 11.15.0 or later, Node.js 22.14.0 or later, and maintainer two-factor authentication for approval or rejection.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNpm MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mikusnuz-npm-mcp?style=directory)](https://allmcps.com/mcp/mikusnuz-npm-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/mikusnuz-npm-mcp"><img src="https://allmcps.com/api/badge/mikusnuz-npm-mcp?style=directory" alt="Npm MCP on AllMCPs" /></a>