AI MCP for Beginners: Hosts, Clients, Servers, and a First Test
- Authors

- Name
- Geeks Kai
- @KaiGeeks

MCP means Model Context Protocol. It gives an AI application a standard way to discover and use external capabilities. It is not a model download, a database requirement, or a guarantee that generated answers are correct.
The official architecture overview distinguishes these roles:
| Participant | Responsibility | Example |
|---|---|---|
| Host | Coordinates the AI application and its connections | An editor with an AI assistant |
| Client | Maintains a connection to one server | The host's connection to a documentation server |
| Server | Exposes tools, resources, or prompts | A program offering a document lookup function |
The model is used by the host. It does not replace the MCP client, and the server does not have to host model weights.
A tool performs an operation, a resource supplies readable context, and a prompt provides a reusable interaction template. Start with one capability whose result you can verify independently, such as adding two integers. That separates a protocol problem from a model's choice of arguments.
A successful tool call proves that the connection and that operation worked. It does not establish that every answer from the host is accurate.
Use the official Python SDK, distributed as the mcp package. Its 2.x documentation requires Python 3.11 or later. Older 1.x tutorials use different imports, so check the installed version before copying examples.
The next tutorial uses this dependency range:
python -m pip install "mcp[cli]>=2,<3"
python -m pip show mcp
For an existing 1.x project, follow the official migration guide rather than changing imports selectively. The package named ai-mcp and a generic HTTP request are not substitutes for the SDK and protocol handshake used in that tutorial.
Continue with building an MCP server and checking its tool result. It provides complete server and client files, an expected result, and an invalid-input check. No model account or API key is needed for that deterministic example.
Once the test works, connect the server to a host that supports the chosen transport. Review what capabilities the host exposes and which operations require approval before attaching real documents or external services.
For the next capability, keep the same small test loop: define an input, state the expected output, call it through a client, and inspect both success and failure results.