npm-search-mcp-server

by btwiuse

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 Server

A Model Context Protocol server that allows you to search for npm packages by calling the npm search command.

Available Tools

  • search_npm_packages - Search for npm packages.
    • Required arguments:
      • query (string): The search query.

Installation

Installing via Smithery

To install npm-search for Claude Desktop automatically via Smithery:

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

Alternatively you can install npm-search-mcp-server via npm:

npm install -g npm-search-mcp-server

After installation, you can run it as a command using:

npm-search-mcp-server

Using uv

When using uv no specific installation is needed. We will use uvx to directly run npm-search-mcp-server.

Configuration

Configure for Claude.app

Add to your Claude settings:

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

Configure for Zed

Add to your 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"] } ],

Example Interactions

  1. Search for npm packages:
{ "name": "search_npm_packages", "arguments": { "query": "express" } }

Response:

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

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

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

Or if you've installed the package in a specific directory or are developing on it:

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

Examples of Questions for Claude

  1. "Search for express package on npm"
  2. "Find packages related to react"
  3. "Show me npm packages for web development"

Build

Docker build:

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

Contributing

We encourage contributions to help expand and improve npm-search-mcp-server. Whether you want to add new npm-related tools, enhance existing functionality, or improve documentation, your input is valuable.

For examples of other MCP servers and implementation patterns, see: https://github.com/modelcontextprotocol/servers

Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make npm-search-mcp-server even more powerful and useful.

License

npm-search-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.

You must be authenticated.

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

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.

MCP server for searching npm packages

  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

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
                  Last updated -
                  2
                  448
                  Python
                  Apache 2.0
                • -
                  security
                  A
                  license
                  -
                  quality
                  This server is a server that installs other MCP servers for you. Install it, and you can ask Claude to install MCP servers hosted in npm or PyPi for you. Requires npx and uv to be installed for node and Python servers respectively.
                  Last updated -
                  2
                  4,321
                  624
                  JavaScript
                  MIT License
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  Easily find MCP servers using our MCP registry. Search with natural language.
                  Last updated -
                  1
                  3
                  JavaScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  MCP server for Mamont search engine
                  Last updated -
                  2
                  TypeScript
                  MIT License

                View all related MCP servers

                ID: yeb3luefvf