Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

  1. AI Academy
  2. /
  3. Building MCP Servers
IntermediateFree course

Building MCP Servers

Design, build and ship Model Context Protocol servers that agents use well, and see how MCP's mental model differs from REST.

3 modules · 8 lessons~26 hoursUpdated 2026-11-02Certificate included

See the curriculum
  • Lessons8
  • Quizzes8
  • Sources56
  • Of study~26h

About this course

About this course

MCP servers are how agents reach your systems, and most of them are thin wrappers over a REST API that agents use badly. This course takes the protocol apart (JSON-RPC messages, the stateless 2026 revision, stdio and Streamable HTTP), then builds one server from an existing REST API: tools designed for a model rather than a developer, resources, prompts and confirmations, remote deployment with OAuth, defences against prompt injection, and the tests and agent evaluations that tell you it works. REST is the contrast throughout: what MCP borrowed from it, and where the two deliberately differ. Everything is TypeScript on the official SDK, and the agent evaluations run on your Claude subscription.

About the running example

The examples follow Larchmere, a fictional software company whose support team works in Larchmere Desk, an internal helpdesk with a REST API for tickets, customers, help articles and incidents. You build the MCP server that lets agents work with it: Claude Code for engineers, a triage agent, and Claude for the support team. A ticket is a customer's request, and an incident is an outage that several tickets can be linked to.

Outcomes

What you'll learn.

  1. 1Explain how MCP's model differs from REST (who decides to call, interface granularity, state, discovery, errors, caching) and when an MCP server is the right interface
  2. 2Read and write MCP messages on the wire, and serve both current and 2025-era clients over stdio and Streamable HTTP
  3. 3Design task-shaped tools with clear schemas, structured results, honest annotations and errors a model can act on, instead of wrapping endpoints one to one
  4. 4Test a server at the protocol level and evaluate it with an agent on checkable tasks, comparing designs with numbers
  5. 5Add resources, prompts and confirmations, deploy a stateless remote server behind OAuth, and defend it against prompt injection and token misuse
  6. 6Ship and evolve a server without breaking the agents that depend on it
Curriculum

3 modules, 8 lessons.

9h 55m of lessons

  1. Module 1 · 2 lessons · 2h 35m

    The protocol and its mental model

    What MCP standardises, how it differs from REST, and what actually crosses the wire.

    1
    1. 1MCP and REST: two mental modelsWhy MCP exists, how its design differs from REST's constraints and where the 2026 revision moved towards them, and what wrapping a REST API one endpoint per tool costs an agent.1h 15m8-question quiz7 sources
    2. 2The protocol on the wireThe JSON-RPC messages MCP sends, the stateless 2026-07-28 revision and the 2025-era handshake it replaced, stdio and Streamable HTTP framing, and the utilities and message patterns built on top.1h 20m8-question quiz7 sources
  2. Module 2 · 3 lessons · 3h

    Designing servers agents use well

    Task-shaped tools, measured with tests and agent evaluations, plus resources, prompts and asking the user for input.

    2
    1. 3Designing tools, not endpointsTurn an endpoint-per-tool server into a few task-shaped tools a model uses well, with names, schemas, structured results, errors and annotations designed for a reader that decides at run time.1h8-question quiz7 sources
    2. 4Testing and evaluating serversPin a server's contract with in-process protocol tests in both eras and scripted Inspector checks, then find out whether agents actually do better with it, using checkable end states, repeated runs and a paired comparison.1h8-question quiz7 sources
    3. 5Resources, prompts and asking for inputExpose read-only context as resources with cache hints, workflows as prompts the user picks, and ask the user to confirm an action through a multi round-trip request whose state the server signs.1h8-question quiz7 sources
  3. Module 3 · 3 lessons · 4h 20m

    Running servers in production

    Remote deployment with OAuth, security against injection and token misuse, and shipping changes safely.

    3
    1. 6Remote servers and authorizationServe an MCP server over Streamable HTTP as a stateless OAuth resource server, with per-request instances, Host and Origin checks, protected resource metadata, and tokens checked for issuer, audience and scope before they are mapped to a user.1h 20m7-question quiz7 sources
    2. 7Securing MCP serversDefend an MCP server as a target (inputs, authorization, tokens, handles, local exposure) and as a channel that carries untrusted text into a model, then measure the defences on your own server with harmless canaries.1h 35m8-question quiz7 sources
    3. 8Shipping and evolving serversTreat tool names, schemas, annotations and descriptions as a public contract, check every change against it in CI for both protocol eras, fit the limits of the hosts your server runs in, and ship it with structured logs, an npm package and a registry entry.1h 25m8-question quiz7 sources
Capstone

Ship an MCP server for an existing REST API

Turn Larchmere Desk's REST API into larchmere-desk, a production MCP server with task-shaped tools, resources and confirmations, tests in both protocol eras, an agent evaluation against a naive wrapper, OAuth on a stateless HTTP endpoint, a red-team with canaries, and a contract check in CI.

Open the project brief
Certificate · free

Finish it. Get certified.

Complete every lesson of Building MCP Servers and you get a certificate with your name on it. Free, like the course.

  • A public page with a certificate ID anyone can check
  • Download it as a PDF
  • Add it to LinkedIn in one click
Sample
FAQ

Building MCP Servers, answered.

Is Building MCP Servers free?

Yes, for everyone: all 8 lessons, 8 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.

Do I get a certificate?

Yes. Finish every lesson of Building MCP Servers and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.

How long does Building MCP Servers take?

About 26 hours: 3 modules and 8 lessons, at your own pace. Your progress is saved to your account, on every device.

Which roles is it for?

It's on the AI Engineer and Forward Deployed Engineer roadmaps: the courses those jobs ask for, in the order to take them.

What do I need before I start?

Agent Foundations, or equivalent: how tool calling works and what makes a tool easy for a model to use. Comfortable writing TypeScript and running Node.js 24 projects from the terminal. Familiar with HTTP and JSON REST APIs: methods, status codes, headers. Claude Code installed on a Claude subscription.

Role roadmaps

Part of these roadmaps

  • Become an AI Engineer
  • Become a Forward Deployed Engineer

Before you start

Prerequisites

  • Agent Foundations, or equivalent: how tool calling works and what makes a tool easy for a model to use
  • Comfortable writing TypeScript and running Node.js 24 projects from the terminal
  • Familiar with HTTP and JSON REST APIs: methods, status codes, headers
  • Claude Code installed on a Claude subscription