Introduction to Model Context Protocol

Build MCP servers and clients from scratch with the Python SDK, covering the three core primitives—tools, resources, and prompts—that connect Claude to external services.

Introduction to Model Context Protocol artwork from Claude Academy

Who this is for

  • Software engineers

    Teaches how to build Model Context Protocol servers and clients in Python using tools, resources, and prompts.

  • AI & ML engineers

    Covers implementing MCP servers, the server inspector, and Python clients to connect Claude to external services.

What you get out of it

Write Model Context Protocol servers and clients from scratch in Python to connect Claude to external services through tools, resources, and prompts. Across 64 minutes, this course walks developers through server inspection, resource access, client implementation, and a final assessment.

Outline

Introduction

  1. Introducing MCPLessonHow the Model Context Protocol connects Claude to external services.
  2. MCP clientsLessonUnderstand how MCP clients communicate with servers to extend Claude.

Hands-on with MCP servers

  1. Defining tools with MCPLessonBuild MCP server tools from scratch using the Python SDK.
  2. The server inspectorLessonUse the server inspector to test and debug your MCP server.

Connecting with MCP clients

  1. Implementing a clientLessonWrite an MCP client in Python that connects to your server.
  2. Defining resourcesLessonExpose data through the resources primitive on an MCP server.
  3. Accessing resourcesLessonRetrieve resources from an MCP server through your Python client.
  4. Defining promptsLessonCreate reusable prompts as a core primitive on an MCP server.
  5. Prompts in the clientLessonLoad and use server-defined prompts from an MCP client.

Assessment and wrap Up

  1. Final assessment on MCPQuizTest your knowledge of MCP servers, clients, tools, resources, and prompts.
  2. MCP reviewLessonA closing review of the three MCP primitives and client-server architecture.

Details

Details
SourceFormatDuration
Claude AcademyCourse64 min