
Npm
io.github.rog0x由 GitHub 账号 rog0x 发布v1.0.1更新于 Oct 24, 2026
npm package search, audit, bundle analysis for AI agents
概览
本地 MCP 服务器,让助手搜索 npm 仓库、查看包信息、审计依赖并比较打包体积。
- 可以做什么
- 按关键词搜索 npm 仓库,返回名称、描述、版本、周下载量和最后发布时间
- 查询指定包的已发布版本、依赖、维护者、仓库地址、许可证、体积及质量/热度/维护评分
- 分析 package.json,找出过时或已弃用的依赖,并通过 npm 批量安全公告接口检查已知漏洞
- 借助 Bundlephobia 接口估算压缩后与 gzip 后的打包体积、依赖数量和 tree-shaking 支持情况
- 从下载量、体积、运行时依赖数、发布时间、GitHub 星标和许可证等维度并排比较多个包
- 适用场景
- 适合在多个 npm 包之间做选型、判断某个依赖是否仍在维护或存在漏洞,以及评估给 Node.js 项目引入某个库的体积代价时使用。
- 运行要求
- 以本地 stdio 进程运行,从 npm 包 @rog0x/mcp-npm-tools 安装;需要 Node.js,并执行 npm install 与 npm run build 构建,再配置指向构建产物 index.js 的启动命令。需要能访问 npm 仓库、npm 批量安全公告接口和 Bundlephobia 接口。未声明任何账号、API 密钥或环境变量。
安装
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
Usage with Claude Desktop
Add to your claude_desktop_config.json:
Development
License
MIT
来源:README.md,提交 16cb695
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分