Build Your Own MCP Server
Build your own MCP server
A hands-on course on the Model Context Protocol. Learners build an MCP server over a real database, wire it to a free LLM as an agent, connect it to Claude Desktop, VS Code and Cursor, then harden it against prompt injection. The handbook and Colab notebook are free to download below.
Highlights
- 2-hour hands-on session
- 5 Colab labs
- Free 67-page handbook
Ideal for
- Developers
- Engineering students
- Product and tech managers
MCPFastMCPPythonGoogle ColabClaude DesktopGroqGemini
Free downloads
- Student handbook (PDF)The full companion: concepts, five step-by-step labs with expected output, troubleshooting, glossary and a one-page quick reference.PDF · 67 pages · 1.4 MBDownload
- Colab lab notebookEvery lab cell, numbered to match the handbook. Open Google Colab, choose File, Upload notebook, then run Cell 0.Notebook · .ipynb · 28 KBDownload
- MCP, Explained: visual primerTen visual pages on what MCP is, how a server works and how to keep it safe. Good for non-technical readers.PDF · 10 pages · 330 KBDownload
- About this courseWho it is for, what you build in each lab, and how to get the most from the free material.Article · 4 min readRead
Version history · now v1.0
- v1.0 · 17 Nov 2026First release: 67-page handbook, Colab notebook with five labs, and a 10-page visual primer. Read the post
How the session runs
One 2-hour session, about 70% hands-on. Every lab runs in Google Colab, so nothing is installed on the learner's laptop.
- Step 1 · 15 minConceptsHosts, clients, servers; tools, resources and prompts; transports
- Step 2 · 90 minLabsFive Colab labs that build one Support Desk server step by step
- Step 3 · 15 minShip & secureDesktop host configs, a live prompt-injection test and a 7-day plan
- OutcomeA working MCP server, an agent that uses it, and the handbook to keep building alone.
Program formats
- WorkshopOnline / Offline
- Schedule
- 1 day, 1 session
- Duration
- 2 hours
- Sessions · Hours
- 1 · 2 hrs
- Projects
- Working MCP server + agent
Modules
Understand
No code needed
- 01Why MCP: from N × M integrations to N + M
- 02Hosts, clients and servers
- 03Tools, resources and prompts: who is in control
- 04Transports: in-memory, STDIO and HTTP
- 05What actually goes over the wire (JSON-RPC)
Build & ship
Python + FastMCP in Google Colab
- 01Lab 1: your first MCP server in ten lines
- 02Lab 2: a Support Desk server on SQLite
- 03Lab 3: an agent loop with a free Groq or Gemini key
- 04Lab 4: one server, three transports, and Claude Desktop, VS Code and Cursor configs
- 05Lab 5: annotations, audit trails and a prompt-injection red-team
- 06Business track: ROI, risk tiers and 10 approval questions
Program timelines
Workshop
1 day · 2 hours · Online / Offline
TimeSessionLearners walk away with
0:00Why MCP exists; the host, client and server model; the three primitivesLearners walk away with: A clear mental model of MCP
0:15Setup, then Lab 1: first server and client, and the JSON Schema the AI seesLearners walk away with: A running MCP server
0:40Lab 2: Support Desk server on SQLite with tools, resources and promptsLearners walk away with: A server over a real database
1:05Lab 3: plug in a free LLM and write the agent loop by handLearners walk away with: An AI agent that acts on the server
1:30Lab 4: STDIO, HTTP and desktop host configsLearners walk away with: The server inside Claude Desktop or VS Code
1:45Lab 5: hardening and a live prompt-injection testLearners walk away with: A server you could defend in a review