Npm

io.github.rog0x由 GitHub 帳號 rog0x 發布v1.0.1更新於 Oct 24, 2026

npm package search, audit, bundle analysis for AI agents

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理搜尋 npm 套件庫、檢視套件資訊、稽核相依套件並比較打包體積。

可以做什麼
  • 依關鍵字搜尋 npm 套件庫,回傳名稱、說明、版本、每週下載量與最後發佈時間
  • 查詢指定套件的已發佈版本、相依套件、維護者、儲存庫網址、授權條款、體積及品質/熱門度/維護評分
  • 分析 package.json,找出過期或已棄用的相依套件,並透過 npm 批次安全公告 API 檢查已知漏洞
  • 透過 Bundlephobia API 估算壓縮後與 gzip 後的打包體積、相依套件數量與 tree-shaking 支援情況
  • 從下載量、體積、執行時相依套件數、發佈時間、GitHub 星號與授權條款等面向並排比較多個套件
適用情境
適合在多個 npm 套件之間做選擇、判斷某個相依套件是否仍在維護或有漏洞,以及評估為 Node.js 專案引入某個套件所需付出的體積代價時使用。
執行需求
以本機 stdio 程序執行,從 npm 套件 @rog0x/mcp-npm-tools 安裝;需要 Node.js,並執行 npm install 與 npm run build 建置,再設定指向建置產物 index.js 的啟動指令。需要能連線 npm 套件庫、npm 批次安全公告 API 與 Bundlephobia API。未宣告任何帳號、API 金鑰或環境變數。
安裝前請注意
稽核與體積結果依賴第三方服務(npm 公告 API、Bundlephobia),套件名稱與 package.json 內容會傳送給這些服務。結果僅為參考性估算,不能取代安裝時的真實稽核。README 範例設定中的絕對本機路徑需要自行調整。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Npm,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-npm-tools

MCP server providing npm and Node.js package management tools for AI agents.

Tools

npm_search

Search the npm registry for packages by keyword. Returns name, description, version, weekly downloads, and last publish date.

npm_package_info

Get detailed information about a specific npm package: all published versions, dependencies, maintainers, repository URL, license, unpacked size, npm quality/popularity/maintenance scores, and weekly download count.

npm_dependency_audit

Analyze a package.json file to find outdated dependencies (compares pinned/range version against latest), deprecated packages, and known security vulnerabilities via the npm bulk advisory API.

npm_bundle_size

Estimate the bundle size of an npm package using the Bundlephobia API. Returns minified size, gzipped size, dependency count, and tree-shaking support indicators.

npm_compare_packages

Compare two or more packages side by side across multiple dimensions: weekly downloads, bundle size, number of runtime dependencies, last publish date, GitHub stars, and license.

Setup

bash
npm installnpm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "npm-tools": {      "command": "node",      "args": ["D:/products/mcp-servers/mcp-npm-tools/dist/index.js"]    }  }}

Development

bash
npm run build   # compile TypeScriptnpm start       # run the server

License

MIT

來源:README.md,提交 16cb695

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分