MCP and Streamable HTTP: Enabling Remote Integrations

MCP and Streamable HTTP: Enabling Remote Integrations for Distributed Fleet Systems

Published: December 1, 2026

A stdio MCP server is easy to love. It runs as a subprocess on your laptop, needs one API key, and never touches the network. That simplicity holds until the tools need to be shared. A second dispatcher wants the same setup, then a regional operations team in another country, then a copilot inside your transportation management system, a support assistant, and an analytics agent. Every one of them needs the same location and telematics data under one set of access rules, and a subprocess on each machine can’t deliver that.

At that point, the transport stops being a configuration detail and becomes an architecture decision. Credentials, version control, logging, and uptime all have to move from individual laptops to something your platform team can own. For distributed fleet systems, that move usually leads to Streamable HTTP, which turns an MCP server into a network service that many clients can reach through one governed endpoint.

This guide assumes you already know what MCP is and focuses on the decisions that follow. It explains how Streamable HTTP works under the 2026-07-28 spec and what the move to a stateless design means for scaling and routing. It then covers streaming and unreliable networks, and how to choose between a hosted server, your own deployment, and staying on stdio.

We use NextBillion.ai MCP as a reference throughout, including where it stands today, since it runs locally over stdio, and what to ask before you commit to a transport for production.

Why Fleet Systems Outgrow stdio

fleet system

With stdio, the client launches the server as a subprocess and talks to it over standard input and output. That model is right for a developer workstation or a single desktop assistant. It also means one client per server process, credentials stored on the machine running it, and an upgrade path that involves touching every machine.

Fleet operations rarely fit that shape. Dispatch runs across regions and shifts. Several agent applications need the same tools. Security wants one place to enforce access, log calls, and rotate credentials. Operations wants one deployment to upgrade instead of fifty. These are the reasons to go remote, and in the Streamable HTTP transport, the server runs as an independent process that handles multiple client connections. That is the property fleet teams are buying.

Stdio doesn’t disappear. It remains the sensible choice for prototyping, local experiments, and tools that should never leave a machine. Most mature teams end up running both, with the same tool definitions behind each.

One clarification keeps expectations realistic. Streamable HTTP connects agents to systems of record. It isn’t the path for vehicle telemetry. Telematics devices keep using their own protocols and platforms, and an MCP server sits in front of those platforms and exposes them to agents. Geotab describes its server this way: the AI assistant is the front end, the MCP server is the bridge, and MyGeotab stays the source of truth.

How Streamable HTTP Works in the 2026-07-28 Spec

The mechanics are simple, and the specification describes them in a few rules. The server exposes a single HTTP endpoint, such as https://example.com/mcp, that accepts POST. Every JSON-RPC request or notification from the client is its own POST, and the client must accept both JSON and event streams in the Accept header. For each request, the server answers with either a single JSON object or a Server-Sent Events stream scoped to that one request. Notifications get a 202 Accepted with no body.

What changed in this revision matters more than the basics, especially if your team read an earlier explainer. The 2026-07-28 revision removed several mechanisms that earlier versions of the transport relied on:

Capability

2025-03-26 through 2025-11-25

2026-07-28

Sessions

Mcp-Session-Id header, ended with HTTP DELETE

Removed; cross-call state uses explicit handles passed as tool arguments

Handshake

initialize exchange

Removed; version and capabilities travel in each request’s _meta

Server-initiated messages

Standalone SSE stream via GET, requests sent on streams

No GET stream; input needs are returned as an InputRequiredResult and the client retries

Change notifications

Resource subscribe calls and the GET stream

One long-lived subscriptions/listen stream, opt-in by type

Resumability

Last-Event-ID on SSE streams

Removed; a broken stream means the client re-issues the request


Those changes are listed in the spec’s
changelog, and together they turn a remote MCP server into something much closer to an ordinary stateless web service.

Read more: How MCP Tools Enable AI Models to Interact With External Systems

What Stateless Means for Fleet Architecture

fleet architecture

A stateless server treats every request on its own, so any replica can serve any call. That one property changes how fleet teams scale, route, cache, and trace MCP traffic, and the four effects below are the ones to plan around. 

Scaling and rolling deploys


Because no request depends on a prior one, any replica can serve any request. You can run identical instances behind a standard load balancer without sticky sessions, which
practitioner deployment guides now describe as the normal way to scale a remote server. 

