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.
- Good for: tools that touch local things — files, a local database, a CLI on your laptop.
- Setup: a command in the client's config, such as
npx some-mcp-server. - Limits: runs only where the client runs; every user installs it; credentials live on each machine.
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.
- Good for: shared tools, SaaS integrations, anything a team or a hosted agent uses.
- Setup: paste a URL (and usually a header or sign-in) into the client.
- Benefits: one deployment for everyone, central auth, logging and updates.
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.