Skip to main content
Glama
npm-search-mcp-server

npm-search-mcp-server

by btwiuse

npm-search MCP サーバー

鍛冶屋のバッジ

npm searchコマンドを呼び出して npm パッケージを検索できるモデル コンテキスト プロトコル サーバー。

利用可能なツール

  • search_npm_packages - npm パッケージを検索します。

    • 必要な引数:

      • query (文字列): 検索クエリ。

クロードのスクリーンショット

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop の npm-search を自動的にインストールするには:

npx -y @smithery/cli install npm-search-mcp-server --client claude

NPMの使用(推奨)

あるいは、npm 経由でnpm-search-mcp-serverをインストールすることもできます。

npm install -g npm-search-mcp-server

インストール後、次のコマンドを使用してコマンドとして実行できます。

npm-search-mcp-server

UVの使用

uvを使用する場合、特別なインストールは必要ありません。uvx uvx使用してnpm-search-mcp-serverを直接実行します。

Related MCP server: mcp-server-npm

構成

Claude.app 用に設定する

Claude 設定に追加:

"mcpServers": {
  "npm-search": {
    "command": "npx",
    "args": ["-y", "npm-search-mcp-server"]
  }
}
"mcpServers": {
  "npm-search": {
    "command": "uvx",
    "args": ["npm-search-mcp-server"]
  }
}

Zed用の設定

Zed のsettings.jsonに追加します:

"context_servers": {
  "npm-search-mcp-server": {
    "command": "npx",
    "args": ["-y", "npm-search-mcp-server"]
  }
},
"context_servers": [
  "npm-search-mcp-server": {
    "command": "uvx",
    "args": ["npm-search-mcp-server"]
  }
],

やり取りの例

  1. npm パッケージを検索:

{
  "name": "search_npm_packages",
  "arguments": {
    "query": "express"
  }
}

応答:

{
  "results": [
    {
      "name": "express",
      "description": "Fast, unopinionated, minimalist web framework",
      "version": "4.17.1",
      "author": "TJ Holowaychuk",
      "license": "MIT"
    },
    ...
  ]
}

デバッグ

MCPインスペクタを使用してサーバーをデバッグできます。UVXインストールの場合:

npx @modelcontextprotocol/inspector npx -y npm-search-mcp-server

または、パッケージを特定のディレクトリにインストールした場合や、そのディレクトリで開発している場合は、次のようにします。

cd path/to/servers/src/npm-search
npx @modelcontextprotocol/inspector uv run npm-search-mcp-server

クロードへの質問例

  1. 「npmでExpressパッケージを検索」

  2. 「Reactに関連するパッケージを見つける」

  3. 「Web開発用のnpmパッケージを表示」

建てる

Dockerビルド:

cd src/npm-search
docker build -t mcp/npm-search .

貢献

npm-search-mcp-server の拡張と改善のための貢献を歓迎します。npm 関連の新しいツールの追加、既存の機能の強化、ドキュメントの改善など、皆様からのご意見は大変貴重です。

他の MCP サーバーと実装パターンの例については、https: //github.com/modelcontextprotocol/serversを参照してください。

プルリクエストを歓迎します。npm-search-mcp-server をさらに強力で便利なものにするために、新しいアイデア、バグ修正、機能強化などをお気軽にご提供ください。

ライセンス

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

Available Tools

1 tool
search_npm_packagesC

Search for npm packages

Inputs: query (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The name 'search_npm_packages' follows a clear verb_noun pattern.

    Tool Count2/5

    One tool is too few for a server named 'npm-search-mcp-server', which suggests a broader npm-related scope. A single search tool feels thin and incomplete for interacting with npm packages beyond basic searches.

    Completeness2/5

    The tool surface is severely incomplete for npm package management. It only provides search functionality, lacking essential operations like getting package details, checking versions, or managing dependencies, which are core to the domain.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers