By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
When you're building an AI application that needs to talk to external systems—file storage, APIs, databases—you need a way to wire those capabilities into your LLM's reasoning loop without hardcoding every integration. Model Context Protocol (MCP) gives you a standard way to do that. Understanding the three roles—host, client, and server—is the foundation for everything else.
A host is the AI application itself. It's what the user interacts with—Claude, an IDE, your agent application. The host owns the LLM, the UI, and the permissions model. It's where all the decisions happen.
A client is a connector that lives inside the host. It's not a separate program; it's part of the host's runtime. One client talks to exactly one server. If your host needs to reach both a file system and a GitHub API, you'll have two clients.
A server is a program that exposes capabilities over MCP. It can run locally on your machine or remotely. The server doesn't know or care about the LLM; it just responds to requests for tools, resources, or prompts. The client and server talk to each other using JSON-RPC.
| Building block | Controlled by | What it is | Example |
|---|---|---|---|
| Tools | The model decides to call them | Actions that do something or compute something | create_issue, run_query, send_email |
| Resources | The app decides what to attach | Read-only data addressed by URI | file:///report.md, db://customers/42 |
| Prompts | The user picks them | Reusable prompt templates with arguments | /summarize-pr, /explain-error |
| Elicitation (input_required) | The server asks, the user answers | A request for missing info or confirmation mid-task | Which branch? Are you sure you want to delete? |
Tools are functions the model can call. Resources are data the application can read. Prompts are templates the user can invoke. There's a useful memory trick: tools are for the model, resources are for the app, prompts are for the user.
The 2026-07-28 revision of MCP removed the initialize handshake and protocol-level sessions. Every request now carries its own protocol version and client capabilities. This is intentional. A stateless server can sit behind an ordinary load balancer: any instance can answer any request. That is what makes MCP servers easy to scale.
Instead of a long-lived connection with state, the server and client negotiate capabilities on each interaction. If the server needs information from the client to complete a request, it responds with 'input_required'. The client retries with the answers. It's more round-trips, but it's simpler and more resilient.
A new server/discover call lets a client learn what versions, capabilities, and identity a server supports. This replaced the old handshake.
Server-initiated requests—sampling, roots, elicitation—were replaced by multi-round-trip requests. The server says 'I need more input', and the client provides it.
Several features were deprecated: Roots, Sampling, and Logging moved out of core. HTTP+SSE transport and Dynamic Client Registration were deprecated in favour of Streamable HTTP and Client ID Metadata Documents. Long-running tasks moved into an official extension rather than the core protocol.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.