part 4MCP authorization, revision by revision·lesson 4.1 of 9·2 min read
What MCP is and where authorization fits
The Model Context Protocol (MCP) connects AI applications to external tools and data, and MCP authorization defines how that connection is protected over HTTP. This lesson covers just enough of the protocol to understand what is being protected: its components, its message format, why the authorization spec only applies to HTTP transports, and how to read MUST, SHOULD and MAY.
In this lesson
Name the parts of MCP (host, client, server) and its message format.
Explain why the authorization spec only applies to HTTP.
Read the MUST/SHOULD/MAY keywords and what they imply.
The three parts of MCP
The Model Context Protocol connects AI applications to external tools and data. There are three parts:
Host: the application the user interacts with (a desktop AI assistant, an IDE).
MCP client: the component inside the host that talks to one specific server.
The host launches the server as a local process and talks over stdin/stdout
The authorization spec does not apply: credentials come from the environment (environment variables, configuration files)
HTTP (HTTP+SSE, Streamable HTTP)
The server is a network service
Everything in this course applies here
That is why, when you configure a local MCP server with a GITHUB_TOKEN in your host's JSON configuration file, that is stdio with a credential in the environment, not OAuth.
The spec's vocabulary (RFC 2119)
Keyword
Meaning
Example in this course
MUST / REQUIRED
Mandatory
PKCE; rejecting tokens for another audience
MUST NOT
Forbidden
Token in the URL; forwarding tokens to another API
SHOULD / RECOMMENDED
Do it unless you have a good reason not to
An HTTP server with authorization "SHOULD conform" to the OAuth-based spec