Introduction
What this course is about
Language models are remarkably good at writing, summarizing and planning – but on their own they know nothing about your world. They don’t know how full your disks are or which tickets your team has open, and they can’t restart a service. For a model to do such things, someone has to connect it to tools and data. Until recently, every application solved this in its own way: custom glue code for every model, every data source, every user interface.
The Model Context Protocol (MCP) turns this into an open standard. An MCP server offers tools, data and templates; an MCP client inside an application – the host, for example a chat program, an IDE or an agent – uses them. Once you write a server, you can use it with any host that speaks MCP. Since 2026 the Agentic AI Foundation, under the umbrella of the Linux Foundation, maintains the protocol, and the Model Context Protocol Associate (MCPA) is a certification for it.
This course prepares you for the MCPA exam – but not with flash cards. On three virtual machines of your own, you build MCP servers and your own host, connect them to a language model that runs locally on your hardware, and look at every message that goes over the wire. When you read an exam question about an error code, an HTTP header or an OAuth flow at the end, you will already have triggered exactly that case yourself.
What you learn
By the end of the course you can:
- explain which problem MCP solves, how host, client and server work together, and where the limits of the protocol are,
- read and hand-write every MCP message: JSON-RPC
2.0,
_meta, protocol version,resultType, error codes, - build servers with the official Python SDK that offer tools, resources and prompts – with input and output schemas and structured results,
- write your own host that connects a language model to several servers, and trace the complete flow of a tool call,
- run servers over stdio and Streamable
HTTP and talk to them directly with
curl, - use subscriptions, progress notifications, cancellation and follow-up questions to the user (elicitation),
- name trust boundaries and recognize and defend against typical attacks such as tool poisoning and prompt injection,
- protect a server with OAuth 2.1 – with Keycloak as the authorization server, Protected Resource Metadata, scopes and audience validation,
- make MCP servers observable and run them on Kubernetes,
- judge how MCP is introduced in organizations, which roles exist, and how portable servers are between different hosts.
Why this course
Because MCP is becoming standard equipment. IDEs, chat programs, agent frameworks and cloud platforms speak MCP. If you work in operations, a platform team or development, you will be asked to connect internal systems via MCP – and then you have to decide what a model may and may not do.
Because the specification has just changed significantly. Version 2026-07-28, which the exam is based on, removed the initialization handshake, removed sessions and redefined follow-up questions. Many guides on the web still describe the old state. This course works with the new version throughout and shows where it differs from the old state.
Because security makes up almost a quarter of the exam. A model that can call tools is a new attack path into your systems. Here you don’t just learn how authorization works – you attack your own server before you secure it.
Because everything runs locally. You need no API key, no subscription, and you send no data to a third-party service. The language model runs with Ollama on your own VM – slower than a large cloud model, but fully under your control. Everything you learn applies just the same when you later connect a different model.
Who this course is for
For administrators, platform engineers, developers and anyone who wants or needs to connect AI applications to their own systems. You should
- be comfortable on the Linux command line (creating files, starting programs, SSH),
- be able to read a little Python – functions, dictionaries,
import; the course explains everything else, - know what JSON is.
You don’t need programming experience with network protocols, OAuth or Kubernetes. Where these topics come up, the course explains them from the ground up.
The exam
The MCPA exam is a multiple-choice exam: 90 minutes, online and proctored, with camera and ID. It costs 250 US dollars, one retake is included, and the certificate is valid for two years. It is based on the MCP specification version 2026-07-28. The questions are spread across five domains:
| Domain | Weight | What it covers | Chapters |
|---|---|---|---|
| MCP Fundamentals | 16 % | Purpose and scope, core terms, interoperability | Day 1–2 |
| Architecture & Components | 14 % | Schemas, hosts/clients/servers, flow with the model | Day 3–4 |
| Interactions & Execution | 26 % | Interaction patterns, errors, tool calls, primitives | Day 5–10 |
| Security & Governance | 24 % | Trust boundaries, permissions and consent, safeguards, audit | Day 11–14 |
| Use Cases & Ecosystem | 20 % | Roles and adoption, use cases, ecosystem and portability | Day 15 |
The exam questions themselves are confidential. The questions in this course are my own, but they follow the published domains and competencies and have the same form: one situation, four answers, one correct.
How the course is structured
The course has 17 chapters – “days” – and three appendices. A day takes two to three hours. Every day follows the same pattern:
- Where we start: what must be running, with a command that checks it.
- Introduction: what today is about and why it matters, with the day’s learning goals.
- Background: starts with the picture for today. The whole course is set in a hotel: the front desk is the host, every outside contractor is a server, the house line to it is the client, its bookable services are the tools, and the guest’s signature is the consent. Then the terms in a table and the concepts explained calmly, with references to the specification.
- Drills: step by step in your own lab. Each drill states which machine and which directory you work in and what you have afterwards. Every command is explained with all its parameters, every file is shown in full, and after each step you see which output you can expect. Every step holds exactly one command – first what it should do and why, then the command, then the output. All output comes from real runs. A Remember box sums up the core of each drill in one sentence.
- If it doesn’t work: the most common errors with message and fix.
- Exercise and challenge: you apply what you learned yourself; the solution follows.
- Checkpoint: individual commands that show whether everything is in place.
- Exam questions: five questions in exam style, with explained solutions.
- Interview and Enterprise Note: what matters in a job interview and in operations.
- Summary: what you learned that day.
At the end you find a cheat sheet (Appendix A), a practice exam with 60 questions in 90 minutes (Appendix B) and an error catalog with every message that came up while building this course (Appendix C).
The lab
You work on three VMs running Ubuntu 24.04:
| VM | Role | Size |
|---|---|---|
| cp1 | your workstation: language model (Ollama), host, clients, local servers | 4 vCPU, 12 GB RAM |
| worker1 | MCP servers reachable over HTTP | 2 vCPU, 8 GB RAM |
| worker2 | authorization server (Keycloak) | 2 vCPU, 8 GB RAM |
Each VM needs 30 GB of disk and internet access. You don’t need a GPU – the model runs on the CPU. Toward the end of the course the three VMs become a small Kubernetes cluster on which the servers run in production.
The versions this course was built and tested with (as of
2026-11-28): MCP specification 2026-07-28, Python SDK mcp
2.3.0, Python 3.12, uv 0.13.10, Ollama 0.40.19 with the model
qwen3:4b-instruct. Further versions are named in the
chapter where the tool is added.
What you need
- three VMs as above, on which you can log in as a user with
sudorights, - a computer with an SSH client (Linux, macOS or Windows with OpenSSH),
- about 40 hours of time, spread over as many days as you like.
The course files are in the companion repo
https://github.com/itdrills/mcpa-zum-anfassen. You don’t
need it: every file is shown in full in the text. It does help, though,
when you are hunting for a typo.
Good luck – and have fun building.
Thomas Zachmann