npm-search-mcp-server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows searching for npm packages by executing the npm search command, enabling users to find and explore available packages in the npm registry with their name, description, version, author, and license information.

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を直接実行します。

構成

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 ファイルをご覧ください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

npm パッケージを検索するための MCP サーバー

  1. Available Tools
    1. Installation
      1. Installing via Smithery
      2. Using NPM (recommended)
      3. Using uv
    2. Configuration
      1. Configure for Claude.app
      2. Configure for Zed
    3. Example Interactions
      1. Debugging
        1. Examples of Questions for Claude
          1. Build
            1. Contributing
              1. License
                ID: yeb3luefvf