MCP fundamentals: hosts, clients, servers, primitives, transports
Notebook· 05.02· 90–120 min· Lesson 41 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Explain the MCP roles (host, client, server) and the three server primitives (tools, resources, prompts).
- Use top-level
awaitin Jupyter, and explain whyasyncio.run()fails there. - Inspect a server: its info, capabilities, tools (with schemas and annotations), resources and prompts.
- Compare the transports: in-memory, stdio and Streamable HTTP, and know which works where (Windows included).
- Recognize
langchain.mcpas beta and what that means for you.
Before you start
Lesson 02.01 (tools). Module 05.01 helps but isn't required.
Python in this lesson
Python guideNew hereasyncio.run()
