The Model Context Protocol

What MCP is, how its transports work, and where it sits next to function calling and plain REST APIs.

The Model Context Protocol (MCP) is an open protocol for connecting AI applications to tools and data. A host application runs one MCP client per server, and the two sides exchange JSON-RPC messages over a transport. Start with what the protocol defines, then how messages move, then how it compares with the alternatives you may already use.

Read in this order

  1. MCP explained for developers: hosts, clients, servers and JSON-RPC

    Who does what in a Model Context Protocol setup, what the JSON-RPC traffic looks like, and what the stateless 2026-07-28 revision changed.

  2. stdio vs Streamable HTTP: choosing an MCP transport

    When to run an MCP server as a subprocess, when to put it behind an HTTP endpoint, and what the 2026-07-28 spec requires of each.

  3. Function calling vs MCP: what each one standardizes

    Function calling is the contract between a model and your application. MCP is the contract between your application and tool servers. A host uses both in the same turn.

  4. MCP vs REST: why agents don't just call your API

    A REST API is a contract developers code against. An MCP server is a contract AI hosts read at runtime. Most MCP servers sit in front of an API rather than replacing it.

MCP client, MCP host, MCP registry, MCP server, MCP transport, Model Context Protocol (MCP), stdio transport, Streamable HTTP