mcp-server-node

cloudtype-examples/mcp-server-node

3.3

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

Docker μ‹€ν–‰

docker build -t mcp-server-node .
docker run -p 3000:3000 -e TOKEN=your-secret-token mcp-server-node

λ°°ν¬ν•˜κΈ°

ν΄λΌμš°λ“œνƒ€μž…

  1. ν…œν”Œλ¦Ώ μ„ νƒν•˜κΈ° : MCP Server - Node.js

  1. λ°°ν¬ν•˜κΈ°
  • Node v22
  • ν™˜κ²½λ³€μˆ˜ TOKEN : 인증에 μ‚¬μš©ν•  토큰을 μ„€μ • (μΈμ¦μ‹œ μ‚¬μš©ν•  토큰)
  • λΉŒλ“œ λͺ…λ Ήμ–΄ npm run build
  • μ‹œμž‘ λͺ…λ Ήμ–΄ npm start

  1. 접속정보 확인

    MCP 접속 μ£Όμ†Œ - https://<배포된 프리뷰 도메인 μ£Όμ†Œ>/mcp

  1. μ—…λ°μ΄νŠΈ μ½”λ“œ 컀밋 & ν‘Έμ‹œ ν›„ μ„€μ • νƒ­μ—μ„œ λ°°ν¬ν•˜κΈ° λ²„νŠΌμœΌλ‘œ 배포
YouTube κ°€μ΄λ“œ
λ°°ν¬μžλ™ν™”

인증

Bearer 토큰 인증을 μ‚¬μš©ν•©λ‹ˆλ‹€:

  • ν™˜κ²½λ³€μˆ˜: TOKEN
  • 헀더: Authorization: Bearer your-token

지원 도ꡬ

  • user_list - μ‚¬μš©μž λͺ©λ‘ 쑰회
  • user_statistics - μ‚¬μš©μž μ§€ν‘œ 쑰회
  • calculator - 계산기 예제
  • create_task : μž‘μ—… μƒμ„±ν•˜κΈ°
  • complete_task : μž‘μ—… μ™„λ£Œν•˜κΈ°
  • list_tasks : μž‘μ—… λͺ©λ‘ μ‘°νšŒν•˜κΈ°

ν™˜κ²½λ³€μˆ˜

  • TOKEN : Bearer 토큰 (ν•„μˆ˜)

ν™œμš©λ°©λ²•

Porter AI

λ¬Έμ œν•΄κ²°

License

MIT License