For a fleet platform, that means upgrades without draining long-lived connections, and capacity that follows dispatch peaks instead of pinned sessions. When a tool really does need to remember something across calls, the spec’s answer is a server-minted handle, such as a plan ID, passed back as an ordinary argument. Treat that handle like any identifier an attacker might guess: make it unguessable and tie it to the authenticated user.

Routing on headers, not bodies


This is the feature fleet teams should look at closest. The spec requires
Mcp-Method on every request and Mcp-Name on tool, resource, and prompt calls, so load balancers and gateways can route, rate-limit, and log without parsing JSON. Servers can go further. A tool parameter annotated with x-mcp-header is mirrored into a header named Mcp-Param-{name}, and the spec’s own example uses a region parameter that becomes Mcp-Param-Region.

For a multi-region fleet, that is a direct way to steer a depot’s request to the right regional deployment at the edge. Servers must reject requests where headers and body disagree, returning 400 with a HeaderMismatch error, so a gateway and a server can’t be tricked into acting on different values.

Caching shared metadata


List results now carry
ttlMs and cacheScope fields. A public scope allows shared intermediaries to cache a tool catalog, which cuts repeated discovery traffic when hundreds of dispatcher sessions start the same morning. Servers should also return tools in a deterministic order, which helps client-side caching.

Tracing across hops


The spec documents OpenTelemetry conventions for
traceparent, tracestate, and baggage in _meta, so a single dispatch question can be followed from the agent through the gateway to the server and the upstream API.

A Request Through a Gateway

A concrete example helps. The request below is illustrative: a distance-matrix call as it might arrive at a gateway fronting a self-hosted location server, with a region parameter mirrored into a header.

POST /mcp HTTP/1.1

Content-Type: application/json

Accept: application/json, text/event-stream

MCP-Protocol-Version: 2026-07-28

Mcp-Method: tools/call

Mcp-Name: distance_matrix

Mcp-Param-Region: eu-west

Without reading the body, the gateway can see that this is a tool call, which tool it targets, and which region the request belongs to. From those three headers, it can apply a per-tool rate limit, send the request to the European replicas, and write a log line recording who called what.

The server still validates the headers against the body and returns HeaderMismatch if they disagree, so the gateway’s view and the server’s view can’t drift apart. Keep in mind that Mcp-Param-Region exists only when a server’s tool schema marks a parameter with x-mcp-header. The example shows a pattern for teams hosting their own servers, not a feature of any particular vendor’s server.

Streaming, Long-Running Work, and Unreliable Networks

Fleet workloads mix quick lookups with heavier jobs, and depots and mobile connections aren’t always reliable. Streamable HTTP handles both, but only if you design for its limits.

Streaming is per request: When a server opts for SSE, the stream carries progress notifications and ends with the final response. Closing that stream is the cancellation signal, so a dispatcher who abandons a query also stops the work behind it.

Broken streams aren’t resumed: The spec removed Last-Event-ID resumability: if a response stream drops, the in-flight request is lost and the client must re-issue it with a new request ID. For read-only calls like geocoding or travel-time lookups, that’s harmless. For writes, such as assigning a job or notifying a customer, build idempotency into the tool itself, for example by accepting a client-supplied key so a retry can’t create a duplicate. That’s a design practice, not a spec requirement, and it matters more here than almost anywhere.

Long jobs shouldn’t hold a connection: For work that runs for minutes, use the optional Tasks extension, which returns a handle the client polls with tasks/get, instead of keeping a stream open. NextBillion.ai’s route optimization write-up shows why this matters, since large planning runs are exactly the kind of work an agent should start and check on, not wait for.

Approvals without open connections: When a server needs a human decision mid-task, it returns an InputRequiredResult, and the client retries the original request with the answer attached. A dispatcher can take their time approving a driver reassignment without anyone holding a connection open.

Mind your proxies: Servers should send X-Accel-Buffering: no on SSE responses so nginx-style proxies don’t buffer events, and long-lived subscriptions/listen streams should emit periodic SSE comment lines as keep-alives so idle timeouts at load balancers and gateways don’t kill them. Both are easy to miss in a demo and painful in production.

Read more: Route Optimization with AI Agents (Beyond Static APIs)

Authentication and Tenant Boundaries

Streamable HTTP

