Skip to main content
Glama
legotec73

MCP Server Example

by legotec73

MCP Server Example

Node.js / Express based MCP (Model Context Protocol) server

How to Run

Run Locally

npm install
npm run build
npm start

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

Run with 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

Deploying

Cloudtype

  1. Select a template: MCP Server - Node.js

  1. Deploy

  • Node v22

  • Environment variables TOKEN: Set the token used for authentication

  • Build command npm run build

  • Start command npm start

  1. Check the connection information

    MCP connection address - https:///mcp

  1. Update After committing and pushing code, deploy using the Deploy button in the Settings tab

YouTube Guide

Deployment Automation

Authentication

Uses Bearer token authentication:

  • Environment variable: TOKEN

  • Header: Authorization: Bearer your-token

Supported Tools

  • user_list - Retrieve user list

  • user_statistics - Retrieve user statistics

  • calculator - Calculator example

  • create_task - Create a task

  • complete_task - Complete a task

  • list_tasks - Retrieve task list

Environment Variables

  • TOKEN : Bearer token (required)

How to Use

Porter AI

Troubleshooting

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.
    7 npm
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server providing calculator, user list, and statistics tools with Bearer Token authentication.
    205 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.
    7 npm
    MIT