Open a Client Session
Connect to a server and run the handshake.
You Become the Caller
So far the server advertised tools and waited. Now you flip roles and write the client that reaches out, connects, and drives a server from your own Python code.
Same SDK, Client Side
The official mcp package you already installed ships the client too. No new dependency is needed to start connecting to servers.
from mcp import ClientSession, StdioServerParametersAll lessons in this course
- Open a Client Session
- Discover Tools & Resources
- Invoke Tools from Code
- Route Tool Calls Through an LLM