What Is MCP and How Does It Work? An API on Top of an API, Plus stdio, SSE and Streamable HTTP

What Is MCP and How Does It Work? An API on Top of an API, Plus stdio, SSE and Streamable HTTP
Get in touch or AI consulting Join the AI Community & Comprehensive Online Courses for All Levels

Everybody tells you to “connect an MCP” to your AI. Fewer people can tell you what that thing actually is. In this short clip from a lesson, a student asks Ariel exactly that: how does MCP work, and what’s the deal with all the protocols it talks about? He answers with one CRM, two actions, and a quick tour of the transports.

Start with a plain API

Ariel’s example is a CRM with two actions: query a customer and add a customer. If outside software wants to give the CRM commands, someone has to build a layer on top of it called an API. The API exposes those two actions. You talk to the API by its rules, and the API talks to the CRM by the CRM’s rules. Nothing new so far; that’s how software has talked to software for decades.

MCP: an API on top of the API

Now you want the AI to use that CRM. That’s where MCP comes in. Ariel describes it as “an API on top of an API”: you define the same actions (add a customer, query a customer), but you describe them in a way the AI understands, with a full specification around it. The AI reads that menu, knows what it’s allowed to call, and calls it.

The practical news is that you rarely have to hand-write one anymore. Today, if you tell an AI “build me an MCP,” it knows how to build an MCP.

A two-minute detour through protocols

The student’s follow-up was about the protocols MCP mentions, so Ariel steps back and explains what a protocol even is:

  • HTTP (Hypertext Transfer Protocol): the agreement your laptop uses to talk to websites. “Hypertext” is just text: Hebrew, English, “hello,” “what’s up.”
  • FTP (File Transfer Protocol): the agreement for moving files between your server and a file server.

A protocol is simply an agreed way for two sides to talk.

The three ways to talk to an MCP

1. stdio. “Standard input/output.” The MCP runs locally, and the AI opens that black terminal screen and talks to it there: commands go in through the terminal, answers come back through the terminal.

2. HTTP with SSE. The MCP sits on a server and you reach it over HTTP like a normal website. The first approach was SSE (Server-Sent Events): you send an instruction, the MCP fires back an event, and that event is the response. In Ariel’s words, “it worked terribly.” If you asked two things, which event belongs to which request? He did an MCP on SSE once, and it was a nightmare.

3. Streamable HTTP. The fix was streaming. Ariel points at the AI chat on his screen writing its answer word by word: it writes continuously because it receives the answer from the internet continuously, character by character. Streamable HTTP uses the same idea. You send a command and the server opens a communication pipe that stays up. Sometimes it streams data through it, sometimes it’s quiet, but nothing gets lost waiting for an orphaned event. A stable line, and the answers flow back whenever they’re ready.

His takeaway for anyone building today: the SSE era was a mess, streamable HTTP is the stable option, and stdio is the simple local one.

🔥 Roast Corner

Let’s start with Ariel’s opening line: “There is a protocol… well, it’s not a protocol, it’s a layer.” Ariel, my friend, the P in MCP stands for Protocol. It’s the Model Context Protocol. That’s like introducing someone as “my brother, well, not my brother, he’s my mother’s son.”

Then there’s the industry. The official tool for debugging MCP servers, the MCP Inspector, just shipped a security advisory where a malicious remote server could abuse the OAuth login callback to quietly flip the Inspector from HTTP to stdio and run whatever local command it liked. So the black-screen transport Ariel calls “the base” turned out to be the attacker’s favorite too. You log in, and the server logs into you.

And Ariel doing an MCP on SSE back when the spec was still settling, then calling it “a nightmare”? Sir, you volunteered for a protocol that answered your questions at random and then filed a complaint that the answers came at random. Streamable HTTP fixed it for everyone. Ariel’s contribution was the bug report, delivered a year late, on YouTube.

🤖 AI for Humans

You had heart surgery last week, it’s 3 a.m., and you’re staring at your bandage wondering whether you’re allowed to take it off yet. Nobody’s answering the phone at that hour. In New Brunswick, Canada, patients can now just ask.

Horizon Health and Vitalité Health Network have rolled out Seamless Answers, a conversational AI feature inside the SeamlessMD recovery app, for cardiac, surgical and maternity care. Patients can type questions like “When can I remove my dressing?” or “Is this symptom normal?” and get an answer any time of day. The important design choice: according to co-founder Dr. Joshua Liu, it only answers from the education library the patient’s own care team has approved, not from the open internet. If you ask something like “I have a fever, what should I do?”, it tells you to talk to your nurse. Horizon says 7,700 patients have signed up for the app since 2023, and New Brunswick is the first Atlantic Canadian province to offer the feature across all its health regions.

It’s a nice real-world cousin of this video: the AI isn’t trusted to roam free. It gets a defined, approved set of things it can draw on, which is the same instinct behind giving an AI an MCP instead of the keys to the whole CRM.

Source: Global News, “‘Is this symptom normal?’: AI tool for patient questions rolls out in New Brunswick”

Get in touch or AI consulting Join the AI Community & Comprehensive Online Courses for All Levels

💬 Comments