01What is OAuth Protected Resource Metadata Validator?
OAuth Protected Resource Metadata Validator checks the JSON document a protected API publishes at /.well-known/oauth-protected-resource. The format is defined in RFC 9728 (April 2025). It tells clients which authorization servers issue tokens for the API, which scopes exist, how to send a token, and more. The Model Context Protocol made it widely needed. The MCP authorization specification (version 2025-11-25) says MCP servers MUST implement RFC 9728, and that the document MUST list at least one entry in authorization_servers. MCP clients use it to find out where to log in. If the document is wrong, clients can't connect. Paste the metadata JSON. Optionally add the resource URL the client used and the WWW-Authenticate header from the server's 401 response. The tool checks every parameter in RFC 9728 section 2. resource is required and must be an https URL without a fragment; RFC 8707 also discourages a query. authorization_servers, scopes_supported and the other list parameters must be arrays of strings. bearer_methods_supported may only contain header, body and query. jwks_uri must use https, and none is not allowed in the signing algorithm lists. Empty arrays are flagged, because section 3.2 says parameters with zero values MUST be omitted. The issuers listed in authorization_servers are checked as RFC 8414 issuer identifiers: https, with no query or fragment. If you give the resource URL, the tool applies section 3.3. The resource value in the document must be identical to the URL the client used, or the client MUST NOT use the metadata. A mismatch here is a common reason MCP connections fail. The tool also prints the well-known URLs a client tries in order. For https://example.com/public/mcp that is the path-specific URL first, then the root one, as the MCP spec describes. For each authorization server it lists the RFC 8414 and OpenID Connect discovery URLs in the order MCP clients must try them. With a WWW-Authenticate value, it parses resource_metadata and scope and notes when they are missing. The tool doesn't fetch anything, so it can't confirm the URLs respond or that signed_metadata is validly signed. Paste what your server returns, and the check runs in your browser. Sources: RFC 9728, OAuth 2.0 Protected Resource Metadata (https://www.rfc-editor.org/rfc/rfc9728); MCP specification 2025-11-25, Authorization (https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization); RFC 8414, OAuth 2.0 Authorization Server Metadata (https://www.rfc-editor.org/rfc/rfc8414); RFC 8707, Resource Indicators (https://www.rfc-editor.org/rfc/rfc8707).
MCP server developers, API and identity engineers, and anyone setting up OAuth discovery for a protected API. The tool runs entirely in your browser, so your data never leaves your device.
02How to use OAuth Protected Resource Metadata Validator
- Fetch your metadata with curl from /.well-known/oauth-protected-resource and paste the JSON
- Enter the exact resource URL clients connect to, such as your MCP endpoint
- Optionally paste the WWW-Authenticate header from a 401 response
- Fix the errors, then compare the listed discovery URLs with what your server actually serves
03Worked examples
- Input:
{"resource":"https://mcp.example.com/mcp","authorization_servers":["https://auth.example.com/tenant1"],"scopes_supported":["files:read","files:write"],"bearer_methods_supported":["header"],"resource_name":"Example Files MCP"} Resource URL: https://mcp.example.com/mcp - Result:
No errors found. Well-known: https://mcp.example.com/.well-known/oauth-protected-resource/mcp, then https://mcp.example.com/.well-known/oauth-protected-resource AS metadata: https://auth.example.com/.well-known/oauth-authorization-server/tenant1, https://auth.example.com/.well-known/openid-configuration/tenant1, https://auth.example.com/tenant1/.well-known/openid-configuration - A valid MCP server document and the discovery order.
- Input:
Same document, resource URL https://mcp.example.com - Result:
error resource: resource "https://mcp.example.com/mcp" is not identical to "https://mcp.example.com". Section 3.3: clients MUST NOT use metadata whose resource doesn't match. - The most common cause of failed discovery.
- Input:
{"resource":"https://mcp.example.com"} with MCP rules on - Result:
info: scopes_supported is RECOMMENDED. info: resource_name is RECOMMENDED for display to users. error authorization_servers: MCP: the document MUST include authorization_servers with at least one authorization server. - Valid RFC 9728, but not enough for MCP.
- Input:
{"resource":"http://api.example.com/","authorization_servers":[],"bearer_methods_supported":["cookie"]} - Result:
error resource: resource must use https (RFC 9728 section 1.2). warn authorization_servers: authorization_servers is empty. Section 3.2: parameters with zero values MUST be omitted. error bearer_methods_supported: "cookie" is not one of header, body, query. - Output trimmed.
04Common use cases
- Debugging an MCP server that clients can't authorize against
- Checking a new /.well-known/oauth-protected-resource document before deploying it
- Working out which discovery URLs an MCP client will request for a given server URL
- Reviewing the WWW-Authenticate challenge a resource server returns on 401
- Auditing API gateway or identity provider metadata for RFC 9728 compliance
05Tips
- The resource value must equal the URL clients use, character for character, including any path
- For MCP, list at least one authorization server issuer
- Leave out parameters you have no values for instead of sending empty arrays
- Include resource_metadata in the WWW-Authenticate header so clients don't have to guess the well-known URL
06Related concepts
RFC 9728, Protected Resource Metadata, MCP authorization, RFC 8414, WWW-Authenticate, OAuth 2.1.
Frequently Asked Questions
What is OAuth Protected Resource Metadata Validator?
OAuth Protected Resource Metadata Validator is a free, browser-based developer tool on AIDToolStack. Validate an OAuth 2.0 Protected Resource Metadata document (RFC 9728) and the MCP authorization rules, and see the discovery URLs clients try. It requires no installation or sign-up and works entirely in your browser.
Is OAuth Protected Resource Metadata Validator free to use?
Yes. No sign-up, no fees and no usage cap.
Does OAuth Protected Resource Metadata Validator store my data?
No. It runs in your browser; nothing is uploaded.