Join our Newsletter — 33% off our NHI Course

What is the difference between an MCP host, client, and server?

The host is the AI application the user interacts with and where the session is managed. The client handles one connection to a specific server, including discovery and request formatting. The server exposes the actual tools, resources, and prompts. Security responsibility is split across all three, so each boundary needs separate controls.

Why This Matters for Security Teams

In MCP, the host, client, and server are not just architecture labels. They define where trust begins, where it is mediated, and where tool execution actually happens. Security teams often misread MCP as a single integration point, then apply one control set to three different boundaries. That creates blind spots around session control, server discovery, tool authorization, and secrets exposure, especially when the host and client are treated as part of the same risk domain.

This matters because the server is where tools and resources become actionable, while the host is where the user experience and session context are managed. If either side is weak, an attacker can redirect requests, abuse permissions, or expose credentials through configuration and transport flows. NHIMG research on The State of MCP Server Security 2025 found that 53% of mcp server expose credentials through hard-coded values in configuration files, which shows how quickly a design boundary becomes an operational failure.

Practitioners usually discover this after a server has already been over-permissioned or a client has been trusted to format requests it should never have been allowed to elevate.

How It Works in Practice

The host is the application layer the user sees. It owns the session, brokered interactions, and often the policy decisions that shape what the user can do. The client is the per-server connector. It discovers a server, formats requests for that specific endpoint, and carries the permissions or context needed for that connection. The server exposes the actual tools, prompts, and resources, and therefore becomes the enforcement point for what can be executed.

That split means security should follow the boundary, not the brand name. A host needs controls for session integrity, user consent, and prompt or tool invocation governance. A client needs scoped credentials, strict request formatting, and clear separation between server connections. A server needs tool-level authorization, input validation, logging, and secret handling. Best practice is evolving, but current guidance suggests treating each server connection like a distinct non-human identity boundary rather than a generic integration.

  • Host: manage user session, consent, and policy orchestration.
  • Client: bind one connection to one server and keep permissions narrow.
  • Server: expose only the minimum tools and resources required.
  • All three: log requests, preserve traceability, and avoid hard-coded secrets.

For a broader framing of identity and autonomy, see NHIMG’s Ultimate Guide to NHIs — What are Non-Human Identities and the OWASP resource OWASP Agentic AI Top 10, which both reinforce why identity, tool access, and execution context must be separated.

These controls tend to break down when one client is allowed to talk to many servers with shared credentials, because a compromise in one connection can cascade across the entire MCP environment.

Common Variations and Edge Cases

Tighter separation often increases operational overhead, requiring organisations to balance cleaner boundaries against more configuration, more logging, and more policy maintenance. That tradeoff becomes visible in real deployments where teams want fast onboarding, shared connectors, or broad tool reuse across assistants.

There is no universal standard for this yet, so implementations vary. Some environments collapse host and client responsibilities into one product, while others split them across platform services. That is acceptable only if the security model still distinguishes session governance from connection handling and tool exposure. If a server also performs discovery logic, or if a client can dynamically expand its own permissions, the boundary is no longer clean and the risk profile changes.

Edge cases also matter in multi-tenant or agentic workflows. When one host manages several users, or one client serves multiple servers, the chance of accidental privilege bleed rises sharply. In those cases, current guidance suggests per-server scoping, ephemeral credentials, and explicit audit trails for every tool call. NHIMG’s The State of MCP Server Security 2025 and the OWASP companion OWASP Top 10 for Agentic Applications 2026 both point to the same operational lesson: the design is only as safe as the weakest boundary.

In practice, the model breaks down fastest in shared enterprise deployments where a single client or host is reused across teams because attribution, least privilege, and containment become difficult to enforce consistently.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A3 Covers agent/tool boundaries and unintended action paths in MCP-style systems.
CSA MAESTRO Addresses architecture and trust boundaries for agentic workflows and tool access.
NIST AI RMF Supports governance of autonomous behavior and context-dependent risk in MCP ecosystems.
OWASP Non-Human Identity Top 10 NHI-01 Relevant because MCP clients and servers behave like distinct machine identities.
NIST CSF 2.0 PR.AC-4 Access control and least privilege are central to separating MCP responsibilities.

Map every host-client-server flow to tool and action controls before enabling production use.