About mcp-server-say-hello
mcp-server-say-hello is a Python MCP server example for developers learning or testing a minimal greeting tool. It accepts a name and returns a personalized text greeting, with setup options including uvx, Docker, and pip.
Key features
- 01Generate personalized greetings
- 02Register the `say_hello` tool
- 03Accept a username parameter
- 04Support uvx, Docker, and pip deployment
Use cases
- 01Test an MCP tool call with a greeting
- 02Use a small example when learning MCP server setup
MCP support
Exposes the `say_hello` tool to MCP clients. The tool accepts a username and returns a greeting as text.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-server-say-hello
MCP Protocol-compliant greeting service providing standardized greeting tool interfaces.
Features
- Personalized greeting generation
- Compliant with MCP v1.2 protocol specifications
- Multi-environment deployment support (uvx/docker/pip)
- Complete tool registration specifications
Tool Registration
Tool List
say_hello-
Description: Greeting tool for users
-
Input Parameters:
{ "name": "username" } -
Success Response:
{ "type": "text", "text": "Hello {username}!" }
-
API Reference
endpoint: POST /say_hello
request parameters:
{
"name": "username"
}
success response:
{
"message": "Hello {username}!"
}
Integrated configuration
VS Code configuration
{
"mcp": {
"servers": {
"say_hello": {
"command": "uvx",
"args": ["mcp-server-say-hello"]
}
}
}
}
or locally (if you installed the package using pip install or pip install -e .):
{
"mcp": {
"servers": {
"say_hello": {
"command": "/path/to/python",
"args": ["-m", "mcp_server_say_hello"]
}
}
}
}
Note: command use the python bin path or "python" if you have it in your PATH
Claude Desktop or Trae CN Desktop configuration
use python
{
"mcpServers": {
"say_hello": {
"command": "python",
"args": ["-m", "mcp_server_say_hello"]
}
}
}
or uvx
{
"mcpServers": {
"say_hello": {
"command": "uvx",
"args": ["mcp-server-say-hello"]
}
}
}
AIGC prompt example
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.