Home›MCP Tutorial
Free course
MCP Tutorial
Learn the Model Context Protocol from zero, one small and easy step at a time. Every idea is explained in plain words, then shown in real Python code with the official MCP SDK and real output.
Course contents
Every lesson has its own page with the explanation, code you can copy, the real output, screenshots from the video, and a link that jumps straight to that moment in the video.
1. What Is MCP
- What Is MCP0:00
- The Problem1:01
- Hosts, Clients and Servers1:55
2. Building Blocks
3. Your First Server
4. Discovery and stdio
5. Tool Inputs
- Tool Inputs11:10
- Good Descriptions12:29
- Defaults and Optional Inputs13:20
6. Rich Inputs, Outputs and Errors
- Pydantic Inputs14:17
- Structured Output15:12
- Tool Errors16:05
7. Async, State and Databases
- Async Tools17:03
- Tools with State17:59
- A Database Tool18:51
8. Files, Annotations and Tool Shape
- Safe File Tools19:45
- Tool Annotations20:48
- Many Small Tools21:51
9. Elicitation and Progress
- Asking the User22:41
- Saying No23:44
- Progress24:35
10. Tool Design and Practice
- Tool Design Tips25:24
- Practice: An Orders Server26:17
- Tools Quiz27:05
11. Resources
- Resources28:16
- Resource Templates29:15
- JSON Resources30:05
12. Using Resources
- Reading Resources30:56
- Files as Resources31:49
- Resources or Tools32:42
13. More Resources
- Resource Updates33:34
- Binary Resources34:32
- Practice: A Policy Library35:25
14. Resources Quiz and Prompts
- Resources Quiz36:04
- Prompts37:17
- Prompt Arguments38:08
15. Richer Prompts
- Multi-Message Prompts38:45
- Prompts with Resources39:38
- Using Prompts40:28
16. Completions and Instructions
- Completions41:06
- Server Instructions41:57
- Practice: Support Prompts42:41
17. Prompts Quiz and the Client
- Prompts Quiz43:11
- The Client Class44:24
- Listing Everything45:20
18. Calling Tools from a Client
- Calling Tools46:10
- Reading Results47:01
- Handling Errors47:54
19. Servers and Models
- Several Servers48:45
- MCP Tools for an LLM49:45
- The Agent Loop50:43
20. Agents over MCP
- MCP with LangChain51:45
- A Gemini Agent52:38
- Choosing Tools53:26
21. Client Callbacks and Practice
22. Clients Quiz and stdio
- Clients Quiz56:28
- stdio in Depth57:45
- Logging Safely58:36
23. Streamable HTTP
- Streamable HTTP59:25
- Connecting by URL1:00:20
- Mounting in FastAPI1:01:20
24. Running Servers Well
- Stateless Servers1:02:17
- Lifespan1:03:17
- Configuration1:04:00
25. Real Hosts
- Claude Desktop1:04:53
- Claude Code and Other Hosts1:05:54
- The MCP Inspector1:06:49
26. Packaging and Docker
- Packaging a Server1:07:41
- Docker for MCP1:08:36
- Deployment Quiz1:09:31
27. Protocol Details
- Protocol Versions1:10:42
- Capabilities1:11:39
- Pagination1:12:34
28. Caching and Changes
- Caching Hints1:13:16
- Roots1:14:11
- Deprecated Features1:14:49
29. Testing and Debugging
- Testing a Server1:15:42
- Testing Errors1:16:33
- Debugging1:17:16
30. Performance and Versioning
- Performance1:18:10
- Versioning Your Server1:19:08
- Advanced Quiz1:20:00
31. Security Threats
- Why Security Matters1:21:11
- Prompt Injection1:22:08
- Tool Poisoning1:23:12
32. Limiting Damage
- Least Privilege1:24:11
- Secrets1:25:05
- Confirm Before Acting1:25:49
33. Auth and Validation
- Authentication1:26:38
- Validating Input1:27:51
- Security Checklist1:28:48
34. Limits and Audits
- Rate Limits and Abuse1:29:31
- Auditing1:30:34
- Security Quiz1:31:19
35. Project: Tools
- Project: The Plan1:32:33
- Project: Data1:33:29
- Project: Tools1:34:10
36. Project: Resources and Tests
- Project: Resources1:35:21
- Project: Prompts1:36:09
- Project: Tests1:36:49
37. Project: HTTP and Agent
- Project: HTTP1:37:29
- Project: An Agent1:38:19
- Project: Final Run1:39:00
38. Project: Ship It
- Project: Host Config1:39:40
- Project: Hardening1:40:28
- Project Review1:41:16
39. Cheat Sheets
- Cheat Sheet: Servers1:42:03
- Cheat Sheet: Clients1:42:54
- Common Mistakes1:43:40
40. Ecosystem and Next Steps
- The MCP Ecosystem1:44:31
- MCP Interview Questions1:45:25
- What to Learn Next1:46:37