MCP Fundamentals
MCP Client vs Server: Roles, Hosts and Gateways
By MCP Beast·
People often say "MCP client" when they mean the application a user chats with. The specification uses the word more narrowly. In the Model Context Protocol, the application is the host, the client is a connection component inside it, and the server is the program that provides context and capabilities. Mixing these up leads to wrong assumptions about who holds credentials, who sees the conversation and where a gateway belongs.
This guide follows the MCP 2026-07-28 architecture page. For the protocol overview, read What Is the Model Context Protocol?. For the server side in depth, see What Are MCP Servers?.
The three roles in the specification
The specification describes a client-host-server architecture in which each host can run multiple client instances. Each role has a different job.
The host is the container and coordinator. Per the architecture page, it creates and manages client instances, controls their connection permissions and lifecycle, enforces security policies and consent requirements, handles user authorization decisions, coordinates the AI or LLM integration and manages context aggregation across clients. A chat application, an IDE assistant or an agent runtime can each be a host.
The client is created by the host. It communicates with exactly one server, attaches the protocol version and its capabilities to every request, routes protocol messages in both directions, manages subscriptions and notifications and maintains security boundaries between servers. A host with three servers therefore runs three clients, one per connection.
The server provides specialized context and capabilities. It exposes resources, tools and prompts, operates independently with a focused responsibility and must respect security constraints. It can be a local process or a remote service.
The server never talks to the model. It talks to its client, and the host decides what reaches the model.
The 1:1 rule and why it matters
The specification states that each client has a 1:1 relationship with a particular server. This is an isolation mechanism, not an implementation detail. One of the design principles is that servers should not be able to read the whole conversation or "see into" other servers. Full conversation history stays with the host, and cross-server interactions are controlled by the host.
Two practical effects follow:
- A server receives only the context its client sends for a request, so one connector cannot browse what another connector returned.
- Failure and sign-in state are per connection. One disconnected server does not take down the others.
Note that current revisions describe the protocol as stateless: every request is self-contained and carries its own protocol version and capabilities. Do not assume a long-lived session unless your transport or product adds one.
What each side exposes
The two sides contribute different primitives.
| Aspect | Host | Client | Server |
|---|---|---|---|
| Where it lives | The user-facing application | Inside the host, one per server | Local process or remote service |
| Connections | Many clients | Exactly one server | Serves its connecting clients |
| Primary job | Policy, consent, model integration | Protocol messaging for one connection | Provide context and capabilities |
| Exposes to the other side | Approved servers, user decisions | Version, capabilities, elicitation handling | Tools, resources, prompts |
| Does not do | Run a server's tool logic | Connect to more than one server | See the whole conversation |
Servers declare capabilities such as tool support, resource subscriptions and prompt templates. These are the three server primitives covered in MCP resources, tools and prompts.
Clients declare capabilities such as elicitation handling. In the 2026-07-28 revision, a server that needs input from the user asks through an InputRequiredResult within its reply, and the client passes the question to the host, which asks the user. The elicitation guide covers that flow.
The specification also defines client features called sampling and roots. Sampling lets a server request a model completion through the client, and roots let a client tell a server which directories or files are in scope. Both are marked Deprecated as of 2026-07-28 on the deprecated features page. A deprecated feature remains in the specification, but new implementations should not adopt it. The suggested paths are to pass directories or files through tool parameters, resource URIs or server configuration, and to integrate directly with LLM provider APIs. The sampling and version compatibility guide explains how to handle older peers.
A typical request, step by step
Consider a user asking a host to look up a ticket:
- The host receives the request and decides which connected server is relevant.
- The host's client for that server sends a request. The request carries the protocol version and the client's capabilities.
- If the server needs input, such as a confirmation, it returns an
InputRequiredResult. The client relays it to the host, the host asks the user and the client resends the original request with the answer. - The server returns its response to the client, and the client hands the result to the host for the next model step.
At no point does the model connect to a server directly. The host controls the path, which is why the host is the natural place for consent and policy.
Where a router or gateway sits
The specification defines three roles. It does not define a fourth role called gateway. A gateway, proxy or router is an architectural pattern built from the existing roles, and it plays two of them at once:
- To the host, it is a server. The host's client connects to the gateway as it would to any other MCP server, and the gateway presents a catalog of tools, resources and prompts.
- To each upstream, it is a client. The gateway maintains its own client connection to every upstream server, preserving the one-client-per-server relationship on that side.
Host
└─ Client A ──► Gateway (server face)
Gateway (client face)
├─ Client 1 ──► Upstream server 1
├─ Client 2 ──► Upstream server 2
└─ Client 3 ──► Upstream server 3
This layout lets the host keep one connection instead of many. It also creates a place to apply authentication, policy and logging, as described in What Is an MCP Gateway?. The differences between forwarding traffic, hosting a process and selecting capabilities are covered in the gateway, proxy and router comparison, and the multi-server proxy guide shows how to set one up.
A gateway also inherits obligations from both roles. Treat these as design questions for your own deployment, since the specification does not prescribe the answers:
- Capability mapping. The gateway's server face declares what the host sees, while each upstream connection negotiates separately. Decide which upstream features are surfaced and which are hidden.
- Identity. Decide whether upstream calls use the user's identity, a service identity or something else, and record that choice. Do not assume the upstream sees the same caller as the gateway.
- User input. If an upstream returns an
InputRequiredResult, the gateway needs a defined way to relay it to the host rather than answering for the user. - Naming. Two upstream servers may publish a tool with the same name. Keep the owning server's identity attached through discovery and invocation.
MCP Beast works this way: it appears to the host as one MCP server and connects to upstream servers as a client. Its router guide describes a discover_tools, get_schema and invoke sequence over those connected servers. That sequence is a product workflow, not a set of protocol methods that every MCP server implements.
How to apply this
Use the role names precisely when you design or review a deployment:
- Name the host and list the clients it creates. Each should map to exactly one server.
- For each server, record whether it is local or remote and which primitives it exposes.
- Decide where consent and policy live. The specification puts these in the host, so a gateway should add controls without replacing the host's responsibility to ask the user.
- If you add a gateway, draw both faces. Check that every upstream still has its own client connection and that identity handling is explicit.
- Check your client libraries against the revision you target, especially for sampling and roots.
Frequently Asked Questions
Is an MCP client the same as an MCP host?
No. The host is the application that coordinates the conversation and the model. A client is a component the host creates to hold a connection to a single server. One host usually runs several clients.
Can one MCP client connect to several servers?
Not under the specification. Each client communicates with exactly one server. To reach several servers, a host creates several clients, or connects to a gateway that presents several upstream servers as one.
Can an MCP server call the model directly?
Servers do not connect to the model themselves. Sampling, in which a server requests a completion through its client, was the mechanism for this, and it is deprecated as of the 2026-07-28 revision. Check the current specification before building on it.
Is a gateway a client or a server?
Both, depending on the side. It acts as a server toward the host's client and as a client toward each upstream server. The specification does not define it as a separate role.
Planning a gateway or a router in front of your MCP servers? MCP Beast can help you map hosts, clients and upstream servers, then test the setup with a few real tasks before you widen it.