Training / Tech + non-tech

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

Version history · now v1.0

  1. 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.

  1. Step 1 · 15 minConceptsHosts, clients, servers; tools, resources and prompts; transports
  2. Step 2 · 90 minLabsFive Colab labs that build one Support Desk server step by step
  3. Step 3 · 15 minShip & secureDesktop host configs, a live prompt-injection test and a 7-day plan
  4. 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

  1. 01Why MCP: from N × M integrations to N + M
  2. 02Hosts, clients and servers
  3. 03Tools, resources and prompts: who is in control
  4. 04Transports: in-memory, STDIO and HTTP
  5. 05What actually goes over the wire (JSON-RPC)

Build & ship

Python + FastMCP in Google Colab

  1. 01Lab 1: your first MCP server in ten lines
  2. 02Lab 2: a Support Desk server on SQLite
  3. 03Lab 3: an agent loop with a free Groq or Gemini key
  4. 04Lab 4: one server, three transports, and Claude Desktop, VS Code and Cursor configs
  5. 05Lab 5: annotations, audit trails and a prompt-injection red-team
  6. 06Business track: ROI, risk tiers and 10 approval questions

Program timelines

Workshop

1 day · 2 hours · Online / Offline
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

More Tech + non-tech trainings

  1. 01Generative AI & Python Basics