drio
Open app

MCP Server Hello World

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Server Hello World is an example implementation of a Model Context Protocol server that demonstrates basic methods for returning greetings.

To use MCP Server Hello World, install the necessary packages using npm, build the project, and run the inspector to test the methods.

  • Simple implementation of a Model Context Protocol server - Methods to return greetings with and without input - Configurable greeting responses
  1. Learning how to implement a basic server using Model Context Protocol.
  2. Testing and experimenting with server methods for educational purposes.
  3. Building upon the example to create more complex server functionalities.

Add to your AI client

Use these steps to connect MCP Server Hello World 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-server-hello-world-dcspark": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-world-dcspark"
      ]
    }
  }
}

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-server-hello-world-dcspark": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-world-dcspark"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-hello-world-dcspark": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-world-dcspark"
      ]
    }
  }
}

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-server-hello-world-dcspark": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-world-dcspark"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-hello-world-dcspark": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-world-dcspark"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-hello-world-dcspark": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-hello-world-dcspark"
      ]
    }
  }
}

FAQ

What programming language is used for MCP Server Hello World?

The project is implemented in TypeScript.

How do I install MCP Server Hello World?

You can install it by running `npm install` in your terminal.

Is there a license for this project?

Yes, it is licensed under the MIT license.