Once a server is reachable over HTTP, identity becomes the main control. The spec says servers should implement proper authentication on all connections and must validate the Origin header to block DNS rebinding. For OAuth, a protected MCP server acts as an OAuth 2.1 resource server, publishes Protected Resource Metadata, and expects tokens issued specifically for it. Client registration also moved: Dynamic Client Registration is deprecated in favor of Client ID Metadata Documents.

Real servers vary widely, and your gateway will have to absorb that variety. Geotab’s remote server uses OAuth 2.1 with PKCE, and its default database can be overridden per request, which is a practical example of tenant routing inside the request itself. Google’s Grounding Lite accepts an API key in an X-Goog-Api-Key header or OAuth, while HERE uses a bearer token. A gateway that normalizes these into one identity model, then maps each identity to a tenant, depot, or region, is worth more than any single server feature.

We cover scopes, token handling, and prompt injection in depth in our MCP security guide, so we won’t repeat it here.

Read more: MCP Security: Understanding Authentication, Permissions, and Tool Access

Deployment Topologies for Distributed Fleets

Where you deploy an MCP server affects latency, failure behavior, and data compliance. Four patterns cover most fleets, and the right one depends on how many regions you serve and how strictly your data must stay inside them.

  1. One regional deployment. A single endpoint, several identical replicas, and a load balancer. Choose this when your users sit in one geography and one legal region governs your data. It’s the simplest to run and a good first production step.

  2. Regional endpoints behind a global gateway. Replicas run in each region, and the gateway routes on hostname or on a mirrored header such as Mcp-Param-Region. Choose this when latency or data residency matters. Be careful to enforce header validation, and have intermediaries confirm the protocol version header before trusting mirrored values, as the spec advises.

  3. Gateway-fronted capabilities. A gateway presents one MCP endpoint and forwards to separate servers for location, telematics, and execution. Each server stays small and has its own scaling and credentials. Choose this when several teams own different data sources.

  4. Hybrid. Developers use stdio locally, and production runs remotely with the same tool definitions. Choose this when you want fast iteration without maintaining two code paths. Serverless runtimes can suit the stateless core, since a server returning plain JSON maps neatly to a function, as Encore’s AWS guide describes. Check that your platform supports streamed responses if your tools report progress.

Where NextBillion.ai MCP Fits Today

nextbillion MCP

NextBillion.ai MCP exposes 15 location tools covering geocoding, place search, directions, distance matrices, isochrones, and static maps. Per its repository, it runs locally over stdio and authenticates with an API key. It implements the 2026-07-28 specification’s stateless core through the official TypeScript SDK v2, with built-in handling for older clients. The repository’s layout also reserves space for a future hosted Streamable HTTP deployment, and it describes HTTP transport as something that lands later.

For fleet teams, that has practical consequences. Stdio is well suited to prototyping dispatch copilots on developer machines and testing location tools against real stops. For shared, governed access today, you’d need to host it yourself or wait for a hosted option, and a server built on a stateless core has no session state to migrate, so in principle the move is mainly about transport and authentication. Before you commit, ask NextBillion.ai these questions:

  • When will a hosted Streamable HTTP endpoint be available, and in which regions?

  • How will authentication and tenant isolation work for multi-team use?

  • Can the MCP server target a regional or on-premises API endpoint? NextBillion.ai says its platform is available cloud-hosted across regions or on-premises, and data residency often decides these projects.

  • What quotas and rate limits apply when agents loop or retry?

Read more: Build Location-Reasoning AI Applications with NextBillion.ai MCP

Questions to Ask a Vendor Offering a Hosted MCP Server

Whether you’re buying telematics access today or waiting on a hosted location server, the transport raises questions beyond the feature list:

  • Which protocol revisions does the endpoint support, and what happens when a client on an older revision connects?

  • Which regions host it, and can your requests stay inside one?

  • How do authentication, rate limits, and quotas behave when an agent retries or fans out? Samsara, for example, says its server is free at launch with usage-based pricing planned, so cost behavior can change after you’ve built on it.

  • What are the endpoint’s idle and request timeouts, and does it stream progress for long calls?

  • Is there a read-only mode, and what does the audit log capture?

  • What uptime and support commitment applies to an endpoint your dispatchers depend on?

