Get the FREE Ultimate OpenClaw Setup Guide →

hello-world

A simple Hello World MCP server example

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio arnab0831-hello-world-mcp-server node server.js

How to use

This Hello World MCP Server is a minimal MCP (Multi-Cloud Protocol) server that responds with 'Hello, World!' to any incoming request. It is intended as a simple demonstration of an MCP endpoint that can be wired into an MCP ecosystem or Cursor's MPC server. To run it locally, install dependencies and start the server; then you can point a Cursor MPC server instance at this endpoint to test interop. The server exposes a straightforward response and can serve as a template for building more feature-rich MCP services.

To use the server with Cursor's MPC Server, clone the repository, install dependencies, and start the server. Once running, configure Cursor to reference this MCP server by the host and port it is listening on. The server will reply to requests with the classic 'Hello, World!' payload, suitable for validating connectivity and protocol handling in your deployment.

How to install

Prerequisites:

  • Node.js (LTS version) and npm installed on your machine
  • A command-line environment (bash, zsh, or PowerShell)

Steps:

  1. Clone the repository: git clone https://github.com/arnab0831/hello-world-mcp-server.git cd hello-world-mcp-server

  2. Install dependencies: npm install

  3. Start the server: npm start

  4. Verify the server is running (by default it may listen on port 3000 or the port defined in the code/config): curl http://localhost:3000/

If you want to customize the port or environment, edit the server configuration or environment variables as needed and restart the server.

Additional notes

Notes:

  • This is a minimal example that always returns 'Hello, World!' for any request. It is intended for demonstration and testing within MCP ecosystems.
  • If you need to change the listening port, update the server configuration or the code where the HTTP server is created.
  • When integrating with Cursor's MPC Server, ensure network access between the MPC server and this endpoint, and update Cursor's configuration to point to the host:port of this MCP server.
  • No special environment variables are required for the basic operation; you can add environment variables later if you expand functionality.

Related MCP Servers

Sponsor this space

Reach thousands of developers