Join our Newsletter — 33% off our NHI Course
Agentic AI & Autonomous Identity

MCP Handshake

← Back to Glossary
By NHI Mgmt Group Updated December 3, 2026 Domain: Agentic AI & Autonomous Identity

An MCP handshake is the initial capability exchange between an MCP client and server. It establishes protocol version, available tools, resources, and prompts so both sides know what the agent can request and what the server will expose, which sets the runtime boundary for tool use and context access.

How the MCP handshake defines the runtime boundary

The handshake is the moment an MCP client and server agree on the protocol version and on what the server will actually expose. That exchange is more than setup, because it determines which tools, resources, and prompts are in scope for the session and therefore what the agent can request safely and successfully.

Because the handshake establishes the initial contract, it also sets expectations for compatibility. If the client and server do not agree on the version or capability set, the rest of the interaction can fail early, degrade into partial functionality, or drift into unsupported assumptions about what actions are available.

Capabilities, discovery, and context exposure

MCP uses the handshake to surface the server's capabilities in a structured way. Tools describe actions, resources describe retrievable context, and prompts describe guided interaction patterns, so the client can build a usable map of what it may call and what context it may inspect.

That makes the handshake a discovery step as much as a negotiation step. It helps prevent blind requests, but it also means the server is disclosing the shape of its interface up front, which should be treated as part of the trust boundary rather than a harmless formality. For a broader protocol overview, see What Is MCP? The Model Context Protocol Explained (2026).

Why the handshake matters for agentic systems

In an agentic workflow, the handshake is where runtime authority becomes concrete. Once the client knows which tools and resources exist, the agent can begin planning actions against that live surface area, so handshake quality directly affects tool use, context access, and the risk of overbroad exposure.

That is why MCP is often discussed alongside agent governance and protocol design. The handshake is not the full security model, but it is the point where the session's practical boundaries become visible, and those boundaries shape how much the agent can do without further human intervention. The OWASP Agentic Applications Top 10 is a useful companion for understanding how tool exposure and agent behaviour can become security issues.

Common implementation mistakes around handshake handling

Handshake handling is often treated as plumbing, but implementation choices here can create security and interoperability problems. Servers may expose more tools than they intended, clients may assume capabilities that were never confirmed, or version handling may be so loose that behaviour differs across deployments.

Those failures are especially important when the handshake is used to bootstrap trust in later requests. If the capability list is stale, incomplete, or overly broad, downstream authorisation and context controls can be undermined even when the individual tool calls look valid on the surface.

Risk and Threat Considerations

An MCP handshake creates a short but important exposure window because it reveals what the server can do before the session settles into normal operation. If capability negotiation is weak, an attacker or misconfigured client can abuse version confusion, overexposed tools, or misleading capability claims to reach actions or context that should not have been available.

Failure mechanism: A server advertises capabilities too broadly, a client trusts unverified capabilities, or the negotiated session is used to open a larger tool surface than intended, which can lead to unauthorized context access or unsafe action execution.

Impact: The result can be data exposure, unintended tool invocation, broken trust between client and server, or a wider agent attack surface that makes later abuse harder to contain.

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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseMCP handshakes define tool and resource authority for agent sessions.
Recommendation — Limit advertised capabilities so agents cannot inherit broader authority than intended.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementHandshake negotiation determines which tools and resources a session may access.
IA-5 — Authenticator ManagementMCP handshakes often rely on token-bearing sessions that must be governed carefully.
Recommendation — Enforce capability checks before allowing tool calls or context retrieval. Protect session credentials and rotate them when handshake-authenticated sessions are compromised.
NIST Zero Trust (SP 800-207)Zero Trust ArchitectureHandshake boundary-setting fits zero-trust verification of every session and capability.
Recommendation — Verify each negotiated capability instead of trusting the connection by default.

Practitioner Guidance

Governance implication: Treat the handshake as a control point, not just a connection step. Define which capabilities are expected for each MCP server, verify that negotiated features match those expectations, and review unexpected tool or resource exposure as a deployment issue rather than a benign protocol detail.

What to watch for: Capability sets that change without explanation, clients that rely on undocumented assumptions, and servers that expose more prompts, tools, or resources than the session actually needs. Those are strong signs that the runtime boundary is looser than it should be.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on December 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org