Loading

Model Context Protocol: Advanced topics

Go beyond MCP basics: sampling, notifications, and roots, with interactive walkthroughs of each protocol flow.

11 lessons1.5 hr1 quizCompletion badge
What you’ll learnBy the end of this course, you’ll be able to
  • Understand how MCP servers can request language model calls through connected clients via sampling, shifting AI costs and complexity from server to client
  • Implement real-time feedback using context objects, logging callbacks, and progress reporting for long-running operations
  • Use roots to grant MCP servers access to specific directories with security boundaries and user-friendly file discovery
  • Distinguish between request-result pairs and notification messages in the MCP message specification, and understand bidirectional communication patterns
  • Understand how MCP clients and servers communicate over standard input/output streams, including the required initialization handshake sequence
  • Explain how Server-Sent Events (SSE) enable server-to-client communication over HTTP, including session management and dual-connection architectures
  • Recognize how configuration flags affect functionality, particularly server-initiated requests and streaming capabilities
  • Decide when to use stateless HTTP for horizontal scaling with load balancers, weighing the trade-offs between stateful and stateless server configurations
  • Choose appropriate transport methods based on deployment requirements, functionality needs, and scaling constraints
Who it’s for

Engineers building production MCP servers who need to understand the protocol's advanced capabilities

Before you start
  • Basic understanding of MCP servers and clients
  • Familiarity with async programming patterns

This course covers the technical implementation of MCP servers and clients, from basic message passing to production deployment strategies. You'll learn how MCP enables language models like Claude to interact with external tools and data sources through standardized protocols, transports, and message formats.

Inside the course

Core MCP features

6 lessons

Learn the advanced features that make MCP servers more powerful. Covers sampling to offload AI costs to clients, implementing progress notifications for better UX, and using roots to safely handle file access.

Transports and communication

5 lessons

Understand how MCP messages flow between clients and servers. Explores the JSON message protocol, STDIO transport for local development, and the complexities of StreamableHTTP including when to sacrifice features for scalability.