
Npm
io.github.mikusnuz由 GitHub 帳號 mikusnuz 發布v1.4.0更新於 Oct 24, 2026
MCP server for npm package management — publish, version, search, audit, and more
概覽
本機 MCP 伺服器,讓助手在編輯器內發佈、改版本、搜尋、稽核與管理 npm 套件及相依套件。
- 可以做什麼
- 發佈、暫存、改版本、標記棄用、取消發佈與打包,並可預覽即將發佈的內容
- 查詢登錄檔資訊:檢視、搜尋、問題追蹤、儲存庫、文件與版本差異
- 安裝、移除、更新、去重、清理、列出與解釋相依套件,查詢相依樹並審查安裝腳本
- 執行安全稽核、產生 SBOM、檢查環境健康與登錄檔連線
- 管理驗證與中繼資料:目前使用者、權杖、存取層級、擁有者、發佈標籤、個人檔案與設定
- 專案初始化:建立 package.json、編輯欄位、乾淨安裝、執行腳本、本機連結與快取管理
- 適用情境
- 適合在支援 MCP 的編輯器中開發函式庫或應用程式時,讓助手直接發佈版本、調整版號、檢查過期相依套件或執行安全稽核,不必切換到終端機。
- 執行需求
- 以本機程序在桌面執行;需要 Node.js 20 以上版本與 npm(可用 NPM_PATH 指定路徑)。驗證使用 NPM_TOKEN 中的 npm 細粒度存取權杖,或使用本機 npmrc 中既有的 npm login 憑證。暫存發佈需要較新的 npm 與 Node.js 版本。
安裝
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
來源:README.md,提交 d061935
工具
0版本歷史
3- v1.4.0最新Oct 19, 2026
- v1.3.0Oct 8, 2026
- v1.2.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分