Used as the HTTP client for examples and testing in the MCP server, enabling streamable HTTP transport instead of stdio for better accessibility.
Provides comprehensive Docker support for deploying the MCP server with multi-stage builds, health checks, and production-ready orchestration with logging and resource management.
Used for request/response validation in the MCP server, ensuring type safety when processing tool calls and generating responses.
Integrated for running comprehensive test suites against the MCP server, including coverage reporting.
The primary language for implementing the MCP server, requiring version 3.8 or higher.
Integrated for code linting in the development workflow, with auto-fix capabilities for addressing linting issues.
Used as the base image (Ubuntu 24.04 LTS) for the Docker container deployment, providing stability for the production environment.
MCP Hello World Server
A simple Hello World MCP (Model Context Protocol) server built with the FastMCP framework in Python using HTTP transport.
Prerequisites
- Python 3.10 or higher
Install
Usage
Running the Server
Using Docker (Production)
Using uv (Development)
Accessing the HTTP Server
- Default:
http://0.0.0.0:8000
- Local access:
http://localhost:8000
- Custom: Set
MCP_HOST
andMCP_PORT
environment variables
Available Tools
1. say_hello
Generate greetings in different languages.
Parameters:
name
(str, optional): Name to greet (default: "World")language
(str, optional): Language code (default: "en")
Supported languages:
en
- Englishes
- Spanishfr
- Frenchde
- Germanit
- Italianpt
- Portugueseru
- Russianja
- Japaneseko
- Koreanzh
- Chinese
Example:
Response:
2. get_server_info
Get information about the server capabilities.
Parameters:
None
Response:
Available Resources
1. file://hello-world
A simple hello world message resource.
2. file://server-status
Current server status and available tools/resources.
Example Client Usage
Environment Variables
The server supports the following environment variables:
MCP_HOST
: Server host address (default:0.0.0.0
)MCP_PORT
: Server port number (default:8000
)
Example:
License
This project is licensed under the terms specified in the LICENSE file.
Reference
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A simple MCP server that generates multi-language greetings and provides server information using the FastMCP framework.
Related MCP Servers
- AsecurityFlicenseAqualityA server that enables communication with multiple unichat-based MCP servers simultaneously, allowing users to query different language models and combine their responses for more comprehensive results.Last updated -2JavaScript
- -securityFlicense-qualityA minimal TypeScript MCP server that provides a 'hello' tool using the fastMCP framework.Last updated -TypeScript
- -securityFlicense-qualityA simple MCP server implementation that demonstrates streaming capabilities with tools for greetings and notifications, accessible through an interactive command-line client.Last updated -1TypeScript
- -securityFlicense-qualityA feature-rich Model Context Protocol server built with FastMCP that provides various tools including basic utilities, network services, file operations, encryption tools, and system information functions.Last updated -Python