The NPM MCP Server provides tools to fetch and analyze npm package information:
- Search npm packages: Fetch detailed information about specific packages (name, version, description, author, homepage, repository, dependencies)
- List popular packages: Retrieve the 10 most popular npm packages with their names, descriptions, and versions
- Integrate with AI workflows: Support for package comparison, dependency analysis, and finding alternatives
- Development modes: Supports both production (
npm start
) and development (npm run dev
) environments
Allows retrieval of Lodash package information as part of the popular packages resource functionality.
Provides tools for searching and retrieving detailed information about npm packages, including package metadata, version information, dependencies, and popularity rankings.
Enables access to React package information including version details, description, and repository data to support development decisions.
NPM MCP Server
This is a Model Context Protocol (MCP) server that provides functionality to fetch information about npm packages.
Features
- Package Search: Tool to fetch detailed information about npm packages
- Popular Packages: Resource to list the 10 most popular npm packages
Installation
Installing via Smithery
To install NPM MCP Server for Claude Desktop automatically via Smithery:
Installing Manually
Build
Running
For development:
Usage
The server exposes two main functionalities:
1. searchNpmPackage Tool
Fetches detailed information about a specific npm package. The tool returns comprehensive package information including:
- Package name
- Latest version
- Description
- Author information
- Homepage URL
- Repository URL
- Dependencies list
Example usage:
Example response:
2. popular-packages Resource
Lists the 10 most popular npm packages, sorted by popularity. Each package in the list includes:
- Package name
- Description
- Current version
Resource URI: npm://popular
Example response:
Integration with AI Models
This MCP server can be integrated with AI models to:
- Get package information before installation
- Compare different package versions
- Analyze dependencies
- Find popular alternatives
- Get quick package summaries
Technologies
- TypeScript
- Model Context Protocol SDK
- Node-fetch
- Zod
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.
Tools
A Model Context Protocol server that allows AI models to fetch detailed information about npm packages and discover popular packages in the npm ecosystem.
Related MCP Servers
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.Last updated -74JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server providing utility tools for development and testing, offering functionalities like personalized greetings, random card drawing, and datetime formatting with an extensible architecture.Last updated -195464TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI-powered analysis of NPM packages through multiple tools for security vulnerability scanning, dependency analysis, package comparison, and quality assessment.Last updated -195464TypeScriptMIT License
- -securityAlicense-qualityA 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.Last updated -4726JavaScriptMIT License