SL

snyk-labs/mcp-server-npm-goof

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

7 stars 18 forks 품질 56 트렌드 15NOASSERTION

NPM JavaScript 패키지 관리 도구에 대한 MCP 서버

개요

Npm 패키지 정보를 fetch하는 도구를 제공하는 모델 Context Protocol 서버. : 이 저장소는 의도적으로 취약합니다. MCP Server 보안을 위한 교육 도구로 사용됩니다. 다음과 같이 에이전트 MCP 구성에서 MCP Server 정의: - MCP를 사용하여 getNpmPackageInfo 도구를 노출 - 원격 연결을위한 HTTP (Streamable HTTP) 운송 - 구조 패키지 정보를 반환 - 최첨단 연결을위한 세션 관리 지원 서버는 기본적으로 포트 3000에 들을 수 있습니다. 포트 환경 변수 설정으로 포트를 사용자 지정할 수 있습니다: 이 서버는 IDE 통합 및 AI 에이전트와 함께 사용하도록 설계되었습니다. 매개변수: - packageName (문자): npm 패키지의 이름 반환: - packageInfo (object): 패키지에 대한 모든 사용 가능한 정보를 포함하는 JSON 객체

개요(AI 번역)

Npm 패키지 정보를 fetch하는 도구를 제공하는 모델 Context Protocol 서버.

보안 면책: 이 저장소는 MCP 서버 보안을 위한 교육 도구로 사용하도록 의도적으로 취약합니다.

MCP Server를 사용하는 방법

다음과 같이 에이전트 MCP 구성에서 MCP Server 정의:

특징

  • MCP를 사용하여 getNpmPackageInfo 공구 노출
  • 원격 연결을 위한 HTTP (Streamable HTTP) 수송을 사용하십시오
  • 반품 구조 패키지 정보
  • Stateful 연결을 위한 세션 관리 지원

설치

사용법

서버 시작:

서버는 기본적으로 포트 3000에 들을 수 있습니다. PORT 환경변수를 설정하여 포트를 사용자 정의할 수 있습니다:

이 서버는 IDE 통합 및 AI 에이전트와 함께 사용하도록 설계되었습니다.

# # # 도구 : getNpmPackageInfo

모수:

  • packageName (문자): npm 패키지의 이름

반환:

  • packageInfo (object): 패키지에 대한 모든 사용 가능한 정보를 포함하는 JSON 객체

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

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 MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →