Hello World MCP Server
A simple example of a Model Context Protocol (MCP) server that demonstrates basic functionality with greeting tools.
Quick Start
- Install dependencies:
- Run the server:Choose one of three transport methods:
- Test the server:
Features
This server provides:
- 4 tools for creating and managing greetings
- 1 resource for greeting templates
- 1 prompt for generating greetings
Documentation
See how-to-run-mcp.md for detailed instructions on:
- Running the server locally
- Testing with various methods
- Integrating with Claude Desktop
- Troubleshooting common issues
Project Structure
Transport Methods
This server can run in three different modes:
- stdio transport (
run_stdio.py
) - For MCP clients like Claude Desktop and Cursor - HTTP transport (
run_http.py
) - REST API for testing with curl commands - SSE transport (
run_sse.py
) - Server-Sent Events for web clients (requires MCP-compatible web client)
Docker Support
Building the Docker Image
Running with Docker
Testing the Dockerized Server
Once running the HTTP transport container:
Development with Docker
Available Tools
- say_hello(name) - Basic greeting
- get_greeting_info() - Server information
- create_custom_greeting(name, type, include_time) - Customized greetings
- list_available_greetings() - List greeting types
License
This is an example project for learning MCP.
This server cannot be installed
A simple demonstration server for the Model Context Protocol that provides tools for creating and managing greetings with support for multiple transport methods (stdio, HTTP, SSE).
Related MCP Servers
- -securityAlicense-qualityA demonstration server that implements the Model Context Protocol (MCP) SDK, providing tools and endpoints for server-sent events and message handling.Last updated -417TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides greeting tools, resources, and prompts, demonstrating client-server interaction using TypeScript.Last updated -1TypeScript
- -securityAlicense-qualityA simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.Last updated -56PythonGPL 3.0
- -securityFlicense-qualityA sample implementation of Model Context Protocol server demonstrating core functionality with simple arithmetic tools and greeting resources.Last updated -Python