| Layer and role | Transport layer. Carries application data inside IP packets and identifies services with port numbers. | Transport layer. Adds port numbers and a checksum to IP datagrams with an 8-byte header. | Application layer. HTTP request and response semantics protected by TLS. | Application layer. JSON-RPC 2.0 messages exchanged between an MCP client (inside an AI application) and an MCP server. |
|---|
| Defined by | RFC 9293 (obsoletes RFC 793). | RFC 768. | HTTP semantics in RFC 9110, HTTP/1.1 in RFC 9112, HTTP/2 in RFC 9113, HTTP/3 in RFC 9114, and TLS 1.3 in RFC 8446. | Published as the Model Context Protocol specification at modelcontextprotocol.io. It is versioned by date and is not an IETF standard. |
|---|
| Connection model | Connection-oriented. Both endpoints keep state for the duration of the connection. | Connectionless. Each datagram is independent and there is no handshake or session state in the protocol. | HTTP/1.1 and HTTP/2 run over TLS over TCP. HTTP/3 runs over QUIC, which runs over UDP. | Stateful session over a chosen transport. The standard transports are stdio (a local subprocess) and Streamable HTTP (a remote server). |
|---|
| Reliability and ordering | Reliable and in order. Sequence numbers, acknowledgments, and retransmission recover lost data; flow control and congestion control limit the sending rate. | Best effort. Datagrams can be lost, duplicated, or reordered, and UDP does not control congestion. The application must handle these cases. | Inherited from the transport: TCP for HTTP/1.1 and HTTP/2, QUIC streams for HTTP/3. | Inherited from the transport. stdio uses process pipes; Streamable HTTP uses HTTP over TCP. |
|---|
| Default port | None of its own. TCP carries port numbers (0–65535); the application protocol chooses the well-known port. | None of its own. UDP carries port numbers (0–65535); well-known examples are DNS on 53 and NTP on 123. | 443 by default (TCP). HTTP/3 normally uses UDP port 443. | None defined by the specification. A Streamable HTTP server exposes one endpoint URL on whatever port its operator chooses; stdio uses no network port. |
|---|
| Session setup | Three-way handshake: SYN, SYN-ACK, ACK. Data can flow after one round trip. | None. The sender transmits immediately, which gives the lowest startup latency. | TCP handshake, then a TLS handshake (one additional round trip in TLS 1.3). HTTP/3 combines transport and TLS setup in QUIC's handshake. | The client sends an initialize request with its protocol version and capabilities, the server replies with its own, and the client then sends an initialized notification. |
|---|
| Security | No encryption or authentication. Protect data by layering TLS (or SSH) on top. | No encryption or authentication. Add DTLS, or use a protocol such as QUIC that includes TLS 1.3. | Encrypts and authenticates traffic, and verifies the server through its certificate. It does not hide the destination address or the approximate size of traffic. | Use HTTPS for remote servers and authorize requests. Local HTTP servers should bind to localhost and validate the Origin header. Users should approve tool calls that act on their behalf. |
|---|
| Typical uses | Web traffic, email (SMTP, IMAP), SSH, database connections, file transfer, and most APIs. | DNS queries, DHCP, NTP, real-time audio and video, games, and QUIC (the transport used by HTTP/3). | Websites, REST and GraphQL APIs, webhooks, and downloading software or data. | Giving AI assistants controlled access to files, databases, APIs, and developer tools. |
|---|
| Main trade-offs | Setup latency, per-connection state, and head-of-line blocking: one lost segment delays later data on the same connection. | Applications must implement their own loss recovery and congestion control. Spoofed source addresses make UDP services a common target for amplification abuse, and some networks restrict it. | Requires certificate issuance and renewal, and TLS adds some CPU and setup cost. Misconfigured certificates or old TLS versions weaken protection. | The specification is still evolving, so client and server must negotiate a version. Every connected server expands what an AI application can reach, so permissions need careful review. |
|---|