SL

snyk-labs/mcp-server-nodejs-api-docs

Developer tools

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

10 stars 5 forks 품질 61 트렌드 26NOASSERTION

MCP Server for Node.js API 문서

개요

이 프로젝트는 공식 Node.js API 문서에 대한 액세스를 제공하는 Model Context Protocol (MCP) 서버를 구현합니다. nodejs.org에서 문서를 꺼내 MCP 도구를 통해 노출합니다. * 최신 Node.js API 문서. * 특정 모듈, 클래스, 또는 방법에 대한 문서를 쿼리하는 MCP 도구를 제공합니다. * 모듈을 찾기 위해 검색 도구 (node-search)를 제공하거나 모든 사용 가능한 모듈을 나열합니다. * 모든 사용 가능한 모듈의 요약을 얻기 위해 목록 도구 (node-list)를 제공합니다. * pino를 사용하여 /tmp/mcp-server-nodejs-docs.log에 활동 및 오류를 로그합니다. 1. 2. 이 프로젝트는 Node.js와 npm을 요구합니다. MCP 서버를 시작하려면 터미널에서 다음 명령을 실행하십시오. 서버가 초기화되고 문서화, 필요한 도구를 만들고, 표준 입력/출력 (stdio)에 연결을 듣습니다.

개요(AI 번역)

이 프로젝트는 공식 Node.js API 문서에 대한 액세스를 제공하는 Model Context Protocol (MCP) 서버를 구현합니다. 그것은 nodejs.org]에서 문서를 fetches하고 MCP 도구를 통해 노출.

특징

  • 최신 Node.js API 문서.
  • 특정 모듈, 클래스, 또는 방법에 대한 문서를 쿼리하는 MCP 도구를 제공합니다.
  • 모듈을 찾기 위해 검색 도구 (node-search)를 제공하거나 모든 사용 가능한 모듈을 나열합니다.
  • 모든 사용 가능한 모듈의 요약을 얻기 위해 목록 도구 (node-list)를 제공합니다.
  • /tmp/mcp-server-nodejs-docs.log] pino]를 사용하여 활동 및 오류를 로그합니다.

설치

  1. ** 저장소 (해당되는 경우): **

  2. 모든 의존성: 이 프로젝트는 Node.js와 npm을 요구합니다.

사용법

MCP 서버를 시작하려면 터미널에서 다음 명령을 실행하십시오.

서버가 초기화되고 문서화, 필요한 도구를 만들고, 표준 입력/출력 (stdio)에 연결을 듣습니다.

디버그 로깅을 활성화하려면 --debug 플래그를 사용하여 서버를 시작합니다.

디버깅

서버는 다음 파일에 fetches, 도구 실행 및 오류를 포함하여 작업에 대한 자세한 정보를 기록합니다

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

README

원문 README의 일부입니다. 원문 보기.

MCP Server for Node.js API Documentation

This project implements a Model Context Protocol (MCP) server that provides access to the official Node.js API documentation. It fetches the documentation from nodejs.org and exposes it through MCP tools.

Features

  • Fetches the latest Node.js API documentation.
  • Provides MCP tools to query documentation for specific modules, classes, or methods.
  • Offers a search tool (node-search) to find modules or list all available modules with their methods.
  • Offers a list tool (node-list) to get a summary of all available modules.
  • Logs activity and errors to /tmp/mcp-server-nodejs-docs.log using pino.

Installation

  1. Clone the repository (if applicable):
    git clone 
    cd 
    
  2. Install dependencies: This project requires Node.js and npm.
    npm install
    

Usage

To start the MCP server, run the following command in your terminal:

npm run start

The server will initialize, fetch the documentation, create the necessary tools, and then listen for connections over standard input/output (stdio).

To enable debug logging, start the server with the --debug flag:

node index.js --debug

Debugging

The server logs detailed information about its operations, including fetches, tool executions, and errors, to the following file:

/tmp/mcp-server-nodejs-docs.log

You can monitor this file to debug issues:

tail -f /tmp/mcp-server-nodejs-docs.log

Testing with MCP Inspector

Use the built-in debug script:

npm run debug

Or directly via npx:

npx -y @modelcontextprotocol/inspector node index.js

Connecting to MCP Clients

This server communicates over standard input/output (stdio). To connect it to MCP clients like Cursor or Qodo AI, you need to configure the client to launch the server using its command.

Example Configuration (Conceptual):

Most clients will have a settings area where you can add custom MCP servers. You’ll typically need to provide:

  1. A Name: e.g., “Node.js API Documentation”

  2. The Command: The command to execute the server. Make sure to provide the absolute path to node and the index.js file, or ensure node is in the PATH environment variable accessible by the client.

    # Example - replace with your actual absolute paths
    /path/to/your/node /path/to/your/project/index.js
    
    • Finding Node Path: Run which node in your terminal.
    • Finding Project Path: Navigate to the project directory and run pwd.

Refer to your specific MCP client’s documentation for the exact steps on adding a stdio-based server.

Example using Cursor:

  1. Go to Settings -> Cursor Settings -> MCP Servers.
  2. Click Add Server.
  3. Enter a name (e.g., “NodeJS API Documentation”).
GitHub에서 전체 README 보기

설치

npx -y @modelcontextprotocol/inspector node index.js
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →