New Tool Radar

AI Concepts

How to Connect to a Remote MCP Server Over Streamable HTTP

Check the server exposes one POST endpoint, send each message as its own POST, and accept either a JSON reply or an SSE stream.

Schematic with three steps: Confirm the single POST endpoint; Send each message as its own POST; Check the reply and the session behaviour.

In the Streamable HTTP transport, the server operates as an independent process that can handle multiple client connections, and it exposes a single HTTP endpoint, the MCP endpoint, that accepts POST. The client sends every JSON-RPC request or notification as its own HTTP POST, and the server answers each request with either a single JSON object or a Server-Sent Events stream scoped to that request. Use this transport whenever the server runs somewhere other than the client machine.

What you need

  • The public HTTPS URL of the MCP endpoint, for example https://example.com/mcp
  • The protocol version the server supports
  • A note of whether the server needs OAuth sign-in

Step 1: Confirm the single POST endpoint

Check the server documentation names one MCP endpoint URL that accepts POST. A server that offers a different URL per method is not a Streamable HTTP server.

Step 2: Send each message as its own POST

Send every JSON-RPC request as a new HTTP POST with an Accept header listing both application/json and text/event-stream, and include the MCP-Protocol-Version header matching the version in the request body. The client must support both reply types.

Step 3: Check the reply and the session behaviour

Confirm the reply is either one JSON object or an SSE stream ending with the final response. If the server needs sign-in, it returns 401 and publishes protected resource metadata naming its authorization server.

Worked example: synthetic Streamable HTTP connection check

The table below is a synthetic example. It shows the expected result of checking a remote server connection; no server was contacted.

Check Value Result
Endpoint https://example.com/mcp One POST endpoint
Accept header application/json, text/event-stream Pass
Protocol version header 2026-07-28 Matches body
Reply type Single JSON object Pass

Expected result (UNTESTED). the endpoint accepts POST, the headers match, and the reply arrives as a single JSON object. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Servers must validate the Origin header on all incoming connections to prevent DNS rebinding attacks.
  • When running locally, a Streamable HTTP server should bind only to localhost rather than all network interfaces.
  • Closing the SSE response stream is how a client cancels a request on this transport.
  • Resumable SSE streams via Last-Event-ID are not supported on this transport.

Sources

See all