LearnThatStack Ace your next interview
Model Context Protocol (MCP) · question
Question 2 of 56

Explain the MCP architecture: what are hosts, clients, and servers?

beginner
← All Model Context Protocol (MCP) questions
Re-explain

MCP splits an integration into three roles: a host, one or more clients inside it, and servers that expose capabilities.

Host (Claude Desktop, IDE, agent)
├── Client A  <-->  Server A  (filesystem, local)
├── Client B  <-->  Server B  (GitHub, remote)
└── Client C  <-->  Server C  (database, local)

The host is the AI application the user sees. It holds the model conversation, renders the UI, and asks the user for permission.

A client is a connector the host creates, and each client talks to exactly one server. Ten servers means ten clients. Since the 2026-07-28 revision, every request a client sends carries its own protocol version and capabilities, so no session state sits between requests.

A server is a separate program offering capabilities to its client. It may run locally as a subprocess or remotely over HTTP.

That one-to-one pairing is the isolation boundary. A server sees only what its own client sends, never other servers or the full conversation.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Model Context Protocol (MCP) One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

What you can say

  1. MCP splits an integration into three roles: the host, the clients inside it, and the servers that expose capabilities.
  2. The host is the AI application the user sees, like Claude Desktop or an IDE, and it holds the model conversation, renders the UI and asks the user for permission.
  3. The host creates one client per server, and each client talks to exactly one server, so ten servers means ten clients.
  4. A server is a separate program offering capabilities to its client, running either locally as a subprocess or remotely over HTTP.
  5. Since the 2026-07-28 revision, every request a client sends carries its own protocol version and capabilities, so no session state sits between requests.
  6. That one-to-one pairing is the isolation boundary, so a server sees only what its own client sends, never other servers or the full conversation.

Weak answers to avoid

  • Mixes up host and client The host is the app the user sees. A client is a connector it creates for one server. Blur them and you can't say where permission checks and isolation live.
  • Has one client talking to every server That drops the one-to-one pairing the design rests on. Say ten servers means ten clients, and each server sees only its own client's traffic.
  • Assumes servers see the whole conversation A server gets only what its client sends, never other servers or the full chat. Missing this means you can't reason about privacy or data leaks between servers.
  • Treats every server as a hosted web API Servers can run locally as a subprocess or remotely over HTTP. Forgetting the local case skips common setups like filesystem and database servers.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Model Context Protocol (MCP) cheatsheet.

← Back to all Model Context Protocol (MCP) questions
Pro · $10/mo

49 of 56 Model Context Protocol (MCP) answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime