/
Contact usSee pricingStart building

    Management

    API keys
    Redirect urls
    Event logs
    Dashboard roles & permissions
    Webhooks
    Stytch MCP server

    Programmatic Workspace Actions

    Overview
    Limits
    Country code allowlists
      Country code allowlist object
      Get allowed country codes
      Set allowed country codes
    Email templates
      Email template object
      Sender information object
      Prebuilt customization object
      Custom HTML customization object
      Create email template
      Get email template
      Get all email templates
      Update email template
      Delete email template
    JWT templates
      JWT template object
      Get JWT templates
      Set JWT templates
    Password strength config
      Password strength config object
      Get password strength config
      Set password strength config
    Projects
      Project object
      Create project
      Get project
      Get all projects
      Update project
      Delete project
    Project metrics
      Metrics object
      Get project metrics
    Public tokens
      Public token object
      Create public token
      Get all public tokens
      Delete public tokens
    RBAC policy
      Policy object
      Role object
      Permission object
      Resource object
      Get RBAC policy
      Set RBAC policy
    Redirect URLs
      Redirect URL object
      URL type object
      Create redirect URL
      Get redirect URL
      Get all redirect URLs
      Update redirect URL
      Delete redirect URL
    SDK config
      SMSAutofillMetadata object
      ConsumerSDKBasicConfig object
      ConsumerSDKSessionsConfig object
      ConsumerSDKMagicLinksConfig object
      ConsumerSDKOTPsConfig object
      ConsumerSDKOAuthConfig object
      ConsumerSDKTOTPsConfig object
      ConsumerSDKWebauthnConfig object
      ConsumerSDKCryptoWalletsConfig object
      ConsumerSDKDFPPAConfig object
      ConsumerSDKBiometricsConfig object
      ConsumerSDPasswordsConfig object
      ConsumerConfig object
      B2BSDKBasicConfig object
      B2BSDKSessionsConfig object
      B2BSDKMagicLinksConfig object
      B2BSDKOTPsConfig object
      B2BSDKOAuthConfig object
      B2BSDKTOTPsConfig object
      B2BSDKSSOConfig object
      B2BSDKPasswordsConfig object
      B2BConfig object
      Get Consumer SDK config
      Set Consumer SDK config
      Get B2B SDK config
      Set B2B SDK config
    Secrets
      Secret object
      CreatedSecret object
      Create secret
      Get secret
      Get all secrets
      Delete secret
Get support on SlackVisit our developer forum

Contact us

Home

/

Workspace management

/

Management

/

Stytch MCP server

Stytch MCP Server

One of the most compelling recent developments in the AI ecosystem is the Model Context Protocol (MCP). Briefly, MCP allows large language models (LLM) like ChatGPT or Claude to perform actions in an app (called tools in the MCP protocol) on behalf of the user chatting with the LLM. MCP allows LLMs to increase their capabilities by connecting the AI to third party services in a seamless fashion.

Stytch can be used to provide the authentication layer for implementing MCP servers, but, in addition, Stytch itself has been implemented as an MCP server. This allows configuring Stytch's products using natural language through a MCP-capable AI—no need to visit the Stytch dashboard.

Configuring Stytch's MCP server

Stytch is commonly configured during software development, so for this example we'll be configuring an IDE with Stytch's MCP server information. To one-click install Stytch's MCP server with Cursor or VSCode, you can visit mcp.stytch.dev and click the button for installation. Alternatively, for other tools or to set up Stytch MCP with Cursor manually, proceed through the following walkthrough. Although the configuration process here is specific to Cursor, this example should give enough information to configure Stytch's MCP server for other tools.

In the app menu bar, activate

Cursor => Settings => Cursor Settings

Select the Tools & Integrations tab, and then Add Custom MCP. This will open a file called mcp.json that contains the server's configuration. Follow the documentation here to understand how to configure the json file. For our purposes, the file should look something like:

{
  "mcpServers": {
    "stytch": {
      "url": "https://mcp.stytch.dev/mcp"
    }
  }
}

It may be necessary to restart Cursor to pick up the changes.

Note: when configuring other tools, although the configuration steps may differ, the same URL used in the above configuration should be used to specify where Stytch's MCP server is located.

Now, when going to

Cursor => Settings => Cursor Settings => Tools & Integrations

there should be an entry for stytch and a small message underneath which says "Needs authentication".

Authenticating with the Stytch MCP server

From time to time it may be necessary to reauthenticate with the Stytch MCP server. In the Tools & Integrations view, you can click the message that says "Needs Authentication" to go through the auth flow to grant access to your Stytch workspace to Cursor. Once the flow is done, Cursor should enumerate the tools available and you should see a message like "21 tools enabled"; and clicking this message will expand to show you the tools that Stytch's MCP server has implemented.

Connected to Stytch MCP server

The Stytch MCP server is now configured to be used with the Cursor agent. You should be able to ask it things like "What are my Stytch project IDs" and it will return a response. Using natural language—you don't have to specifically match the name of the tool—you can perform any action listed in the available tools from Stytch's MCP server.

When running requests against the Stytch MCP server, note that by default Cursor is careful not to run commands automatically as that may change state - you have to grant it permission for each tool call. If you get stuck or Cursor's agent seems to hang, be sure to check if it's waiting for permission to make the call. Cursor has documentation available on how to automatically run MCP tools if you choose to not be prompted for each call.

What's possible using Stytch's MCP server

Having access to Stytch via its MCP server is very handy for chatting with AI agents or quickly getting information without having to context switch out of the IDE. In addition, it's convenient for keeping more of your systems in your repository; for instance, you can keep your email templates in git / version control and just ask the AI agent to upload a new version as it changes rather than having to log in and do the upload manually.

One of the most exciting possibilities made available by using our MCP server is in putting configuration instructions directly in your repository's README file. For an example of what this might look like you can check out our MCP example hosted on Vercel, which shows at the end of its README an example of how to script the configuration of Stytch via the MCP server and LLM. In this way you can create documentation that is both human-readable and which can be used by AI to boostrap your projects.

Next steps

Read more about implementing an MCP server with Stytch authentication:

  • Overview on implementing MCP servers
  • B2B MCP example app walkthrough: OKR Manager
  • B2C MCP example app walkthrough: TODO list

Configuring Stytch's MCP server

Authenticating with the Stytch MCP server

What's possible using Stytch's MCP server

Next steps