A minimal Model Context Protocol server built with the official Python SDK. It uses the standard stdio transport and exposes one typed tool.
- Ensure Python 3.10+ is installed.
- Install dependencies:
python -m pip install -r requirements.txt. - Run
python client.py; it starts the server over stdio, performs the MCP handshake, lists the tool and callshello_world.
The server writes protocol traffic to stdout through the SDK. Do not print
diagnostics there; use stderr for diagnostics. This example has no network
service, authentication or persistent state. Run python -m pip install -r requirements-dev.txt for lint, type and test checks.