MCP authorization is the part of the Model Context Protocol specification that defines how a client gets an OAuth 2.1 access token for a remote MCP server over HTTP.
The Model Context Protocol specification includes an optional authorization layer for HTTP-based transports. A protected MCP server acts as an OAuth 2.1 resource server, the MCP client acts as an OAuth client, and a separate authorization server signs the person in and issues tokens. The server publishes OAuth 2.0 Protected Resource Metadata (RFC 9728) so the client can discover the authorization server, clients use PKCE, and they send a resource parameter (RFC 8707) so each token is bound to the one MCP server it is meant for. The server must reject tokens issued for other audiences and must not pass the token it received through to upstream APIs; if it calls another API, it uses a separate token issued for that API. The specification says local servers on the stdio transport should not use this flow and should take credentials from the environment instead. That split matters for agent credentials: a hosted MCP server can use short-lived, audience-bound tokens, while a local stdio server commonly reads an API key from an environment variable that the agent's other tools may also inherit. BotPassword's local MCP server (bpw mcp) uses stdio and identifies the agent client to the daemon, which checks every intent against that client's grants.