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 分