
Npm
io.github.mikusnuzPublished by GitHub account mikusnuzv1.4.0Updated Oct 24, 2026
MCP server for npm package management — publish, version, search, audit, and more
Overview
Local MCP server that lets an assistant publish, version, search, audit and manage npm packages and dependencies from the editor.
- What you can do
- Publish, stage, version, deprecate, unpublish and pack packages, and preview what would be published
- Look up registry info: view, search, bugs, repo, docs and version diffs
- Install, uninstall, update, dedupe, prune, list and explain dependencies, plus query the tree and review install scripts
- Run security audits, generate SBOMs, check environment health and registry connectivity
- Manage auth and metadata: whoami, tokens, access levels, owners, dist-tags, profile and config
- Set up projects: init, edit package.json fields, clean install, run scripts, link and manage the cache
- When to use it
- Useful when you build a library or app in an MCP-capable editor and want the assistant to publish releases, bump versions, check outdated dependencies or run audits without switching to a terminal.
- Requirements
- Runs as a local process on the desktop; needs Node.js 20 or newer and an npm installation (path configurable via NPM_PATH). Authentication uses a granular npm access token in NPM_TOKEN, or existing npm login credentials in the local npmrc file. Staged publishing needs newer npm and Node.js versions.
Installation
In SourceWeft
- Open Npm in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
npm-mcp
MCP server that lets AI assistants manage npm packages. Publish, version, search, audit, install, and more -- all through Claude Code or any MCP client.
The MCP server requires Node.js 20 or newer. Individual npm CLI features may require a newer Node.js/npm combination as noted below.
When to Use
For AI agents: See
llms.txtfor a machine-readable summary. Copytemplates/CLAUDE.mdortemplates/AGENTS.mdinto your project to teach your agent about this MCP.
Why
You're in Claude Code building a library. You finish the code, and now you need to publish it. Instead of switching to a terminal:
That's it. No context switching.
Setup
1. Install
2. Get npm token
Go to npmjs.com > Account > Access Tokens and create a
granular access token with access to the packages you need. Classic and
Automation tokens are no longer supported. A stage-only token uses the stage
workflow below. Existing npm login credentials also work.
3. Add to Claude Code
Edit ~/.claude/settings.json:
Or if you've already run npm login locally, skip NPM_TOKEN -- it uses your ~/.npmrc automatically.
Tools
Publishing & Versioning
Package Info
Dependency Management
Security & Diagnostics
npm 12 blocks unapproved dependency install scripts. Call pending-scripts with
an absolute project path, review the packages, then pass explicit package names
to approve-scripts or deny-scripts. These commands update policy without
running scripts; rerun the intended install/build separately. There is no bulk
approval option. npm pins approvals when a trusted resolved version is available;
check its warnings if an older lockfile forces a name-only approval. For global
installs only, install.allowScripts accepts an explicit list of reviewed names.
Older npm versions do not support these options; select npm 12+ using NPM_PATH.
See npm script approval.
Configuration & Auth
Project Setup
Examples
Publish a scoped package:
Bump version and publish:
Check what's inside before publishing:
Search for existing packages:
View package details:
Install packages:
Check outdated dependencies:
Compare versions:
Generate SBOM:
Query dependencies:
Auth
Staged publishing
Staged publishing requires npm CLI 11.15.0 or later and Node.js 22.14.0
or later. Check npm stage --help; NPM_PATH can select a separate npm
installation. See the staged publishing prerequisites.
Staging does not publish the package; approval does. Approval and rejection
require maintainer 2FA. dryRun applies only to stage with action: "publish".
A direct publish with a stage-only token returns E_STAGE_REQUIRED. npm plans
to remove direct publishing with granular tokens in January 2027.
See npm staging and
token requirements.
pkg accepts JSON values directly: value: "my-package", value: true,
value: ["keyword"], or value: { test: "node --test" }. Strings stay strings;
do not stringify arrays or objects before passing them.
Pass otp when npm requires 2FA, including staged approval/rejection and package
maintainer or token changes. Since August 2026, bypass-2FA tokens cannot bypass
the second factor for account or governance operations. Tokens expire; renew
the configured token when needed or refresh local credentials with npm login.
Environment Variables
License
MIT
Source: README.md at commit d061935
Tools
0Version history
3- v1.4.0LatestOct 19, 2026
- v1.3.0Oct 8, 2026
- v1.2.1Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts