The Model Context Protocol β the standard plug between AI apps and the world β
taught with a difference: the protocol is IN the repo. A real MCP server and a real
host/client, ~200 lines of pure Python, zero dependencies. You read every byte that moves.
π€ the handshakeπ§° tools/resources/promptsπ¬ real server codeπ real client codeπ 5 use casesπΌ sequence diagrams
π Part 1 β THE PROTOCOL (1β5)
the adapter drawer π β the standard socket π
rooms, sockets, instruments β who talks to whom
three shelves; three verbs and a handshake π€
stdio vs HTTP + the three trust rules π§
π§ Part 2 β BUILD & DEPLOY (6β8)
read a real server: 110 honest lines π¬
read a real host β where the power lives π
5 production-shaped use cases, drawn twice π
--drive mode: YOU play the model π§
# the 60-second wow β the ENTIRE protocol, live:
git clone https://github.com/BaluRaut/learn-mcp-school.git && cd learn-mcp-school
python3 client/mini_client.py # watch every JSON-RPC message
python3 client/mini_client.py --drive # YOU pick the tool calls
πΊοΈ The big picture β one diagram, both worlds
π The showcase:5 real-world use cases β
coding assistant, support desk, data analyst, meeting-prep butler, report robot β each with a
numbered flow diagram AND a full sequence diagram.
π The lesson diagrams β follow the numbers
Purple = the protocol, orange = build & deploy. Lessons 02, 04 and 07 are drawn as
sequence diagrams β the natural language of protocols. Also on a
standalone page.
1 π Why MCP
The adapter drawer (NΓM) β the standard socket (N+M).