MCP Explained Simply: A Flight Booking Demo in Python
People talk about MCP like magic, so I spoke it by hand, in plain JSON lines.
Video #292 ยท AI agents and MCP
Steps in the video
Files
- client.py (21 lines)
- raw.py (32 lines)
- server.py (34 lines)
Tested with
Python 3.12.15 | mcp==2.3.0
What this does not show
A made-up airline server on one machine over standard input and output, with two tools; the calls are scripted, no model chooses them, and nothing checks who is asking; resources, prompts and the web transport are not shown.
Sources
Learning IT by Example.