Resources / MCP

MCP transports: stdio vs Streamable HTTP

How MCP clients and servers talk: local stdio servers, remote Streamable HTTP servers, and how to choose between them.

MCP messages are JSON-RPC. A transport is how those messages travel between the client (Claude, Cursor, your agent) and the server. Two transports cover almost every setup.

stdio: a local process

The client starts the server as a child process on your machine and talks to it over standard input and output.

Streamable HTTP: a remote server

The client sends JSON-RPC requests to an HTTPS URL. The server can answer with a single JSON response or stream several messages back.

Streamable HTTP replaced the older HTTP + Server-Sent Events transport, which some clients still support for compatibility.

Which should you build?

If the tool needs the user's local machine, use stdio. Otherwise, use Streamable HTTP: it works from cloud-hosted clients like Claude and ChatGPT, which can't start processes on your laptop, and it's the only option for agents running in the cloud.

Connecting

Most desktop and IDE clients accept both. Cloud clients take only remote URLs. See How to connect Claude, ChatGPT and other clients to an MCP server.

In Wisp

Every Wisp project is a remote Streamable HTTP server at https://<project>.fn.wispfn.com/_mcp, answering with JSON — nothing to install for your users.

Build it with Wisp — describe an API, get it live.

Related