Skip to content
API Reference
Stytch logo

Stytch

Developer Tools

Configure authentication projects with Stytch

Stytch is an authentication and fraud-prevention platform. List and create projects; manage redirect URLs, public tokens, secrets, and email templates; configure Consumer and B2B SDKs; and tune password strength rules.

Add Stytch to your zone and connect it to your MCP client.

  1. In your zone’s Keycard Console, go to Applications -> Add Application -> Explore MCP Servers.

  2. Search for Stytch and click Install.

  3. A browser tab opens to Stytch’s OAuth consent screen. Sign in and approve the requested permissions.

  4. You’re redirected back. Stytch appears on the Applications page with a Keycard MCP Gateway URL.

On the Applications page, click Add to Coding Agent next to Stytch and pick how you want to install:

  • Cursor - opens a deeplink that hands the MCP config straight to Cursor. Click Install inside Cursor to finish.
  • Claude Code - opens a dialog with a claude mcp add command. Pick a scope (User, Project, or Local), then copy and run the command in your terminal.
  • Install manually - reveals the Server Name and Server URL to paste into any other MCP-compatible client.

Once connected, Stytch’s tools are available to the agent, scoped to whoever signs in to your zone.

What Stytch can do once installed.

Stytch provides 21 tools:

listProjects
List all Stytch projects
createProject
Create a new Stytch project
getAllRedirectURLs
Retrieve all redirect URLs for a project
createRedirectURL
Create a redirect URL for a project
updateRedirectURL
Update valid types for a redirect URL on a project
deleteRedirectURL
Delete a redirect URL for a project
getAllPublicTokens
Retrieve all active public tokens for a project
createPublicToken
Create a public token for a project
deletePublicToken
Delete a specific public token for a project
createEmailTemplate
Create a custom email template (prebuilt or HTML with {{magic_link_url}} for magic links)
getAllEmailTemplates
Retrieve all email templates for a project
updateEmailTemplate
Update an email template (prebuilt or HTML with {{magic_link_url}} when using custom HTML)
deleteEmailTemplate
Delete a specific email template for a project
createSecret
Create a new secret for a project
deleteSecret
Delete a specific secret for a project
getConsumerSDKConfig
Retrieve the SDK configuration for a Consumer project
updateConsumerSDKConfig
Update Consumer SDK config; call getConsumerSDKConfig first and pass the full config to avoid overwriting
getB2BSDKConfig
Retrieve the SDK configuration for a B2B project
updateB2BSDKConfig
Update B2B SDK config; call getB2BSDKConfig first and pass the full config to avoid overwriting
getPasswordStrengthConfig
Retrieve password strength configuration for a project
setPasswordStrengthConfig
Set password strength configuration for a project

What to do once Stytch is installed.

Now do this

  • Confirm the gateway works by asking your AI client to call one of the Stytch tools above.

Recommended

  • Decide who can use it - write access policies scoped to the Stytch resource so only the right users and agents reach the tools.
  • Watch the calls - every tool call lands in your audit log with user identity, resource, and policy decision.