Build, Buy, or Wait: A Decision Framework

  • One developer or analyst exploring: Stay on stdio. Nothing about a shared deployment pays off yet.

  • A small internal team: Run one remote deployment behind your existing gateway and single sign-on. Keep the tool list short and the credentials read-only.

  • Multi-region fleet with residency rules: Use regional endpoints behind a gateway, route on mirrored headers, and keep tenant identity in the token.

  • Telematics data you don’t own: Consume the vendor’s hosted server instead of rebuilding it. Geotab’s server is documented as Streamable HTTP and included with the GO Plan, and Samsara’s hosted server became generally available on September 22, 2026.

  • A stdio-only server you need to share: Decide whether to self-host it, ask the vendor about a hosted option, or wait. Weigh who will own uptime, patching, and version upgrades.

Two further questions belong in every evaluation. Who owns incident response when the endpoint is down at 6 a.m. in a depot? And how will you handle spec change? The project now defines a minimum twelve-month deprecation window for deprecated features, which helps planning, but you still need a policy for pinning versions and testing upgrades.

Compatibility and Production Checklist

If clients on older revisions will connect, decide whether to support them. A server that supports only 2026-07-28 should answer a GET or DELETE to the MCP endpoint with 405 Method Not Allowed, ignore any Mcp-Session-Id or Last-Event-ID header, and avoid minting session IDs.

Clients detect modern servers by inspecting the body of a 400 response before falling back to the older handshake. The HTTP+SSE transport from 2024-11-05 is deprecated, and new work shouldn’t adopt it.

Before going live, confirm that you have:

  • TLS, Origin validation, and authentication on every request.

  • Header and body validation, with HeaderMismatch errors returned correctly.

  • X-Accel-Buffering: no on SSE responses and keep-alives on long-lived streams.

  • Load balancer and gateway idle timeouts that match your streaming behavior.

  • Idempotency for every tool that writes, since broken streams aren’t resumed.

  • Per-tool rate limits and per-tenant quotas, set for agents that loop.

  • Logs and traces that capture method, tool name, tenant, and outcome.

  • A tested plan for version upgrades, using the MCP Inspector to check behavior.

Final Thoughts

For distributed fleets, MCP Streamable HTTP is what turns a useful local experiment into shared infrastructure. The 2026-07-28 revision made that shift easier by removing sessions and handshakes and adding headers that gateways can route on, but it also moved responsibility to you: idempotent writes, careful proxy settings, tenant-aware authentication, and a clear owner for uptime.

Start with stdio to learn what your agents need, move to a single remote deployment once more than one team depends on it, and add regional endpoints only when latency or residency requires them. If location tools are part of that plan, NextBillion.ai MCP is a ready place to start on stdio, and the questions above will tell you what to expect on the path to a hosted setup.

Frequently Asked Questions

It’s the standard transport for remote MCP servers. The server exposes a single HTTP endpoint, the client sends every JSON-RPC message as a POST, and the server replies with either plain JSON or an event stream scoped to that request. It replaced the older HTTP+SSE transport and lets one server handle many clients over the network.

HTTP+SSE used two endpoints and a long-lived connection, and it’s now deprecated. Streamable HTTP uses one endpoint and treats each request independently. The 2026-07-28 revision goes further by removing sessions, the initialization handshake, the GET stream, and stream resumability, so servers behave much more like ordinary stateless web services.

Not under the 2026-07-28 spec. Protocol-level sessions were removed, so any replica can handle any request, and a standard load balancer is enough. If your own tools need to remember something across calls, use an explicit handle passed as a tool argument, and keep it unguessable and tied to the authenticated user.

Use stdio for prototyping, local experiments, and tools that should stay on one machine. Move to Streamable HTTP when several people or systems need the same tools, when you need central authentication and logging, or when you want one deployment to upgrade. Many teams keep both, with identical tool definitions behind each.

Yes, and the transport is designed for it. Every request carries Mcp-Method, Mcp-Name, and the protocol version in headers, so a gateway can route, rate-limit, and log without parsing the body. Make sure the gateway handles streaming responses correctly and confirms the protocol version header before trusting mirrored values.

Today, NextBillion.ai MCP runs locally over stdio, and its repository lists a hosted Streamable HTTP deployment as planned for later. It implements the 2026-07-28 stateless core, which makes a future move to HTTP more straightforward. For timelines, regions, and tenant isolation, check the repository or contact the NextBillion.ai team.

About Author

Bhavisha Bhatia

Bhavisha Bhatia is a Computer Science graduate with a passion for writing technical blogs that make complex technical concepts engaging and easy to understand. She is intrigued by the technological developments shaping the course of the world and the beautiful nature around us.

Ready to get started?

Table of Contents