Skip to main content
Glama

NPMセンチネルMCP

Githubワークフロー npmバージョン npm-月 npm-合計 鍛冶屋のバッジ DeepWikiに質問する 寄付する

AIを活用し、NPMパッケージ分析に革命を起こす強力なモデルコンテキストプロトコル(MCP)サーバーです。ClaudeおよびAnthropic AIとの統合が可能で、パッケージのセキュリティ、依存関係、パフォーマンスに関するリアルタイムのインテリジェンスを提供します。このMCPサーバーは、瞬時のインサイトとスマートな分析を提供することで、npmエコシステムを保護・最適化し、最新の開発ワークフローにおけるパッケージ管理の意思決定をより迅速かつ安全にします。

特徴

  • バージョン分析と追跡

  • 依存関係の分析とマッピング

  • セキュリティ脆弱性スキャン

  • パッケージ品質メトリクス

  • ダウンロードの傾向と統計

  • TypeScriptサポート検証

  • パッケージサイズ分析

  • メンテナンスメトリクス

  • リアルタイムパッケージ比較

  • 標準化されたエラー処理とMCP応答形式

  • パフォーマンスの向上と API レート制限管理のための効率的なキャッシュ

  • Zodを使用した厳密なスキーマ検証と型安全性

注: サーバーは、MCP 統合を通じて AI 支援分析を提供します。

Related MCP server: NPM Helper MCP

インストール

VS Codeにインストール

VS Code MCP 設定ファイルに以下を追加してください。詳しくはVS Code MCP ドキュメントをご覧ください。

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

ドッカー

建てる

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

使用法

/projectsにディレクトリをマウントして Docker を使用して MCP サーバーを実行できます。

{
  "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"
      ]
    }
  }
}

複数のディレクトリの場合:

{
  "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"
      ]
    }
  }
}

注意: 適切なアクセスのために、マウントされたすべてのディレクトリは/projectsの下にある必要があります。

Claude Desktopでの使用

これをclaude_desktop_config.jsonに追加します:

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

構成ファイルの場所:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: (Claude for Desktop は現時点では Linux を公式にサポートしていません)

NPX

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

API

サーバーはモデルコンテキストプロトコルを介してツールを公開します。すべてのツールは標準化されたレスポンス形式に準拠しています。

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

リソース

  • npm://registry : NPM レジストリ インターフェース

  • npm://security : セキュリティ分析インターフェース

  • npm://metrics : パッケージメトリクスインターフェース

サーバーリソース

サーバーは、MCP GetResource要求を介してアクセスできる次の情報リソースも提供します。

  • doc://server/readme :

    • 説明: この NPM Sentinel MCP サーバーのメインのREADME.mdファイルの内容を取得します。

    • MIMEタイプ: text/markdown

  • doc://mcp/specification :

    • 説明: 包括的なモデル コンテキスト プロトコル仕様を提供するllms-full.txtコンテンツを取得します。

    • MIMEタイプ: text/plain

ツール

npmバージョン

  • パッケージのすべてのバージョンを取得する

  • 入力: packages (文字列[])

  • 戻り値: リリース日を含むバージョン履歴

npm最新

  • 最新バージョン情報を取得する

  • 入力: packages (文字列[])

  • 戻り値: 最新バージョンの詳細と変更ログ

npmDeps

  • パッケージの依存関係を分析する

  • 入力: packages (文字列[])

  • 戻り値: 完全な依存関係ツリー分析

npmTypes

  • TypeScriptのサポートを確認する

  • 入力: packages (文字列[])

  • 戻り値: TypeScript 互換性ステータス

npmサイズ

  • パッケージサイズを分析する

  • 入力: packages (文字列[])

  • 戻り値: バンドルサイズとインポートコストの分析

npmの脆弱性

  • セキュリティの脆弱性をスキャンする

  • 入力: packages (文字列[])

  • 戻り値: セキュリティ勧告と深刻度評価

npmトレンド

  • ダウンロードトレンドを取得する

  • 入力:

    • packages (文字列[])

    • period (「先週」 | 「先月」 | 「昨年」)

  • 戻り値: ダウンロード統計の推移

npm比較

  • 複数のパッケージを比較する

  • 入力: packages (文字列[])

  • 戻り値: 詳細な比較指標

npmメンテナー

  • パッケージメンテナーを取得する

  • 入力: packages (文字列[])

  • 戻り値: メンテナーの情報と活動

npmスコア

  • パッケージ品質スコアを取得する

  • 入力: packages (文字列[])

  • 返品: 包括的な品質指標

npmパッケージReadme

  • パッケージのREADMEを取得する

  • 入力: packages (文字列[])

  • 戻り値: フォーマットされたREADMEコンテンツ

npm検索

  • パッケージを検索

  • 入力:

    • query (文字列)

    • limit (数値、オプション)

  • 戻り値: メタデータと一致するパッケージ

npmライセンス互換性

  • ライセンスの互換性を確認する

  • 入力: packages (文字列[])

  • 戻り値: ライセンス分析と互換性情報

