Skip to main content
Version: 1.1.0

Authentication Overview

rust-mcp-sdk provides a comprehensive OAuth 2.0 authentication framework for MCP.

Server-sideโ€‹

MethodDescription
RemoteAuthProviderIntegrates with identity providers that support DCR (Keycloak, WorkOS, Scalekit)
OAuthProxy (coming soon)For providers without DCR support - proxy handles registration
Token VerificationVerify tokens issued by external systems
note

OAuthProxy is still work-in-progress and not included in v1.0.0. Use RemoteAuthProvider in the meantime.

Client-sideโ€‹

FeatureDescription
OAuth FlowAuthorization code + PKCE
DCRDynamic Client Registration
Token RefreshAutomatic token refresh
Token StorePluggable token persistence

Provider Packagesโ€‹

The rust-mcp-extra crate offers drop-in auth providers:

  • Keycloak - OIDC-compliant identity provider
  • WorkOS AuthKit - Auth-as-a-service
  • Scalekit - Enterprise auth platform