ai.smithery/Nekzus-npm-sentinel-mcp

编码与调试

by nekzus

为 NPM packages 提供 AI 驱动的实时分析与情报,涵盖 security、dependencies、风险与质量评估。

什么是 ai.smithery/Nekzus-npm-sentinel-mcp

为 NPM packages 提供 AI 驱动的实时分析与情报,涵盖 security、dependencies、风险与质量评估。

README

NPM Sentinel MCP

<div align="center">

smithery badge Github Workflow npm version npm-month npm-total Docker Hub Ask DeepWiki Donate

</div>

A powerful Model Context Protocol (MCP) server that revolutionizes NPM package analysis through AI. Built to integrate with Claude and Anthropic AI, it provides real-time intelligence on package security, dependencies, and performance. This MCP server delivers instant insights and smart analysis to safeguard and optimize your npm ecosystem, making package management decisions faster and safer for modern development workflows.

Features

  • Version analysis and tracking
  • Dependency analysis and mapping
  • Advanced Security Scanning: Recursive dependency checks, ecosystem awareness (e.g., React), and accurate version resolution.
  • Strict Input Validation: Protection against Path Traversal, SSRF, and Command Injection via rigorous input sanitization.
  • Package quality metrics
  • Download trends and statistics
  • TypeScript support verification
  • Package size analysis
  • Maintenance metrics
  • Real-time package comparisons
  • Standardized error handling and MCP response formats
  • Efficient caching for improved performance and API rate limit management
  • Rigorous schema validation and type safety using Zod

Note: The server provides AI-assisted analysis through MCP integration.

Caching and Invalidation

To ensure data accuracy while maintaining performance, the server implements robust caching strategies:

  • Automatic Invalidation: The cache is automatically invalidated whenever pnpm-lock.yaml, package-lock.json, or yarn.lock changes in your workspace. This ensures you always get fresh data after installing or updating dependencies.
  • Force Refresh: All tools accept an optional ignoreCache: true parameter to bypass the cache and force a fresh lookup from the registry.

Example Usage (JSON-RPC)

When calling a tool, simply include ignoreCache: true in the arguments:

json
{
  "name": "npmVersions",
  "arguments": {
    "packages": ["react"],
    "ignoreCache": true
  }
}

Installation

Migration to HTTP Streamable

This MCP server now supports both STDIO and HTTP streamable transport. Your existing STDIO configuration will continue to work without changes.

New capabilities:

  • HTTP streamable transport via Smithery.ai
  • Enhanced scalability and performance
  • Interactive testing playground

Development commands:

bash
# Development server with playground
npm run dev

# Build for HTTP
npm run build:http

# Start HTTP server
npm run start:http

Install in VS Code

<img alt="Install in VS Code (npx)" src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20NPM%20Sentinel%20MCP&color=0098FF"> <img alt="Install in VS Code Insiders (npx)" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20NPM%20Sentinel%20MCP&color=24bfa5">

Add this to your VS Code MCP config file. See VS Code MCP docs for more info.

json
{
  "servers": {
    "npm-sentinel": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@nekzus/mcp-server@latest"]
    }
  }
}

Smithery.ai Deployment (HTTP Streamable)

This MCP server now supports HTTP streamable transport through Smithery.ai for enhanced scalability and performance. You can deploy it directly on Smithery.ai: Benefits of HTTP deployment:

  • Scalable: Handles multiple concurrent connections
  • Streamable: Real-time streaming responses
  • Managed: Automatic deployment and monitoring
  • Backward Compatible: Still supports STDIO for local development
  • Interactive Testing: Built-in playground for testing tools

Configuration for Smithery.ai:

json
{
  "mcpServers": {
    "npm-sentinel": {
      "type": "http",
      "url": "https://smithery.ai/server/@Nekzus/npm-sentinel-mcp"
    }
  }
}

Configuration

The server supports the following configuration options:

Environment VariableCLI ArgumentDefaultDescription
NPM_REGISTRY_URLconfig.NPM_REGISTRY_URLhttps://registry.npmjs.orgURL of the NPM registry to use for all requests

HTTP Deployment (Smithery/Docker)

When deploying via Smithery or Docker, you can configure these options in your configuration file:

json
{
  "mcpServers": {
    "npm-sentinel": {
      "type": "http",
      "url": "https://smithery.ai/server/@Nekzus/npm-sentinel-mcp",
      "config": {
        "NPM_REGISTRY_URL": "https://registry.npmjs.org"
      }
    }
  }
}

Docker

Build

bash
# Build the Docker image
docker build -t nekzus/npm-sentinel-mcp .

Usage

You can run the MCP server using Docker with directory mounting to /projects:

json
{
  "mcpServers": {
    "npm-sentinel-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-w", "/projects",
        "--mount", "type=bind,src=${PWD},dst=/projects",
        "nekzus/npm-sentinel-mcp",
        "node",
        "dist/index.js"
      ]
    }
  }
}

For multiple directories:

