part 2OAuth 2.1 from scratch·lesson 2.8 of 10·2 min read
Scopes: how much permission to ask for
OAuth scopes are permission labels that decide how much access a token carries. This lesson explains what a scope is and where it is advertised, the principle of least privilege, and incremental authorization in MCP with 403 insufficient_scope, including how it changes in the 2026-07-28 revision.
In this lesson
Explain what a scope is and where it is advertised.
Apply the principle of least privilege.
Follow MCP incremental authorization with 403 insufficient_scope, and how it changes in 2026-07-28.
What a scope is
A permission label. Scopes are requested in a space-separated string: scope=files:read issues:write. Each server chooses its own names; OAuth defines none (apart from conventions such as offline_access). The authorization server may grant exactly what was requested or less.
Where are they advertised?
scopes_supported in the authorization server metadata (RFC 8414) and in the protected resource metadata (RFC 9728).
The scope parameter of WWW-Authenticate in a 401 or 403 response (MCP 2025-11-25 and later).
Least privilege and incremental authorization
Asking for everything up front scares the user ("why does it want to delete my repos?") and widens the damage if the token leaks. MCP 2025-11-25 introduces an incremental pattern:
The client starts with the scopes indicated by the 401 (or, if there are none, those in the resource metadata).
If it later attempts something that needs more, the server responds 403 with error="insufficient_scope" and the required scopes.
The client requests authorization again with them.
The simulator below lets you pick a revision, the scopes the token already holds and an operation, and shows the server's response and what the client should request next.
Interactive exercise: it loads in your browser.
Which scopes the 403 includes
Strategy
What it includes
Revision
Minimal
Only the new scopes the operation needs
Allowed in 2025-11-25; sufficient in 2026-07-28
Recommended (2025-11-25)
The new ones plus those the client already had, so it does not lose them when re-authorizing
2025-11-25
Extended
Additionally, other scopes that are usually used together
2025-11-25
Summary
A scope is a permission label; scopes are requested space-separated and the grant may be equal or narrower.
MCP 2025-11-25: initial scopes come from the 401 (or the resource metadata); more are obtained via 403 insufficient_scope.
2026-07-28: the client takes the union of old and new scopes; the server requests everything an operation needs at once.
quiz · 2 questions
1. Under 2026-07-28, the client holds files:read and receives a 403 with scope="files:write". Which scopes should it request when re-authorizing?
If it requested only files:write, the new token could lose read access. In this revision, taking the union is the client's job.
2. An operation needs a, b and c, and the client has none of them. Under 2026-07-28, how should the server respond?
Requesting them one at a time would force the user to approve three times.