Stateless MCP: what changed in the July 2026 specification
By Flavio
Updated
Tagged: AI
Stateless MCP removes the initialize handshake and Mcp-Session-Id. See how the July 2026 specification changes HTTP servers and application state.
The MCP 2026-07-28 specification makes the protocol stateless by removing the initialize handshake and Mcp-Session-Id header. Each request carries everything a server needs to handle it, so calls can go to any instance behind a load balancer while your app keeps its own state through explicit IDs passed between tool calls.
Alongside the stateless core, this release adds header-based HTTP routing, cacheable tool catalogs, better authorization, long-running tasks, and interactive UIs inside the conversation.
Why stateless MCP matters
Earlier MCP versions started with an initialize exchange, and a remote server could issue an Mcp-Session-Id that the client sent back on later requests. That made the protocol behave like a sticky conversation between one client and one server instance.
That gets awkward once you put several server instances behind a load balancer. You’d either have to pin every request from a client to the same instance, or sync session state across all of them.
The new version drops both the handshake and Mcp-Session-Id. Every request carries what the server needs to process it:
- the protocol version
- client capabilities
- optional client information
Since the server doesn’t need to remember an earlier initialization request, any available instance can handle the next call. That makes remote MCP servers a much better fit for standard HTTP setups: you can put them behind a round-robin load balancer or deploy them to serverless and edge platforms without building session management first.
Stateless does not mean your application has no state
Only the protocol is stateless. Your application can still hold state.
Say a tool creates a browser session, shopping basket, or deployment job. It returns an identifier:
{
"deploymentId": "deploy_82f1"
}
Then the model passes that identifier to the next tool call:
{
"deploymentId": "deploy_82f1"
}
The state is still there, just explicit instead of hidden inside the MCP transport session. It works the same way regular web APIs do: HTTP is stateless, while the apps built on top of it aren’t.
Moving session state out of the transport removes a big chunk of infrastructure friction, though you’ll still have to scale your database, auth layer, rate limits, and tool handlers as usual.
MCP requests are easier to route and cache
The new version adds Mcp-Method and Mcp-Name HTTP headers. For a tool call, they look like this:
Mcp-Method: tools/call
Mcp-Name: search
With those headers in place, a gateway can route, authorize, meter, or rate-limit requests without parsing the JSON-RPC body first.
List responses like tools/list and resources/list can also include cache instructions with a time-to-live and cache scope. That lets clients reuse a tool catalog instead of fetching it on every connection, and keeping the tool order stable helps preserve prompt caches.
Multi Round-Trip Requests replace open connections
Sometimes a stateless server needs more information before it can finish a tool call, like a deployment tool asking the user to approve an estimated cost.
The new Multi Round-Trip Request flow handles this by letting the server respond with input_required. The client prompts the user for the missing input and retries the original request with the answer attached.
That replaces older server-initiated requests that relied on holding a connection open, so a tool can pause for confirmation or extra fields without keeping a protocol session alive.
MCP Apps bring interfaces into the conversation
MCP Apps let a server return an interactive HTML interface instead of plain text or structured data. A tool declares a UI resource, such as a form, chart, dashboard, or document viewer, and the MCP host renders it inside a sandboxed iframe right in the conversation. From there, the UI can receive tool results and trigger new tool calls over a controlled message channel.
That’s handy when a back-and-forth in chat gets clumsy. Picking a region, instance size, and scaling config is much faster in a single form. The tldraw MCP server takes it further and drops a full drawing canvas directly into the chat.
For this to work, both the server and the host need to support the extension, and the host decides what permissions, capabilities, and sandbox rules the iframe gets.
Tasks support long-running work
Some tools take much longer than a single HTTP request. A CI pipeline, video render, data import, or deployment can run for minutes, and holding the original connection open that long is fragile.
With the Tasks extension, a server can return a durable task handle instead. The client can then:
- check progress with
tasks/get - provide requested input with
tasks/update - request cancellation with
tasks/cancel - retrieve the final result when the task finishes
Tasks are opt-in: the client announces support, and the server decides whether a given tool call should run as a task. Because the state sits behind an explicit handle, the protocol doesn’t depend on the original connection staying open. I used both tasks and confirmation forms in How to use MCP Tasks and Elicitations in Claude Code.
Enterprise authorization is more practical
The core authorization spec now lines up better with how OAuth 2.0 and OpenID Connect are deployed in production. It adds issuer validation, binds client credentials to their authorization server, and starts moving away from Dynamic Client Registration toward Client ID Metadata Documents.
There’s also an Enterprise-Managed Authorization extension for managing MCP access through an existing identity provider like Okta or Microsoft Entra ID. Admins can control which MCP servers employees are allowed to use, so onboarding, role changes, and offboarding follow the company’s normal identity policies.
To use that flow end to end, the client, server, authorization service, and identity provider all have to support it.
This is a breaking protocol update
The stateless redesign changes the wire protocol, so it’s a breaking update. The official TypeScript, Python, Go, C#, and Rust (RMCP 3) SDKs already support 2026-07-28, while older clients and servers can stay on earlier protocol versions until both sides negotiate the new one.
This release also deprecates Roots, Sampling, Logging, and the legacy HTTP+SSE transport. They’ll keep working through a minimum twelve-month deprecation window, though new implementations should use their replacements.
If you maintain an MCP server, check the migration notes for your SDK, especially if your code relies on session IDs or long-lived streams. If you’re starting a server from scratch on the current SDK, follow how to build an MCP server. I also build one with the TypeScript SDK in How to create and publish a ChatGPT plugin.
If you only use MCP servers through an agent, you don’t need to change anything today. Your client and server providers have to roll out support first (Anthropic says support for the new core is rolling out across Claude products).
What this update adds
MCP started out as a simple way for models to call tools and read resources. With 2026-07-28, the protocol catches up to how production web apps run behind load balancers, gateways, and company identity providers. You still have to build and run the underlying services yourself, but the transport layer no longer gets in the way of standard HTTP tooling.
Before upgrading a production server, read the official release announcement, the 2026-07-28 specification, and the migration guide for your SDK.
Want me to talk about your product? You can sponsor this site.
Related posts about ai: