Skip to main content
Glama

NPM MCP Server

NPM MCP Server

This is a Model Context Protocol (MCP) server that provides functionality to fetch information about npm packages.

Features

  1. Package Search: Tool to fetch detailed information about npm packages
  2. 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:

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

Installing Manually

npm install

Build

npm run build

Running

npm start

For development:

npm run dev

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:

const result = await server.tools.searchNpmPackage({ packageName: "react" });

Example response:

{ "name": "react", "version": "18.2.0", "description": "React is a JavaScript library for building user interfaces.", "author": "Meta Open Source", "homepage": "https://reactjs.org/", "repository": { "url": "https://github.com/facebook/react.git" }, "dependencies": { "loose-envify": "^1.1.0" } }

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:

[ { "name": "lodash", "description": "Lodash modular utilities", "version": "4.17.21" }, // ... more packages ]

Integration with AI Models

This MCP server can be integrated with AI models to:

  1. Get package information before installation
  2. Compare different package versions
  3. Analyze dependencies
  4. Find popular alternatives
  5. Get quick package summaries

Technologies

  • TypeScript
  • Model Context Protocol SDK
  • Node-fetch
  • Zod
Install Server
A
security – no known vulnerabilities
F
license - not found
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.

A Model Context Protocol server that allows AI models to fetch detailed information about npm packages and discover popular packages in the npm ecosystem.

  1. Features
    1. Installation
      1. Installing via Smithery
      2. Installing Manually
    2. Build
      1. Running
        1. Usage
          1. 1. searchNpmPackage Tool
          2. 2. popular-packages Resource
        2. Integration with AI Models
          1. Technologies

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A 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 -
              7
              4
              JavaScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A 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 -
              19
              546
              4
              TypeScript
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              A 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 -
              19
              546
              4
              TypeScript
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              A 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 -
              472
              6
              JavaScript
              MIT License
              • Linux
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/mateusribeirocampos/npm-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server