MCP Transport
Definition
The transport carries JSON-RPC messages between client and server. stdio spawns the server as a child process. Streamable HTTP uses POST for client→server and Server-Sent Events for server→client streaming.
stdio
Local only. Client launches server process. No network. Inherits client environment.
Streamable HTTP
Remote. Client POSTs JSON-RPC to server endpoint. Server uses SSE for notifications and streaming responses. Requires TLS and authentication in production.