Table of Contents

MCP Server Settings

To enable MCP Clients to use OAuth authorization to Flow MCP Server APIs, you need to configure the MCP Server Settings for your tenant. For example, if you try to use the OAuth endpoint of an MCP Trigger without configuring the MCP Server Settings, you will get an unauthorized error response from the API.

img


Get started - use default Authorization Server

The quickest way to enable OAuth for Flow MCP Server APIs is to use the Authorization Server associated with your Flow instance, which is Microsoft Entra ID.

  1. In the MCP Server Settings window, select the Authorization Server tab.
  2. Click Create default settings. This will enable OAuth authorization for your tenant. The Authority property should now contain something like https://login.microsoftonline.com/GUID/v2.0
  3. Based on whether you're a SaaS customer, or self-hosting the solution, do one of the following:
    3.1. If you're an SaaS customer, select the MCP Server Apps tab and click Create application. This will create a Client ID and Client Secret that you can use in external apps to (programatically) request an access token from Entra ID.
    3.2. If you're running Flow on-premises, you need to talk to your Azure admin and have them create an Entra App Registration for you. Then, select the Manual MCP Server App Registrations tab and add the application to the list by providing the Client ID.
Note

Currently, Microsoft Entra ID does not support Dynamic Client Registration. This means that you have to obtain an access token (using the Client Credentials flow) from Entra ID before calling the Flow MCP Server endpoint. If you want to use the Flow MCP capabilities in a client that only support Dynamic Client Registration, you need to use your own Autorization Server instead (like explained below.)


Use your own Authorization Server

If you want to use your own Authorization Server (for example Keycloak, Auth0 or Scalekit) which supports Dynamic Client Registration, or you want to use your own Entra ID instance to do authorization, do the following:

  1. In the MCP Server Settings window, select the Authorization Server tab.
  2. Enter the address of your Authorization Server in the Authority field (remember to save the changes).
  3. Optional: You don't need to do this if your Authorization Server supports Dynamic Client Registration.
    Select the Manual MCP Server App Registrations tab, and add the Applications from your custom Authorization Server. (You need to create Applications in your Authorization Server before performing this step.)