Skip to main content
Glama
legotec73

MCP Server Example

by legotec73

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

Related MCP server: CloudTypeJ MCP Server

デプロイ

Cloudtype

  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

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Node.js MCP server providing user management, task management, and calculator tools with Bearer token authentication, deployable on Cloudtype.
    17 npm
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server providing calculator, user list, and statistics tools with Bearer Token authentication.
    304 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Node.js MCP server example with user management, task management, and calculator tools. Supports authentication via bearer token and can be deployed locally or via Docker.
    17 npm
    MIT