mcp-client-protected-resource-metadata

Parse OAuth 2.0 Protected Resource Metadata for MCP client authorization server discovery.

47|5|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/RedHatProductSecurity/prodsec-skills --skill mcp-client-protected-resource-metadata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-client-protected-resource-metadata
Source: https://github.com/RedHatProductSecurity/prodsec-skills/tree/main/module/skills/mcp-client-protected-resource-metadata
Command: npx skills add https://github.com/RedHatProductSecurity/prodsec-skills --skill mcp-client-protected-resource-metadata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures MCP clients can securely discover authorization servers using OAuth 2.0 Protected Resource Metadata, preventing manual configuration errors and enhancing security.

Core Features & Use Cases

  • Automated Discovery: Fetches and interprets OAuth protected resource metadata from MCP servers.
  • Secure Authorization: Guides clients to securely identify trusted authorization servers and request appropriate scopes.
  • Use Case: When a MCP client connects to a server, it automatically retrieves metadata to dynamically select an authorization server and obtain tokens, streamlining secure communication within MCP ecosystems.

Quick Start

Use the mcp client to fetch OAuth protected resource metadata from the server endpoint to initiate secure authorization.

Frequently Asked Questions about mcp-client-protected-resource-metadata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I discover OAuth authorization servers for an MCP client?

Discover OAuth authorization servers for an MCP client by fetching and interpreting OAuth 2.0 Protected Resource Metadata, which dynamically exposes trusted servers and scopes to streamline secure authorization.

What is OAuth 2.0 Protected Resource Metadata used for in MCP?

OAuth 2.0 Protected Resource Metadata in MCP is used to automatically publish and retrieve authorization server details, allowing clients to dynamically select trusted servers and request appropriate scopes without manual configuration.

How do I parse authorization_servers and scopes_supported metadata fields?

Parse authorization_servers and scopes_supported metadata fields by retrieving the protected resource metadata endpoint and applying RFC 9728 standards to correctly interpret the exposed OAuth 2.0 authorization details.

Does this MCP client authorization flow adhere to RFC 9728 standards?

Yes, this MCP client authorization flow adheres to RFC 9728 standards, ensuring correct parsing of OAuth 2.0 Protected Resource Metadata fields like authorization_servers and scopes_supported during server discovery.

Why do I need automated OAuth discovery for MCP server connections?

Automated OAuth discovery for MCP server connections is needed to prevent manual configuration errors, securely identify trusted authorization servers, and dynamically obtain tokens to streamline communication within MCP ecosystems.

Can I use protected resource metadata to request specific OAuth scopes?

Yes, you can use protected resource metadata to request specific OAuth scopes by parsing the scopes_supported field, which guides MCP clients to securely identify trusted authorization servers and request appropriate access.

Related Skills