NPM Search
Search for npm packages
npm-search MCP Server
A Model Context Protocol server that allows you to search for npm packages by calling the npm search command.
Features:
- Search npm packages using the
npm searchcommand - Supports both stdio and HTTP (streamable-http) transport modes
- HTTP mode automatically enabled when
PORTenvironment variable is set - Structured logging with Pino
- Graceful shutdown handling
- Health check endpoint (
/health) - Session management for HTTP transport
Available Tools
search_npm_packages- Search for npm packages.- Required arguments:
query(string): The search query.
- Required arguments:

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
Using NPM (recommended)
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:
Using npm installation
"mcpServers": {
"npm-search": {
"command": "npx",
"args": ["-y", "npm-search-mcp-server"]
}
}
Using uvx
"mcpServers": {
"npm-search": {
"command": "uvx",
"args": ["npm-search-mcp-server"]
}
}
Configure for Zed
Add to your Zed settings.json:
Using npm installation
"context_servers": {
"npm-search-mcp-server": {
"command": "npx",
"args": ["-y", "npm-search-mcp-server"]
}
},
Using uvx
"context_servers": [
"npm-search-mcp-server": {
"command": "uvx",
"args": ["npm-search-mcp-server"]
}
],
Example Interactions
- 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
- "Search for express package on npm"
- "Find packages related to react"
- "Show me npm packages for web development"
Docker
The server can be run in a Docker container with HTTP transport support:
# Build the image
docker build -t mcp/npm-search .
# Run the container (default port 3009)
docker run -p 3009:3009 mcp/npm-search
# Run with custom port via environment variable
docker run -p 3009:3009 -e PORT=3009 mcp/npm-search
The Docker image uses HTTP transport when the PORT environment variable is set. The server exposes:
POST /mcp- Main MCP endpoint for tool calls and session initializationGET /mcp- SSE stream endpoint for streaming responses (requires session ID)DELETE /mcp- Session termination endpointGET /health- Health check endpoint with service status and active session count
For Docker Compose integration:
services:
npm-search-mcp:
build: .
ports:
- "3009:3009"
environment:
PORT: 3009
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.
संबंधित सर्वर
MCP SOP Server
An MCP server for accessing and searching Standard Operating Procedures (SOPs) with Italian language support.
Naver Map Direction MCP
Provides geographical and directional data from the Naver Map API.
Caltrain MCP Server
Provides real-time Caltrain schedule information using GTFS data.
MCP Lucene Server
MCP Lucene Server is a Model Context Protocol (MCP) server that exposes Apache Lucene's full-text search capabilities through a conversational interface. It allows AI assistants (like Claude) to help users search, index, and manage document collections without requiring technical knowledge of Lucene or search engines.
microCMS
A search server for the microCMS headless CMS, compatible with the Model Context Protocol (MCP).
MCP Web Search Server
A web search server powered by DuckDuckGo, no API key required.
Higress AI-Search MCP Server
Provides an AI search tool to enhance AI model responses with real-time search results from various search engines using the Higress ai-search feature.
mu-mcp
Query your local `mu` mail index for fast, structured mail search from MCP clients.
Ebook MCP Service
Access and search EPUB ebook collections using semantic vector search.
Serper MCP Server
Access Google Search results using the Serper API.
