This example uses WorkOS AuthKit for OAuth
authentication. AuthKit provides a complete identity solution with JWT-based
auth, JWKS validation, automatic token refresh, and Dynamic Client
Registration - all MCP-spec compliant. You’ll need a free WorkOS account to
run this example. Sign up here.
What to Notice
1. Remote OAuth with Dynamic Client Registration (DCR)
The problem: Traditional OAuth requires manually creating an OAuth app for every client. You’d need to create an app in your dashboard, get credentials, configure redirect URIs - doesn’t scale. DCR solution: Clients register themselves automatically via API:2. Per-User Data Isolation with JWT Claims
Every tool extracts user identity from the validated JWT:user_sub - users never see each other’s data.