json
{
  "mcpServers": {
    "npm-sentinel-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-w", "/projects",
        "--mount", "type=bind,src=/path/to/workspace,dst=/projects/workspace",
        "--mount", "type=bind,src=/path/to/other/dir,dst=/projects/other/dir,ro",
        "nekzus/npm-sentinel-mcp",
        "node",
        "dist/index.js"
      ]
    }
  }
}

Note: All mounted directories must be under /projects for proper access.

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "npmsentinel": {
      "command": "npx",
      "args": ["-y", "@nekzus/mcp-server@latest"]
    }
  }
}

Configuration file locations:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: (Claude for Desktop does not officially support Linux at this time)

NPX

<!-- [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.png)](cursor://anysphere.cursor-deeplink/mcp/install?name=npm-sentinel-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBuZWt6dXMvbWNwLXNlcnZlckBsYXRlc3QiXX0=) -->
json
{
  "mcpServers": {
    "npm-sentinel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@nekzus/mcp-server@latest"
      ]
    }
  }
}

API

The server exposes its tools via the Model Context Protocol. All tools adhere to a standardized response format:

json
{
  "content": [
    {
      "type": "text",
      "text": "string",
      "isError": boolean // Optional
    }
    // ... more content items if necessary
  ]
}

Resources

  • npm://registry: NPM Registry interface
  • npm://security: Security analysis interface
  • npm://metrics: Package metrics interface

Server Resources

The server also provides the following informational resources accessible via MCP GetResource requests:

  • doc://server/readme:
    • Description: Retrieves the main README.md file content for this NPM Sentinel MCP server.
    • MIME Type: text/markdown
  • doc://mcp/specification:
    • Description: Retrieves the llms-full.txt content, providing the comprehensive Model Context Protocol specification.
    • MIME Type: text/plain

Tools

npmVersions

  • Get all versions of a package
  • Input: packages (string[])
  • Returns: Version history with release dates

npmLatest

  • Get latest version information
  • Input: packages (string[])
  • Returns: Latest version details and changelog

npmDeps

  • Analyze package dependencies
  • Input: packages (string[])
  • Returns: Complete dependency tree analysis including direct dependencies and full transitive graph (count and explicit flatten list) mapping through deps.dev.

npmTypes

  • Check TypeScript support
  • Input: packages (string[])
  • Returns: TypeScript compatibility status

npmSize

  • Analyze package size
  • Input: packages (string[])
  • Returns: Bundle size and import cost analysis

npmVulnerabilities

  • Scan for security vulnerabilities
  • Features:
    • Instant Transitive Scanning: Powered by Google's deps.dev API to resolve massive dependency trees (e.g. Next.js, Astro) in a single request, bypassing deep recursion limitations.
    • Ecosystem Awareness: Automatically scans related packages efficiently.
    • Rich Reports: Includes CVE IDs and full summaries from OSV.dev.
  • Input: packages (string[])
  • Returns: Detailed security advisories, CVEs, and severity ratings

npmTrends

  • Get download trends
  • Input:
    • packages (string[])
    • period ("last-week" | "last-month" | "last-year")
  • Returns: Download statistics over time

npmCompare

  • Compare multiple packages
  • Input: packages (string[])
  • Returns: Detailed comparison metrics

npmMaintainers

  • Get package maintainers
  • Input: packages (string[])
  • Returns: Maintainer information and activity

npmScore

  • Get package quality score
  • Input: packages (string[])
  • Returns: Comprehensive quality metrics

npmPackageReadme

  • Get package README
  • Input: packages (string[])
  • Returns: Formatted README content

npmSearch

  • Search for packages
  • Input:
    • query (string)
    • limit (number, optional)
  • Returns: Matching packages with metadata

npmLicenseCompatibility

  • Check license compatibility
  • Input: packages (string[])
  • Returns: License analysis and compatibility info

npmRepoStats

  • Get repository statistics
  • Input: packages (string[])
  • Returns: GitHub/repository metrics

npmDeprecated

  • Check for deprecation
  • Input: packages (string[])
  • Returns: Deprecation status and alternatives

npmChangelogAnalysis

  • Analyze package changelogs
  • Input: packages (string[])
  • Returns: Changelog summaries and impact analysis

npmAlternatives

  • Find package alternatives
  • Input: packages (string[])
  • Returns: Similar packages with comparisons

npmQuality

  • Assess package quality
  • Input: packages (string[])
  • Returns: Quality metrics and scores

npmMaintenance

  • Check maintenance status
  • Input: packages (string[])
  • Returns: Maintenance activity metrics

Build

bash
# Install dependencies
npm install

# Build for STDIO (traditional)
npm run build:stdio

# Build for HTTP (Smithery)
npm run build:http

# Development server
npm run dev

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.


MIT © nekzus

常见问题

ai.smithery/Nekzus-npm-sentinel-mcp 是什么?

为 NPM packages 提供 AI 驱动的实时分析与情报,涵盖 security、dependencies、风险与质量评估。

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描111.8k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描111.8k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描111.8k

相关 MCP Server

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
83.1k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
51.8k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
46.2k

评论