MCP Crash Course: Build an MCP Server and Client in TypeScript
Learn the Model Context Protocol (MCP) by building both sides. First you learn what MCP is and its four building blocks: tools, resources, prompts and sampling. Then you build a TypeScript MCP server step by step, test it with the MCP Inspector and use it from GitHub Copilot. Finally you build your own command-line MCP client powered by Gemini that can call tools, read resources, run prompts, let the AI choose tools, and answer the server's sampling requests.
Built on the publicly available MCP Crash Course: Build an MCP Server and Client in TypeScript by Web Dev Simplified — watch the original. Adapted by Oreni: the lessons, quizzes and exercises are AI-generated from the videos. Not endorsed by the creator.
Free to join, no card needed. New accounts get one module free.

Free to join, no card needed. New accounts get one module free.
What you’ll learn
- Explain what MCP is and how clients and servers talk to each other.
- Tell tools, resources, prompts and sampling apart, and know when to use each.
- Create an MCP server with the TypeScript SDK and pick the right transport (stdio or HTTP).
- Write tools with Zod parameters and annotations, and return results the AI understands.
- Expose data as resources and resource templates with dynamic URIs.
- Use sampling so a server can ask the client's AI to run a prompt.
- Test servers with the MCP Inspector and connect them to GitHub Copilot in VS Code.
- Build your own MCP client that lets an AI model (Gemini) call MCP tools.
Watching teaches. Practice proves it.
Every feature below ladders up to one question: can you actually do the job and pass the interview.
AI-graded mock interviews
Answer real interview questions in writing — AI grades you and hands back a reference answer.
Active recall
Open-ended questions after every lesson, AI-graded, with follow-ups when you're shaky.
Quizzes
Retake any quiz, review your mistakes, and keep your best score.
Hands-on exercises
Checklist tasks with an expected-outcome reveal, so you know the moment you got it right.
Spaced-repetition flashcards
FSRS-scheduled review with a live due-count — it only resurfaces cards right before you'd forget them.
Skill mindmap
See how every concept in the course connects — not a syllabus, a map.
Cheatsheets
Searchable, copyable, downloadable — a reference you keep using after you finish.
Timestamped notes
Pin a note to the exact video moment, jump straight back to it later.
Progress + resume
Every topic tracked — close the tab, come back next week, pick up exactly where you left off.
Inside the course
3 milestones, 11 lessons, ~1 hours of video. Every lesson comes with hands-on tasks and active-recall checks — you practise it, not just watch it.
Learn what MCP is, how clients and servers talk, and the four things a server can offer. Then create an empty TypeScript MCP server and check it works with the MCP Inspector.
- What MCP Is: Servers, Clients and the Four Building Blocks
- Setting Up an MCP Server and the MCP Inspector
Give your server real features: tools the AI can call, resources and resource templates it can read, a reusable prompt, and sampling, where the server asks the client's AI for help. Test each one in the Inspector and in GitHub Copilot.
- Server Tools: Letting the AI Call Your Code
- Server Resources and Resource Templates
- Server Prompts: Reusable Prompt Templates
- Server Sampling: When the Server Asks the AI
Build a command-line MCP client in TypeScript. It connects to the server, lists what it offers, calls tools, reads resources, runs prompts on Gemini, lets the AI choose tools by itself, and answers the server's sampling requests.
- Client Setup: Connecting and Listing a Server's Features
- Client: Calling Tools and Reading Resources
- Client: Running Server Prompts with an AI Model
- Client: Letting the AI Choose and Call Tools
- Client: Handling Sampling Requests from the Server
Before you start
- Basic JavaScript or TypeScript (functions, async/await, objects)
- Node.js and npm installed, and comfort with the terminal
- Optional: VS Code with GitHub Copilot, and a free Gemini API key for the client part
Start learning today
See the full course plan and try a lesson free, no account needed. Sign up to keep going and pick up where you left off on any device.
Free to join, no card needed. New accounts get one module free.