MCP authorization
MCP authorization is the part of the Model Context Protocol that controls who may call a remote MCP server. It is based on OAuth 2.1.
How it works
A remote server acts as an OAuth resource server. It publishes metadata that tells the client which authorization server to use. The client sends the user through a sign-in with PKCE, asks for a token that is valid for that one server, and adds the token to every request. Authorization applies to HTTP transports such as Streamable HTTP. Local servers usually read credentials from their environment.
Why it matters
Remote servers act on real data, so a call has to be tied to a user and a scope. The specification also forbids a server from passing a client’s token on to another service, because a token issued for one server must not work somewhere else.
Where a gateway fits
With an MCP gateway, users sign in once at the gateway and the gateway holds the credentials for the servers behind it. Keys and tokens stay out of local client configuration.