MCP ExplorerExplorer

Mateusribeirocampos Npm Mcp Server

@MCP-Mirroron 22 days ago
1 MIT
FreeCommunity
AI Systems
Mirror of https://github.com/mateusribeirocampos/npm-mcp-server

Overview

What is Mateusribeirocampos Npm Mcp Server

mateusribeirocampos_npm-mcp-server is a Model Context Protocol (MCP) server designed to fetch and provide detailed information about npm packages.

Use cases

Use cases for mateusribeirocampos_npm-mcp-server include: 1) Developers seeking detailed information about npm packages for integration into their projects, and 2) Applications that require a list of popular npm packages for recommendations or analytics.

How to use

To use the mateusribeirocampos_npm-mcp-server, you can install it via Smithery using the command ‘npx -y @smithery/cli install @mateusribeirocampos/npm-mcp-server --client claude’ or manually with ‘npm install’. After installation, run the server with ‘npm start’. You can utilize its functionalities by calling the searchNpmPackage tool or accessing the popular-packages resource.

Key features

Key features of mateusribeirocampos_npm-mcp-server include: 1) Package Search - fetches detailed information about specific npm packages, and 2) Popular Packages - lists the 10 most popular npm packages.

Where to use

mateusribeirocampos_npm-mcp-server can be used in software development environments where npm package management is essential, particularly for developers needing quick access to package information.

Content

NPM MCP Server

smithery badge

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"
  }
}

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:

  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

Tools

No tools

Comments