NPM MCP Server logo

NPM MCP Server

by mateusribeirocampos

This is a Model Context Protocol (MCP) server that provides functionality to fetch information about npm packages. It offers tools to search for package details and list popular packages.

View on GitHub

Last updated: N/A

What is NPM MCP Server?

The NPM MCP Server is a Model Context Protocol server designed to fetch information about npm packages. It provides tools to search for specific packages and retrieve a list of the most popular ones.

How to use NPM MCP Server?

The server can be installed via Smithery or manually using npm. Once installed and running, it exposes two main functionalities: searchNpmPackage tool to fetch detailed information about a specific npm package and popular-packages resource to list the 10 most popular npm packages.

Key features of NPM MCP Server

  • Package Search: Fetch detailed information about npm packages

  • Popular Packages: List the 10 most popular npm packages

  • Integration with AI Models

  • Comprehensive package information

Use cases of NPM MCP Server

  • Get package information before installation

  • Compare different package versions

  • Analyze dependencies

  • Find popular alternatives

FAQ from NPM MCP Server

How do I install the server?

You can install it via Smithery using the provided command or manually using npm install.

How do I run the server?

Use 'npm start' to run the server. For development, use 'npm run dev'.

What information does the searchNpmPackage tool provide?

It returns comprehensive package information including package name, latest version, description, author information, homepage URL, repository URL, and dependencies list.

How do I access the list of popular packages?

The popular packages are available via the 'npm://popular' resource URI.

What technologies are used in this server?

The server is built using TypeScript, Model Context Protocol SDK, Node-fetch, and Zod.