mcp-server-node

cloudtypej/mcp-server-node

3.2

If you are the rightful owner of mcp-server-node and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides a comprehensive overview of a Model Context Protocol (MCP) server built using Node.js, Express, and TypeScript.

Tools
4
Resources
0
Prompts
0

MCP Server Example

Node.js / Express / TypeScript 기반 MCP (Model Context Protocol) 서버

설치 및 실행

npm install
npm run build
npm start

# 인증과 함께 실행
TOKEN=your_token npm start

테스트

npm test              # 기본 테스트
npm run test:mcp      # MCP 기능 테스트

Docker

docker build -t mcp-server .
docker run -p 3000:3000 -e TOKEN=your_token mcp-server

API

  • POST /mcp - JSON-RPC 2.0 MCP 요청
  • GET /mcp - SSE 스트림 (세션 ID 필요)
  • DELETE /mcp - 세션 종료

Tools

  • create_task(title, description?) - 작업 생성
  • complete_task(task_id) - 작업 완료
  • list_tasks() - 작업 목록
  • health_check() - 서버 상태

Resources

  • tasks://all - 모든 작업
  • tasks://pending - 대기 작업
  • tasks://completed - 완료 작업