fastmcp.server.auth.providers.descope
Descope authentication provider for FastMCP.
This module provides DescopeProvider - a complete authentication solution that integrates
with Descope’s OAuth 2.1 and OpenID Connect services, supporting Dynamic Client Registration (DCR)
for seamless MCP client authentication.
Classes
DescopeProviderSettings
DescopeProvider
Descope metadata provider for DCR (Dynamic Client Registration).
This provider implements Descope integration using metadata forwarding.
This is the recommended approach for Descope DCR
as it allows Descope to handle the OAuth flow directly while FastMCP acts
as a resource server.
IMPORTANT SETUP REQUIREMENTS:
-
Create an MCP Server in Descope Console:
- Go to the MCP Servers page of the Descope Console
- Create a new MCP Server
- Ensure that Dynamic Client Registration (DCR) is enabled
- Note your Well-Known URL
-
Note your Well-Known URL:
- Save your Well-Known URL from MCP Server Settings
- Format:
https://.../v1/apps/agentic/P.../M.../.well-known/openid-configuration
get_routes
mcp_path: The path where the MCP endpoint is mounted (e.g., “/mcp”) This is used to advertise the resource URL in metadata.

