Npm Mcp

io.github.alisaitteke由 GitHub 帳號 alisaitteke 發布v0.0.3更新於 Oct 24, 2026

MCP server for npm package management, security analysis, and compatibility checking

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

概覽

AI 產生的概覽

讓助理搜尋 npm 套件、檢查其安全性與品質、比較版本,並在建議安裝前驗證相容性。

可以做什麼
這是一個非官方、社群維護的 npm registry MCP 伺服器。它提供工具來依排名與評分搜尋套件,取得版本、相依性、下載量和棄用狀態等詳細資料,執行弱點檢查並提供安全版本建議,比較版本以找出破壞性變更與 semver 差異,並檢查 peer 相依性或版本衝突。它也能分析套件能力(ESM/CJS、TypeScript、平台支援、建置工具)、打包體積、相似套件,並驗證 npx 指令。
適用情境
適合在助理協助挑選、升級或審查 JavaScript 相依性時使用,把 registry 資訊、安全性與相容性檢查以及替代方案集中取得,不必手動逐一查詢。也適合在執行 npx 指令前先確認一次。
執行需求
透過 stdio 在本機執行,通常以 npx 啟動套件 @alisaitteke/npm-mcp,或以 npm 全域安裝後用 npm-mcp 啟動。需要 Node.js 以及連線至 npm registry 的網路。未宣告任何帳號、API 金鑰、環境變數或標頭。
安裝前請注意
此伺服器為非官方專案,與 npm, Inc. 無關聯,也未獲其認可。它讀取公開的 registry 資料,因此查詢內容與套件名稱會經由網路傳送至 npm registry。其檢查結果僅供參考:弱點、品質與相容性結論在據此行動前應自行核實,不能取代你自己執行稽核或測試。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

[NPM MCP Banner]

NPM MCP

Model Context Protocol server for npm registry

Search packages, check security, compare versions, and validate compatibility. Use it from Cursor AI or Claude Desktop.

Note: This is an unofficial, community-driven MCP server and is not affiliated with or endorsed by npm, Inc.

Features

  • Auto-Security — AI automatically checks packages before suggesting install (no user action!)
  • Capabilities Analysis — ESM/CJS, TypeScript, Platform support (Node/Browser/Deno), Build tools
  • Quick Start Generator — Ready-to-use code examples for any package
  • Package Comparison — Compare alternatives side-by-side (features, size, popularity)
  • Bundle Size Analysis — Minified/gzipped sizes, tree-shaking, impact on your bundle
  • Similar Packages — Find alternatives and similar packages
  • Search — Find packages with ranking and scores
  • Details — Versions, dependencies, download stats, deprecation status
  • Security — Vulnerability check and safe version tips
  • Compatibility — Peer dependency and version conflicts
  • Quality — Maintenance and community metrics
  • Version compare — Breaking changes and semver
  • NPX check — Validate npx commands before running

Install & use

With npx (recommended)

No global install. Add to Cursor or Claude config:

Cursor — ~/.cursor/mcp.json:

json
{  "mcpServers": {    "npm-registry-mcp": {      "command": "npx",      "args": ["@alisaitteke/npm-mcp"]    }  }}

Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "npm-registry-mcp": {      "command": "npx",      "args": ["@alisaitteke/npm-mcp"]    }  }}

Global install (optional)

bash
npm install -g @alisaitteke/npm-mcp

Then use "command": "npm-mcp" (no args) in the config above.

What you can ask

Once the server is connected, you can ask things like:

  • “Search for React state management libraries”
  • “Security audit for [email protected]”
  • “Is [email protected] compatible with my current deps?”
  • “Compare React 17 and 18”
  • “Quality check for date-fns”
  • “Is it safe to run npx create-next-app?”

License

MIT

Contributors

[Ali Sait Teke]
Ali Sait Teke

Creator & Maintainer

Thanks to everyone who helps improve this project!

[Contributors]

來源:README.md,提交 0c5624c

工具

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

版本歷史

1
  1. v0.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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