drio
Open app

Hello World MCP Server

Source

Typescript starter for MCP server with resource, prompt and tool

Catalog onlyCatalog onlySTDIO

Overview

Hello World MCP Server is a simple TypeScript starter project for creating an MCP (Multi-Channel Protocol) server that includes a resource, a prompt, and a tool.

To use the Hello World MCP Server, clone the repository, install the dependencies using npm, and run the server either through STDIO or HTTP with SSE.

  • Resource: Provides a "Hello World" message when called. - Prompt: A simple prompt that states "You are a helpful assistant." - Tool: An echo tool that returns "Hello" plus your input.
  1. Building a simple MCP client to interact with the server.
  2. Testing and developing MCP applications.
  3. Learning how to set up and run an MCP server.

Add to your AI client

Use these steps to connect Hello World MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-ts-starter-madhukarkumar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ts-starter-madhukarkumar"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-ts-starter-madhukarkumar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ts-starter-madhukarkumar"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-ts-starter-madhukarkumar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ts-starter-madhukarkumar"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-ts-starter-madhukarkumar": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ts-starter-madhukarkumar"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-ts-starter-madhukarkumar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ts-starter-madhukarkumar"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-ts-starter-madhukarkumar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ts-starter-madhukarkumar"
      ]
    }
  }
}

FAQ

How do I install the server?

You can install the server by running `npm install` in the project directory.

Can I run the server using HTTP?

Yes! You can run the server using HTTP with the command `npm run start:http`.

What is the purpose of the echo tool?

The echo tool is designed to return the input you provide, prefixed with "Hello".