Study FAQ
How should a remote MCP server authorize each request?
Also asked as 2
- What should my MCP server validate in a client’s OAuth access token?
- Why do MCP tools need operation-level authorization as well as a valid bearer token?
Answer
For an MCP 2026-07-28 server using the HTTP authorization specification, act as the OAuth resource server. Publish protected resource metadata for authorization-server discovery, accept bearer tokens intended for your MCP server in the Authorization header, and validate each protected request. Check the token’s trusted issuer, audience or resource binding, expiry, and scope using the appropriate validation method for your token format.
Ask for the minimum scopes required. Return the appropriate authentication or insufficient-scope challenge and avoid leaking private resource details. Reject tokens issued for another resource, keep bearer credentials out of URLs, and use a separate authorization flow if your service calls a downstream resource.
After token validation, check tenant, resource, permitted operation, and request arguments. The host still owns user consent and any confirmation for consequential calls. Validate HTTP Origin under the transport rules and use protected transport. Log only the information needed to trace authorization and effects without exposing bearer tokens or sensitive data.
Full explanation
MCP Server Development and Choosing Between Tools, Skills, and MCP
Study guide · CCDV-F
Read the full explanation