Skip to main content
Free courses · 4 lessons

AI Agents and MCP From Zero: A Free Beginner Course

Four free lessons on AI agents and MCP from zero: how a tool call travels, least-privilege servers, prompt injection in tool output, and agent sandboxes.

By Matthews WongReviewed on Checked against MCP specification 2026-07-28

Key takeaway

AI agents act by calling tools, and the Model Context Protocol is how many of them reach those tools. These four lessons follow one tool call from the model to an MCP server and back, then show how to keep it safe: a server that holds only what the job needs, tool output treated as untrusted, and an agent inside a sandbox.

Free, no sign-up, no certificate. Built from the setup that runs this website.

Start the course

What you will be able to do

  • Explain what an MCP server is, and trace a tool call through the host, the client and the server.
  • Scope a server to least privilege, and prove it from the tool list a client receives.
  • Treat tool output as untrusted, and put agents behind a boundary that holds when the model is fooled.

Who it is for

Developers who have used an AI coding agent or a chat app with tools, and want to connect MCP servers without handing over more than they mean to.

Before you start

  • A terminal and Node.js 22.19 or newer, for the MCP Inspector exercises.
  • Claude Code installed and signed in, for the permission and sandbox exercises.
Lessons

AI agents and MCP

Course check

4 questions from across the course

One question from each part of the course, in order. Get 4 of 4 right and you have its core. Every answer links to the lesson that teaches it, and nothing is locked either way.

  1. 1.In an MCP setup, which part decides whether a tool call is allowed to run?
  2. 2.What does disable_destructive actually hide?
  3. 3.A server behaved well for three calls, then changed its tool descriptions. What would have caught that?
  4. 4.With Claude Code's sandbox on and no extra settings, what can a sandboxed command do?