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

Course overview

Building MCP Servers

Free · sign in to start and track progress

1 · The protocol and its mental model

  • 1MCP and REST: two mental models

    Exercise answers

    • Answer: Build the naive server and measure its baseline
    • Answer: Generate the naive server from an OpenAPI description
  • 2The protocol on the wire

2 · Designing servers agents use well

  • 3Designing tools, not endpoints
  • 4Testing and evaluating servers
  • 5Resources, prompts and asking for input

3 · Running servers in production

  • 6Remote servers and authorization
  • 7Securing MCP servers
  • 8Shipping and evolving servers
CapstoneShip an MCP server for an existing REST APIReference implementation

Module 1 · The protocol and its mental model · Lesson 1

MCP and REST: two mental models

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

75 min 2 videos 3 exercises 8-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptMCP servers in Claude CodeThe Larchmere Desk mock API

By the end of this lesson you can

  • Explain the integration problem MCP solves and the roles of host, client and server
  • Compare REST and MCP on who decides to call, granularity, discovery, state, direction, errors, caching, safety and authorization, separating sourced facts from inference
  • Describe which of REST's constraints the stateless 2026-07-28 revision adopted, and why MCP is still RPC
  • Choose between an MCP server, a REST API, a command-line tool and a skill for a given consumer
  • Measure an endpoint-shaped MCP server's definition size, calls and tokens on agent tasks, as a baseline to improve on

On this page

  • Why MCP exists
  • REST in one page
  • Two mental models
  • How the 2026 revision moved MCP towards REST
  • Which interface for which consumer
  • Most MCP servers are thin REST wrappers
  • Worked example: the naive Larchmere server, measured
  • Misconceptions and limits
  • Where this goes next
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Why MCP exists
  2. 02REST in one page
  3. 03Two mental models
  4. 04How the 2026 revision moved MCP towards REST
  5. 05Which interface for which consumer
  6. 06Most MCP servers are thin REST wrappers
  7. 07Worked example: the naive Larchmere server, measured
  8. 08Misconceptions and limits
  9. 09Where this goes next
  10. 10Summary

Sources & further reading

  • Architectural Styles and the Design of Network-based Software Architectures, Chapter 5: Representational State Transfer (REST)Paper · Roy T. Fielding · University of California, Irvine · 2000The primary definition of REST. Read 5.1 (the constraints one by one), especially 5.1.3 on statelessness and 5.1.5 on the uniform interface and its efficiency trade-off, before you compare anything with MCP.
  • From REST to MCP: An Empirical Study of API Wrapping and Automated Server Generation for LLM AgentsPaper · Meriem Mastouri, Emna Ksontini, Amine Barrak, Wael Kessentini · 2025The study behind this lesson's evidence: 116 official MCP servers, most of them REST-backed bare wrappers, plus automated generation from 80 OpenAPI contracts. Read the abstract and the RQ1, RQ2 and RQ4 results.
  • Writing effective tools for agents, with agentsLab research · Ken Aizawa · Anthropic · 2025Why tools are a contract with a non-deterministic agent rather than with another program, and why wrapping endpoints one to one serves agents badly. Read "Choosing the right tools for agents".
  • Introducing the Model Context ProtocolLab research · Anthropic · 2024The launch announcement and the integration problem MCP set out to solve. Two minutes.
  • Specification (2026-07-28)Docs · Model Context Protocol · 2026The current revision's overview: hosts, clients and servers, the Language Server Protocol inspiration, and the trust and safety principles. Then read Base Protocol: Statelessness to see how close it now sits to Fielding's wording.
  • REST APIs must be hypertext-drivenArticle · Roy T. Fielding · 2008Fielding on what is and isn't REST, including the line "That is RPC." Five minutes; it is why this lesson calls MCP RPC without apology.
  • Exploring the Future of MCP TransportsArticle · Kurtis Van Gent, Shaun Smith · Model Context Protocol · 2025The maintainers' case for a stateless protocol with HTTP-style caching and routing headers, written before the 2026-07-28 revision adopted it.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 10 more sections
  • 3 hands-on exercises
  • A 8-question quiz
  • Progress, quiz scores and bookmarks