Get the FREE Ultimate OpenClaw Setup Guide →

mcp -node

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

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio cloudtype-examples-mcp-server-node node dist/server.js \
  --env TOKEN="Bearer authentication token (set via environment variable)"

How to use

This MCP server implements a Node.js/Express/TypeScript-based Model Context Protocol (MCP) server. It exposes a set of example MCP tools such as user_list, user_statistics, calculator, create_task, complete_task, and list_tasks which can be invoked through the MCP interface once the server is running. The server uses a Bearer token for authentication, configured via the TOKEN environment variable. Start the server locally or in a container, then connect to the MCP endpoint at /mcp to interact with the available tools and workflows.

How to install

Prerequisites:

  • Node.js (v14+ recommended) and npm
  • Optional: Docker if you prefer containerized usage

Local installation:

  1. Install dependencies and build the project
    • npm install
    • npm run build
  2. Run the server (with optional token)
    • TOKEN=your_token npm start
    • The server will start and listen on the configured port (default 3000 if not overridden)

Docker installation:

  1. Build the image
    • docker build -t mcp-server-node .
  2. Run the container with a token
    • docker run -p 3000:3000 -e TOKEN=your-secret-token mcp-server-node

Additional notes

Notes:

  • Environment variable TOKEN is required for authenticated access; include it when starting the server locally or in Docker.
  • The server endpoints and tools align with MCP conventions; use the /mcp path to interact with the MCP API.
  • If you customize the build output path, update the mcp_config accordingly (the args for the Node command should point to the generated server file).
  • For CloudType deployment, ensure the build command is npm run build and the start command is npm start, as documented in the repository.
  • Port 3000 is used in the Docker example; configure per your deployment environment if needed.

Related MCP Servers

Sponsor this space

Reach thousands of developers