Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Server Tutorial

A hands-on course for building MCP (Model Context Protocol) servers, guided by AI. Learn by doing — Claude teaches the concepts, you write the code.

What is MCP?

MCP is an open protocol by Anthropic that lets AI assistants connect to external tools and data sources. Think of it as building APIs that AI models can use — instead of REST endpoints for browsers, you create tools, resources, and prompts for AI clients like Claude.

Prerequisites

  • Experience: Senior-level JavaScript/TypeScript knowledge
  • Node.js: v18+ installed
  • Editor: VS Code with the Claude Code extension
  • Claude Code: Configured and working in VS Code

Getting Started

  1. Clone this repository
  2. Open it in VS Code
  3. Start a Claude Code chat
  4. Say: "Start lesson 1"

Claude will read the lesson plan and guide you step-by-step through building each server. No copy-pasting walls of code — you'll learn the concepts and write the implementation yourself.

Course Outline

Lesson Server What You'll Learn
01 Hello MCP Server basics, tools, Zod schemas, stdio transport, MCP Inspector
02 Markdown Notes Resources, reading files, URI schemes
03 Weather Lookup External API calls, input validation, error handling
04 Prompt Library Prompt templates, dynamic arguments
05 WordPress Toolkit Combining tools + resources, real-world CMS integration
06 Project Scaffolder Multi-step tools, file system operations, complex inputs

Each lesson builds on the previous one. Start from lesson 1 if you're new to MCP.

Project Structure

lessons/        # Lesson outlines that guide the AI instructor
servers/        # Your code — each lesson creates a server here
CLAUDE.md       # AI instructor configuration

Starting a Specific Lesson

You can jump to any lesson by telling Claude:

  • "Start lesson 3"
  • "I'd like to work on the weather lookup server"
  • "Continue where I left off"

Claude will check your servers/ directory to see what you've already built and pick up from there.

Tech Stack

  • TypeScript (ES modules)
  • @modelcontextprotocol/sdk — Official MCP SDK
  • zod — Input validation
  • Node.js runtime

About

Hands-on course for building MCP servers.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages