Free Course
Model Context Protocol: Advanced Topics
Included for Free
Create Your Free Account
Continue with GoogleShow more optionsor
Loved by learners at thousands of companies
Training a Team?
Try for BusinessCourse Description
Master Core MCP Features
Start with sampling, which lets a server hand a prompt back to the client's language model instead of holding its own API key. Then stream log and progress notifications so learners watching a 30-second tool call can see it working, and use roots to define exactly which files and folders a server is allowed to touch - a boundary the SDK leaves you to enforce yourself.Understand How Clients and Servers Talk
Go to the wire level and see what actually crosses the connection. You'll hand-write JSON-RPC requests and notifications, tell the two apart by their id field, and follow the initialization handshake message by message.Compare the STDIO and StreamableHTTP Transports
Learn why a STDIO server only works on one machine, how the StreamableHTTP transport uses a long-lived Server-Sent Events stream to push messages back to the client, and what the stateless_http and json_response flags trade away. By the end, you'll know which transport fits a local tool versus a remote, load-balanced deployment - and why.What you'll learn
- Determine how to use sampling so an MCP server can delegate language-model calls to the connected client instead of holding its own API key.
- Differentiate log notifications from progress notifications, and recognize when a long-running tool should send each.
- Identify how roots define the filesystem boundaries a server may access, and why the server must enforce them itself.
- Differentiate MCP requests from one-way notifications by their JSON-RPC structure, and order the messages of the initialization handshake.
- Assess when to use the STDIO versus the StreamableHTTP transport, and evaluate how the stateless_http and json_response flags affect server-to-client features.
Feels like what you want to learn?
Start Course for FreePrerequisites
Introduction to Model Context Protocol (MCP)Core MCP features
Transports and communication
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
Is this course suitable for beginners?
No, this is an advanced course. You should first be comfortable building a basic MCP server with tools and resources, which the Introduction to Model Context Protocol (MCP) course covers.
What will I be able to do after this course?
You will be able to add sampling, progress and log notifications, and roots to an MCP server, and choose between the STDIO and StreamableHTTP transports for local or remote deployments.
Which tools and technologies does this course use?
You will work in Python with the FastMCP framework and the MCP SDK, writing real client-server sessions, JSON-RPC messages, and Server-Sent Events streams.
Where would I use these advanced MCP features?
Production MCP servers rely on them: sampling reuses the client's model without a server-side API key, notifications keep long-running tools transparent, and the right transport lets you deploy remotely behind a load balancer.
Will I receive a certificate at the end of the course?
Yes, you will receive a certificate of completion once you finish all the chapters and exercises.
Join over 19 million learners and start Model Context Protocol: Advanced Topics today!
Create Your Free Account
Continue with GoogleShow more optionsor
Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.