Anthropic Academy Courses

This video is still being processed. Please check back later and refresh the page.

Uh oh! Something went wrong, please try again.

Model Context Protocol: Advanced Topics

Discover advanced Model Context Protocol implementation patterns including sampling, notifications, file system access, and transport mechanisms for production MCP server development.

rate limit

Code not recognized.

About this course

This course examines advanced features and implementation patterns for Model Context Protocol (MCP) development, focusing on server-client communication, transport mechanisms, and production deployment considerations. You'll explore sophisticated MCP capabilities including sampling for AI model integration, notification systems, file system access control, and the technical details of different transport protocols.

What you'll learn

  • Sampling implementation - Understand how MCP servers can request language model calls through connected clients, including the architecture that shifts AI costs and complexity from server to client
  • Progress and logging notifications - Learn to implement real-time feedback systems using context objects, logging callbacks, and progress reporting for long-running operations
  • Roots-based file access - Explore permission systems that grant MCP servers access to specific directories while providing security boundaries and enabling user-friendly file discovery
  • JSON message architecture - Examine the complete MCP message specification, distinguishing between request-result pairs and notification messages, and understanding bidirectional communication patterns
  • Stdio transport mechanisms - Understand how MCP clients and servers communicate through standard input/output streams, including the required initialization handshake sequence
  • StreamableHTTP transport implementation - Learn how Server-Sent Events (SSE) enable server-to-client communication over HTTP, including session management and dual-connection architectures
  • HTTP transport limitations - Discover how configuration flags affect functionality, particularly regarding server-initiated requests and streaming capabilities
  • Production scaling considerations - Understand when to use stateless HTTP for horizontal scaling with load balancers and the trade-offs between stateful and stateless server configurations
  • Transport selection criteria - Learn to choose appropriate transport methods based on deployment requirements, functionality needs, and scaling constraints

Prerequisites

  • Experience with Python development and async programming patterns
  • Familiarity with JSON message formats and HTTP protocols
  • Basic knowledge of Server-Sent Events (SSE)

Who this course is for

  • Developers working with Model Context Protocol implementations
  • Engineers building MCP servers and clients

Curriculum

  • Introduction
  • Let's get started!
  • Core MCP features
  • Sampling
  • Sampling walkthrough
  • Log and progress notifications
  • Notifications walkthrough
  • Roots
  • Roots walkthrough
  • Survey
  • Transports and communication
  • JSON message types
  • The STDIO transport
  • The StreamableHTTP transport
  • StreamableHTTP in depth
  • State and the StreamableHTTP transport
  • Assessment and next steps
  • Assessment on MCP concepts
  • Wrapping up

About this course

This course examines advanced features and implementation patterns for Model Context Protocol (MCP) development, focusing on server-client communication, transport mechanisms, and production deployment considerations. You'll explore sophisticated MCP capabilities including sampling for AI model integration, notification systems, file system access control, and the technical details of different transport protocols.

What you'll learn

  • Sampling implementation - Understand how MCP servers can request language model calls through connected clients, including the architecture that shifts AI costs and complexity from server to client
  • Progress and logging notifications - Learn to implement real-time feedback systems using context objects, logging callbacks, and progress reporting for long-running operations
  • Roots-based file access - Explore permission systems that grant MCP servers access to specific directories while providing security boundaries and enabling user-friendly file discovery
  • JSON message architecture - Examine the complete MCP message specification, distinguishing between request-result pairs and notification messages, and understanding bidirectional communication patterns
  • Stdio transport mechanisms - Understand how MCP clients and servers communicate through standard input/output streams, including the required initialization handshake sequence
  • StreamableHTTP transport implementation - Learn how Server-Sent Events (SSE) enable server-to-client communication over HTTP, including session management and dual-connection architectures
  • HTTP transport limitations - Discover how configuration flags affect functionality, particularly regarding server-initiated requests and streaming capabilities
  • Production scaling considerations - Understand when to use stateless HTTP for horizontal scaling with load balancers and the trade-offs between stateful and stateless server configurations
  • Transport selection criteria - Learn to choose appropriate transport methods based on deployment requirements, functionality needs, and scaling constraints

Prerequisites

  • Experience with Python development and async programming patterns
  • Familiarity with JSON message formats and HTTP protocols
  • Basic knowledge of Server-Sent Events (SSE)

Who this course is for

  • Developers working with Model Context Protocol implementations
  • Engineers building MCP servers and clients

Curriculum

  • Introduction
  • Let's get started!
  • Core MCP features
  • Sampling
  • Sampling walkthrough
  • Log and progress notifications
  • Notifications walkthrough
  • Roots
  • Roots walkthrough
  • Survey
  • Transports and communication
  • JSON message types
  • The STDIO transport
  • The StreamableHTTP transport
  • StreamableHTTP in depth
  • State and the StreamableHTTP transport
  • Assessment and next steps
  • Assessment on MCP concepts
  • Wrapping up