oauthAuth0Provider when Auth0 is the authorization server. MCP clients register directly with Auth0, and mcp-use verifies Auth0 access tokens against the resolved MCP resource.
Configure Auth0
In the Auth0 Dashboard:- Enable the Resource Parameter Compatibility Profile.
- Promote the login connections MCP clients may use to domain-level connections.
- Create an API whose identifier is the canonical MCP resource, such as
https://mcp.example.com/mcp. - Use the
rfc9068_profile_authztoken dialect if tools need Auth0 permissions in access tokens.
audience.
Configure the server
Treat the environment variable as application configuration and passdomain explicitly.
Use Auth0 identity and permissions
Auth0 normalizes the subject toctx.auth.user.id. It also maps optional email, name, nickname, picture, emailVerified, and updatedAt fields plus roles. Token permissions are available at top-level ctx.auth.permissions.
Verify the setup
Confirm that the client registers with Auth0, the token audience is the resolved MCP resource, invalid tokens are rejected, and permission-protected tools reject callers without the required permission.Runnable Auth0 example
Compare with the maintained Auth0 example.
Auth0 MCP Authorization Guide
Configure Auth0 for MCP authorization.
User Context
Use normalized Auth0 identity and permissions.