MCP Client vs MCP Server: Who Starts Calls and Holds Keys

MCP client vs server: the client runs inside the host app, the server exposes tools. Who starts each call and where credentials live.

Updated · Markdown version

An MCP client is the component inside an AI host application that maintains a connection to one MCP server, while the server is the program that offers tools, resources and prompts. The useful distinction is which protocol features each side exposes, which messages each side may initiate, and how credentials are handled for the chosen transport and protected systems.

Client and server at a glance

The current architecture checked on 2026-11-25 describes the host as the application, such as Claude Code or an editor with MCP support, that creates one client per server. The table uses that 2026-07-28 architecture for current roles; later sections label historical 2025-06-18 sampling and authorization behavior explicitly. Check the architecture page for later revisions.

QuestionMCP clientMCP server
Where it runsInside the host applicationA local process (STDIO) or a remote service (Streamable HTTP)
How many peersOne server per clientLocal servers usually serve one client; remote servers often serve many
Who sends requestsUsually initiates discovery and server-feature requests such as tools/callResponds to server-feature requests and may initiate negotiated client-feature requests; it can also send notifications
CredentialsFor a protected HTTP server using the specified flow, obtains and sends a server-specific tokenFor that flow, validates tokens intended for itself; a stdio implementation normally reads credentials from its environment
What it exposesCurrent client features such as elicitation; 2025-06-18 also defined sampling and rootsTools, resources and prompts; notifications require the relevant capabilities and, in 2026-07-28, an opt-in subscription

Decision rule: work on the client side when you configure an app to use servers someone else built. Work on the server side when other hosts must call your tools or read your data.

Worked example: a remote server with a user's token

Suppose a team runs a protected HTTP server that reads a project tracker and uses the optional authorization flow defined in the 2025-06-18 specification. If the client encounters a 401 challenge, it parses WWW-Authenticate, fetches protected-resource and authorization-server metadata, completes the OAuth flow, and sends the bearer token on each HTTP request. The server validates that the token was issued for it. If the server calls the tracker's API, it uses a separate upstream token and must not forward the client's token. The MCP HTTP authorization flow does not apply to stdio; the specification says stdio implementations should obtain credentials from the environment, while allowing custom authentication strategies.

Steps to check which side you are on

  1. Find the config that names the server. A URL indicates an HTTP endpoint; check separately whether it is local or remote and whether it requires authorization.
  2. A command and arguments usually indicate a host-launched stdio server. Under the 2025-06-18 guidance, stdio credentials should come from its environment unless the implementation has negotiated a custom strategy.
  3. Call tools/list from the client. Tools that appear there are what the model can request.
  4. Check the server log destination. For STDIO servers the overview says to log to stderr, because stdout carries protocol messages.

Pitfalls

  • Assuming the server can always request a model completion through the client. Protocol revision 2025-06-18 defined sampling/createMessage as a server-to-client request, with the client retaining model choice, permissions and denial controls. Sampling is deprecated as of 2026-07-28; current implementations should integrate directly with an LLM provider API. Current servers can still initiate negotiated client-feature requests such as elicitation.
  • Forwarding the user's token. Under the optional 2025 HTTP authorization flow, a server must validate that the client's token was issued for it and must use a separate token for an upstream API.
  • Writing logs to stdout in a stdio server. Stdout carries protocol messages, so send logs to stderr.
  • Relying on current change notifications alone. In 2026-07-28 they require an opt-in subscription stream and are best-effort, particularly across reconnects. Refresh with tools/list when notified and poll as a fallback.
  • Mixing up transports in config. A URL field and a command field lead to different auth paths. Confirm the transport before debugging a 401.

When to use a skill instead

If you are the one writing the server, a reusable skill helps more than ad-hoc prompting because the review covers the whole contract at once. mcp-server-builder is a related skill on this site for the server side: it reviews tool definitions, input schemas, output bounds, error handling and the choice of transport and auth. It does not configure clients, so for setting up a host to use an existing server, no related skill applies and the protocol pages above are the reference.

FAQ

Does an MCP client have to come from the same vendor as the server? No. The client and server are separate programs that meet through the protocol, and the host creates one client per server it connects to.

Is an MCP server the same as an agent? No. The protocol defines how context and tools are exchanged, and the MCP documentation states that it does not dictate how an application uses an LLM or manages its context.

How is an MCP server different from a plain API? A client can discover an MCP server's tools at runtime through tools/list, which returns tool definitions including names and input schemas. A host may expose those tools to a model for selection, subject to the host's interface, permission and routing policy.

Platform Score is our assessment under a published method. It is not a safety guarantee.

Terms this guide uses

This item is a worked example in the AI glossary for:

Next steps

  1. Debug an MCP Server with MCP Inspector Read next.
  2. MCP Server Examples: Learning From a Reference Server Read next.
  3. All guides by topic Browse everything.

Sources