oauthAuth0Provider() options, environment variable fallbacks, defaults, and errors.
Configure Auth0
In the Auth0 Dashboard, configure the tenant for MCP clients.- Go to Settings > Advanced and enable Resource Parameter Compatibility Profile.
- Promote the login connections that MCP clients may use to domain-level connections.
- Create an API for your MCP server.
rfc9068_profile_authz token dialect when your tools need Auth0 permissions in access tokens.
Set environment variables
Configure the MCP server
domain and audience directly instead of using environment variables:
Use Auth0 permissions in tools
Auth0 permissions are available onctx.auth.permissions when they are present in the access token.
Verify the setup
Run the server and connect with an OAuth-capable MCP client.- The client discovers your server’s OAuth metadata.
- The client registers with Auth0 and completes login.
- Authenticated tool calls include
ctx.auth. - Tool calls without a valid bearer token are rejected.
Next steps
Runnable Auth0 example
Compare your setup with a working mcp-use Auth0 server.
Auth0 MCP Authorization Guide
Review Auth0’s MCP authorization setup.
User Context
Read Auth0 user and permission data inside tools.
Auth0 provider API reference
Look up exact provider options and defaults.