SL

snyk-labs/mcp-server-npm-goof

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

8 stars 12 forks 质量 56 趋势 24NOASSERTION

An MCP server for NPM JavaScript Package Management tools

概览

A Model Context Protocol server that provides a tool to fetch npm package information. : this repository is intentionally vulnerable, intended to be used as an educational tool for MCP Server security. Define the MCP Server in your Agent MCP configuration, as follows: - Exposes a getNpmPackageInfo tool using MCP - Uses HTTP (Streamable HTTP) transport for remote connections - Returns structured package information - Supports session management for stateful connections The server will start listening on port 3000 by default. You can customize the port by setting the PORT environment variable: This server is designed to be used with IDE integrations and AI agents that support the Model Context Protocol over HTTP. Parameters: - packageName (string): The name of the npm package to look up Returns: - packageInfo (object): JSON object containing all available information about the package

README

MCP Server for NPM Package Info

A Model Context Protocol server that provides a tool to fetch npm package information.

Security Disclaimer: this repository is intentionally vulnerable, intended to be used as an educational tool for MCP Server security.

How to use the MCP Server

Define the MCP Server in your Agent MCP configuration, as follows:

{
    "servers": {
        "npm-and-node-tools": {
            "type": "http",
            "url": "http://localhost:3500/mcp"
        }
    },
    "inputs": []
}

Features

  • Exposes a getNpmPackageInfo tool using MCP
  • Uses HTTP (Streamable HTTP) transport for remote connections
  • Returns structured package information
  • Supports session management for stateful connections

Installation

npm install

Usage

Start the server:

npm start

The server will start listening on port 3000 by default. You can customize the port by setting the PORT environment variable:

PORT=3500 npm start

This server is designed to be used with IDE integrations and AI agents that support the Model Context Protocol over HTTP.

Tool: getNpmPackageInfo

Parameters:

  • packageName (string): The name of the npm package to look up

Returns:

  • packageInfo (object): JSON object containing all available information about the package
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →