NPM MCP Server

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.

Integrations

  • 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 服务器

这是一个模型上下文协议 (MCP) 服务器,提供获取有关 npm 包的信息的功能。

特征

  1. 软件包搜索:获取有关 npm 软件包详细信息的工具
  2. 热门软件包:列出 10 个最热门 npm 软件包的资源

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 NPM MCP 服务器:

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

手动安装

npm install

建造

npm run build

跑步

npm start

对于开发:

npm run dev

用法

该服务器公开两个主要功能:

1. searchNpmPackage 工具

获取特定 npm 包的详细信息。该工具返回全面的包信息,包括:

  • 包裹名字
  • 最新版本
  • 描述
  • 作者信息
  • 主页网址
  • 存储库 URL
  • 依赖项列表

使用示例:

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

响应示例:

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

列出 10 个最受欢迎的 npm 软件包,按受欢迎程度排序。列表中的每个软件包都包含:

  • 包裹名字
  • 描述
  • 当前版本

资源 URI: npm://popular

响应示例:

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

与人工智能模型的集成

该 MCP 服务器可以与 AI 模型集成,以:

  1. 安装前获取软件包信息
  2. 比较不同的包版本
  3. 分析依赖关系
  4. 寻找热门替代品
  5. 获取快速包裹摘要

技术

  • TypeScript
  • 模型上下文协议 SDK
  • 节点获取
  • 佐德

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

模型上下文协议服务器允许 AI 模型获取有关 npm 包的详细信息并发现 npm 生态系统中的流行包。

  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
            ID: v1z5scqiwi