SuperTokens Authentication
Unified authentication workflow combining all SuperTokens Core authentication capabilities. Covers session management, email/password auth, passwordless OTP and magic links, third-party OAuth (Google, GitHub, Apple), email verification, password reset, user metadata, multi-tenancy, user management, and role-based access control.
What You Can Do
MCP Tools
create-session
Create a new authenticated session for a user
get-session
Verify and retrieve session data from an access token
refresh-session
Refresh an authentication session using a refresh token
remove-sessions
Revoke sessions for a user or specific session handles
signup
Create a new user account with email and password
signin
Authenticate a user with email and password
create-passwordless-code
Generate a passwordless OTP or magic link for sign in
consume-passwordless-code
Authenticate user by consuming a passwordless OTP or magic link
thirdparty-signinup
Sign in or create user via OAuth provider (Google, GitHub, Apple, etc.)
create-email-verification-token
Generate an email verification token to send to the user
verify-email
Verify a user's email address using their verification token
is-email-verified
Check whether a user's email has been verified
list-users
List all users with pagination
delete-user
Permanently delete a user and all their data
get-user-metadata
Retrieve custom metadata stored for a user
update-user-metadata
Update custom metadata for a user (shallow merge)
assign-role-to-user
Assign a role to a user for RBAC
get-user-roles
Get all roles assigned to a user
list-tenants
List all configured tenants in a multi-tenant deployment
create-or-update-tenant
Create or configure a tenant in a multi-tenant setup