Skip to main content

fastmcp.server.auth.providers.propelauth

PropelAuth authentication provider for FastMCP. Example:

Classes

PropelAuthTokenIntrospectionOverrides

PropelAuthProvider

PropelAuth resource server provider using OAuth 2.1 token introspection. This provider validates access tokens via PropelAuth’s introspection endpoint and forwards authorization server metadata for OAuth discovery. For detailed setup instructions, see: https://docs.propelauth.com/mcp-authentication/overview Methods:

get_routes

Get routes for this provider. Includes the standard routes from the RemoteAuthProvider (protected resource metadata routes (RFC 9728)), and creates an authorization server metadata route that forwards to PropelAuth’s route Args:
  • mcp_path: The path where the MCP endpoint is mounted (e.g., “/mcp”) This is used to advertise the resource URL in metadata.

verify_token

Verify token and check the aud claim against the configured resource.