Skip to content
zero2vibecodelearn vibe coding
GoogleBy Mikhail Kuzmitskii

MCP Stateless Updates Make AI Agents Scale Better

Based on the vendor announcement linked above — written with AI assistance and reviewed by the author.

In short

Google's MCP stateless updates remove session bottlenecks, making AI agents more scalable and easier to deploy in production.

Google’s latest updates to the Model Context Protocol (MCP) remove a major bottleneck for scaling AI agents in production. If you’re building with AI coding tools, this change makes it easier to deploy your projects at scale without worrying about session management or infrastructure headaches.

A set of gears turning smoothly in a cloud

What Changed in MCP?

The original MCP protocol relied on stateful sessions, meaning each interaction between your AI agent and the server required a persistent connection. While this worked fine for local development, it became a problem when scaling to cloud environments. Sessions pinned clients to specific servers, making load balancing inefficient and introducing errors if a server restarted.

The new stateless MCP protocol removes these session dependencies. Every request is now self-contained, carrying all the necessary information in a _meta field. This allows requests to be handled by any server instance, making it easier to scale horizontally.

Why This Matters for You

If you’re just starting out, you might not feel the impact of these changes right away. But as your projects grow and you deploy them to production, stateless MCP ensures your AI agents can handle more users without crashing or slowing down.

Tip

If you’re using AI coding tools like Claude or GitHub Copilot, these updates mean smoother interactions and fewer errors when scaling your applications.

Key Benefits of Stateless MCP

Here’s what the new protocol brings to the table:

  • Better Load Balancing: Requests can be routed to any server, making it easier to distribute traffic evenly.
  • Serverless Deployment: You can now run MCP servers on platforms like Google Cloud Run, reducing costs by spinning down unused resources.
  • Fault Tolerance: If a server crashes, the next request simply goes to a healthy instance, minimizing disruptions.
  • No Session Storage: Removing Redis or other session stores reduces latency and simplifies infrastructure.

Handling Complex Interactions Statelessly

One of the challenges of going stateless was handling multi-step interactions, like when the server needs user input to complete a task. The new protocol introduces Multi Round-Trip Requests (MRTR), which serialize the context of each interaction so any server can resume the task.

For example, if your AI agent asks the user to confirm deleting files, the server returns a requestState payload. The client collects the user’s response and sends it back with the same requestState, allowing any server to pick up where it left off.

Asynchronous Tasks Made Easy

Long-running tasks, like processing a refund or syncing data, no longer block the conversation. The new Tasks Extension lets servers kick off background jobs and return a taskId immediately. Clients can then poll or subscribe to monitor progress without holding up the interaction.

Security Improvements

Stateless MCP also introduces stronger security measures:

  • Issuer Verification: Ensures authorization responses come from trusted sources.
  • Resource Indicators: Prevents token misuse by specifying which server a token is intended for.
  • Advanced Schema Validation: Uses JSON Schema 2020-12 to strictly validate tool inputs.

How to Get Started

If you’re using MCP SDKs, beta releases for TypeScript, Python, Go, and C# already support the new stateless protocol. Migration tools like codemods make it easier to update your code.

For example, in Python, you can install the beta with:

pip install "mcp[cli]==2.0.0b1"  

And in TypeScript, modular libraries replace the monolithic SDK:

npm install @modelcontextprotocol/server@beta  
npm install @modelcontextprotocol/client@beta  

What to Do Next

If you’re building with AI coding tools, these updates mean you can focus more on your application logic and less on infrastructure challenges. Start testing the new MCP protocol in staging environments to ensure your projects are ready for scale.

Want to try all of this hands-on? Start with the free Claude Code from Zero course.

Source

Based on Google’s announcement, “Scaling AI Agent Infrastructure with the MCP Stateless updates”. Written for people learning to build with these tools.

Read next

Try it hands-on

Free interactive courses on this topic — in your browser, from zero.