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

> Canonical: https://skillalmanac.com/learn/mcp-client-vs-mcp-server | Updated: 2026-11-25 | Index status: index-eligible

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

## Facts

- 2026-11-25 current-source check for the 2026-07-28 architecture: the host creates one MCP client per server and each client maintains a dedicated connection to its corresponding server (https://modelcontextprotocol.io/docs/learn/architecture)
- 2025-06-18 normative frame, verified 2026-11-25: authorization is optional; its defined flow applies to HTTP-based transports, while stdio implementations should retrieve credentials from the environment and implementations may negotiate custom strategies (https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization)
- 2025-06-18 normative frame, verified 2026-11-25: a protected MCP server must validate that tokens were issued for it and must not pass the client's token through to an upstream API (https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization)
- 2025-06-18 normative frame, verified 2026-11-25: sampling/createMessage was a server-to-client request; clients retained final model selection and should provide human approval controls (https://modelcontextprotocol.io/specification/2025-06-18/client/sampling)
- 2026-11-25 current-source check for protocol revision 2026-07-28: sampling and roots are deprecated; sampling's documented alternative is direct integration with an LLM provider API, while elicitation remains a current client feature (https://modelcontextprotocol.io/docs/learn/architecture)
- 2026-11-25 current-source check for protocol revision 2026-07-28: change notifications are opt-in and best-effort, particularly across reconnects, so clients should also poll to preserve freshness (https://modelcontextprotocol.io/docs/learn/architecture)

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](https://modelcontextprotocol.io/docs/learn/architecture) for later revisions.

| Question | MCP client | MCP server |
| --- | --- | --- |
| Where it runs | Inside the host application | A local process (STDIO) or a remote service (Streamable HTTP) |
| How many peers | One server per client | Local servers usually serve one client; remote servers often serve many |
| Who sends requests | Usually initiates discovery and server-feature requests such as `tools/call` | Responds to server-feature requests and may initiate negotiated client-feature requests; it can also send notifications |
| Credentials | For a protected HTTP server using the specified flow, obtains and sends a server-specific token | For that flow, validates tokens intended for itself; a stdio implementation normally reads credentials from its environment |
| What it exposes | Current client features such as elicitation; 2025-06-18 also defined sampling and roots | Tools, 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](/skills/skill-almanac/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.

## Related skills

- [mcp-server-builder](https://skillalmanac.com/skills/skill-almanac/mcp-server-builder.md): Platform Score 56/100 (provisional)

## Related guides

- [Debug an MCP Server with MCP Inspector](https://skillalmanac.com/learn/debug-an-mcp-server-with-inspector.md)
- [MCP Server Examples: Learning From a Reference Server](https://skillalmanac.com/learn/mcp-server-examples.md)
- [Python MCP server quickstart: build and connect one locally](https://skillalmanac.com/learn/python-mcp-server-quickstart.md)
- [What Are MCP Apps? Interactive UI in AI Chats](https://skillalmanac.com/learn/what-are-mcp-apps.md)

## Sources

- https://modelcontextprotocol.io/docs/learn/architecture
- https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization
- https://modelcontextprotocol.io/specification/2025-06-18/client/sampling

Platform Scores report our assessment under a published method. They are not a safety guarantee.