npmリポジトリ統計

  • リポジトリの統計情報を取得する

  • 入力: packages (文字列[])

  • 戻り値: GitHub/リポジトリのメトリクス

npm非推奨

  • 廃止予定の確認

  • 入力: packages (文字列[])

  • 返品: 非推奨ステータスと代替品

npm変更ログ分析

  • パッケージの変更ログを分析する

  • 入力: packages (文字列[])

  • 戻り値: 変更ログの概要と影響分析

npmの代替

  • パッケージの代替品を探す

  • 入力: packages (文字列[])

  • 返品: 比較した類似パッケージ

npm品質

  • パッケージの品質を評価する

  • 入力: packages (文字列[])

  • 返品: 品質指標とスコア

npmメンテナンス

  • メンテナンス状況を確認する

  • 入力: packages (文字列[])

  • 返品: メンテナンス活動指標

建てる

# Build with npm
npm install
npm run build

ライセンス

このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。


MIT ©ネクズス

Available Tools

19 tools
npmAlternativesB
Read-only
Inspect

Find alternative packages with similar functionality

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmChangelogAnalysisC
Read-onlyIdempotent
Inspect

Analyze changelog and release history of packages

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmCompareB
Read-onlyIdempotent
Inspect

Compare multiple NPM packages based on various metrics

Inputs: packages (required), ignoreCache. Returns: message, results, queryPackages

npmDeprecatedC
Read-onlyIdempotent
Inspect

Check if packages are deprecated

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmDepsA
Read-onlyIdempotent
Inspect

Analyze dependencies and devDependencies of an NPM package

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmLatestB
Read-onlyIdempotent
Inspect

Get the latest version and changelog of an NPM package

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmLicenseCompatibilityB
Read-onlyIdempotent
Inspect

Check license compatibility between multiple packages

Inputs: packages (required), ignoreCache. Returns: compatibility, licenseDetails, packagesAnalyzed

npmMaintainersB
Read-onlyIdempotent
Inspect

Get maintainers information for NPM packages

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmMaintenanceB
Read-onlyIdempotent
Inspect

Analyze package maintenance metrics

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmPackageReadmeB
Read-onlyIdempotent
Inspect

Get the README content for NPM packages

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmQualityC
Read-onlyIdempotent
Inspect

Analyze package quality metrics

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmRepoStatsB
Read-onlyIdempotent
Inspect

Get repository statistics for NPM packages

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmScoreA
Read-onlyIdempotent
Inspect

Get consolidated package score based on quality, maintenance, and popularity metrics

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmSearchA
Read-only
Inspect

Search for NPM packages with optional limit

Inputs: query (required), limit, ignoreCache. Returns: query, message, results, limitUsed, +2 more

npmSizeA
Read-onlyIdempotent
Inspect

Get package size information including dependencies and bundle size

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmTrendsA
Read-onlyIdempotent
Inspect

Get download trends and popularity metrics for packages

Inputs: packages (required), period, ignoreCache. Returns: message, results, summary

npmTypesA
Read-onlyIdempotent
Inspect

Check TypeScript types availability and version for a package

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmVersionsA
Read-onlyIdempotent
Inspect

Get all available versions of an NPM package

Inputs: packages (required), ignoreCache. Returns: message, results, summary

npmVulnerabilitiesC
Read-only
Inspect

Check for known vulnerabilities in packages

Inputs: packages (required), ignoreCache. Returns: message, results, summary

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 19 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of NPM packages (e.g., versions, dependencies, vulnerabilities, trends). There is no overlap; even similar-sounding tools like npmQuality, npmMaintenance, and npmScore have clearly separated purposes.

    Naming Consistency5/5

    All tools follow a consistent camelCase pattern starting with 'npm' followed by a descriptive noun or noun phrase (e.g., npmVersions, npmChangelogAnalysis). The naming is predictable and uniform.

    Tool Count4/5

    With 19 tools, the set is slightly above the typical well-scoped range of 3-15, but each tool serves a specific and valuable function within the domain of NPM package analysis, making the count reasonable.

    Completeness4/5

    The tools cover a wide range of NPM package metrics and information (versions, dependencies, vulnerabilities, trends, license, etc.), leaving few gaps (e.g., dependents or reverse dependencies missing). The coverage is comprehensive for the server's purpose.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      D
      quality
      D
      maintenance
      A Model Context Protocol server that allows AI models to fetch detailed information about npm packages and discover popular packages in the npm ecosystem.
      1
      1
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides tools for NPM package management, including dependency searching, updates, conflict resolution, and version management to help AI assistants safely upgrade project dependencies.
      46 npm
      8
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      A Model Context Protocol server that enables language models to interact with npm services securely, providing tools for package management, project initialization, script execution, and security auditing.
      11
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for searching, inspecting, and evaluating NPM packages through health scoring and license risk assessments. It provides comprehensive package analysis including maintenance status, popularity trends, and security vulnerability reports to help users make informed dependency decisions.
      4
      MIT