How MCP Organizes Hosts, Clients, and Servers
The roles
MCP uses a client-server architecture, and the host is an AI application that connects to one or more MCP servers. For a beginner, the main takeaway is that host is a specific role in the protocol design, so a good first step is to identify which AI application in your setup is acting as that host. The host creates one MCP client for each MCP server, and each client keeps its own dedicated connection to that server. This separation matters because one host can talk to several servers at once without turning them into one shared channel, so connection handling should be checked per server rather than once for the whole app. An MCP client is the component that maintains the server connection and gets context from the server for the host to use. A useful interpretation is that client does not mean the end user or the whole application, and clearing up that term early can prevent confusion when reading SDKs, diagrams, or implementation guides.
Servers and connections
An MCP server is the program that provides context to MCP clients, and MCP uses that role name whether the program runs locally or remotely. That keeps the server idea stable across deployment choices, so when you compare examples, it helps to focus first on what context the server offers and only then on where it is running. Local servers using STDIO typically serve one client, while remote servers using Streamable HTTP typically serve many clients. This suggests different operating shapes: a local setup often looks like a paired app-and-server arrangement, while a remote setup may need you to think about several separate clients reaching the same service. MCP uses JSON-RPC 2.0 between clients and servers, with requests and responses in both directions and notifications when no reply is needed. For troubleshooting, that means the connection should be read as a stream of protocol messages, and it is worth checking for one-way notifications as well as ordinary request-response exchanges.
What client and server exchange
MCP is stateless, so each request carries the information needed to process it, including protocol version and capabilities in the _meta field. In practice, this means a server should not need hidden memory of earlier requests to understand the next one, and a client implementation should reliably send its metadata instead of assuming the server will remember it. Servers advertise supported versions and capabilities through server/discover, and MCP says servers can expose tools, resources, and prompts that clients discover with list methods.
Prompts are also one of the core server primitives, and clients use list methods to discover what primitives are available before trying to use them. The practical lesson is to start with discovery before calling anything else: check version support, inspect capabilities, and then look at the listed primitives to see whether the server offers actions, data, or reusable prompt templates.
Sources
Created with AIVE
This article was written with AIVE, our AI-powered publishing autopilot, from the cited public sources, and checked automatically before publication. OU1COMES reviews published articles and corrects or removes them when needed.
AIVE powers the intelligence. OU1COMES delivers the outcomes.
Comments
Post a Comment