Microsoft Sentinel
Cloud and workloads

Use a Microsoft Sentinel MCP Tool in Microsoft Foundry

In brief

The article title, description, metadata, and formatting were updated. Its description now highlights app registration, authentication, and connecting Sentinel or custom MCP tools to Microsoft Foundry agents.

What Defender admins need to know

Review the refreshed setup guidance when configuring MCP tools in Foundry. No administrator action is stated.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Use anMicrosoft Sentinel MCP tooltools in Microsoft Foundry (preview)

This article shows you how to add Microsoft Sentinel's Model Context Protocol (MCP) collection of security tools or your own custom tools to your AI agents in Microsoft Foundry.

For information about how to get started with MCP tools, see the following articles:

  1. Go to Microsoft Foundry's agent builder then select Build > Agent.

    :::image type="content" source="media/sentinel-mcp/get-started-foundry-build-agent.png" alt-text="Screenshot of Microsoft Foundry agent builder page with the build agent option highlighted." lightbox="media/sentinel-mcp/get-started-foundry-build-agent.png":::

  2. Enter a name for your agent.

    :::image type="content" source="media/sentinel-mcp/get-started-foundry-create-agent.png" alt-text="Screenshot of the Create new agent pop-up window in Microsoft Foundry agent builder page." lightbox="media/sentinel-mcp/get-started-foundry-create-agent.png":::

  3. On the Tools panel, select Add a new tool to ground your agent instructions with relevant security data from Microsoft Sentinel.

    :::image type="content" source="media/sentinel-mcp/get-started-foundry-add-tool.png" alt-text="Screenshot of an agent's page in Microsoft Foundry with add tool option highlighted." lightbox="media/sentinel-mcp/get-started-foundry-add-tool.png":::

  4. On the Select a tool pop-up window, search for Sentinel and choose any available Microsoft Sentinel tool collection (for example, Microsoft Sentinel – Data exploration).

    :::image type="content" source="media/sentinel-mcp/get-started-foundry-select-tool.png" alt-text="Screenshot of the Select a tool pop-up window in Microsoft Foundry agent builder page with a Sentinel tool collection highlighted." lightbox="media/sentinel-mcp/get-started-foundry-select-tool.png":::

  5. Select Connect.

Your agent is now connected with Sentinel's available collection of tools. You can start prompting your agent and use the tools to deliver outcomes.

Add a custom tool collection

Custom tools let you build deterministic workflows by prescribing exactly what data agents can reason over. To add your custom tool collection in Microsoft Foundry, follow these steps:

Step 1: Register an app in Azure portal

  1. Open your tenant's Azure portal then go to App registrations > New registration.

    :::image type="content" source="media/sentinel-mcp/custom-azure-new-reg.png" alt-text="Screenshot of Azure portal with New registration option highlighted." lightbox="media/sentinel-mcp/custom-azure-new-reg.png":::

  2. On the Register an application page, enter a friendly user-facing Name for the app, then select Register.

    :::image type="content" source="media/sentinel-mcp/custom-azure-register.png" alt-text="Screenshot of the new application registration page in Azure portal." lightbox="media/sentinel-mcp/custom-azure-register.png":::

  3. On your newly registered app's page, go to Manage > API permissions, then select Add a permission.

    :::image type="content" source="media/sentinel-mcp/custom-azure-permissions.png" alt-text="Screenshot of the API permissions page and flyout panel in Azure portal." lightbox="media/sentinel-mcp/custom-azure-permissions.png":::

  4. On the flyout panel that appears, go to the APIs my organization uses tab and search for Sentinel Platform Services.

    :::image type="content" source="media/sentinel-mcp/custom-azure-api-reg.png" alt-text="Screenshot of the APIs my organization uses tab in the Request API permissions panel in Azure portal." lightbox="media/sentinel-mcp/custom-azure-api-reg.png":::

  5. Choose SentinelPlatform.DelegatedAccess, then select Add permissions.

    :::image type="content" source="media/sentinel-mcp/custom-azure-api-delegate.png" alt-text="Screenshot of the Request API permissions panel in Azure portal with permissions selected." lightbox="media/sentinel-mcp/custom-azure-api-delegate.png":::

  6. Back on your app's page, go to Manage > Certificates & secrets, then select the Client secrets tab.

  1. Go back to the Azure portal's Overview page and copy and save the following values for the next steps:

    • Application (client) ID
    • Directory (tenant) ID
  2. Go to Microsoft Foundry and select an existing agent or a newly created agent.

  3. On the agent's page, go to the Tools section then select Add > + Add a new tool.

    :::image type="content" source="media/sentinel-mcp/custom-foundry-add-tool.png" alt-text="Screenshot of an agent's page in Microsoft Foundry with Add a new tool highlighted." lightbox="media/sentinel-mcp/custom-foundry-add-tool.png":::

  4. In the Add a new tool pop-up window, select Custom > Model Context Protocol (MCP), and then select Create.

    :::image type="content" source="media/sentinel-mcp/custom-foundry-mcp.png" alt-text="Screenshot of the add tool setup in Microsoft Foundry." lightbox="media/sentinel-mcp/custom-foundry-mcp.png":::

  5. Add the following values:

    • Name: Enter a friendly name for your tool

    • Remote MCP server endpoint: Paste the endpoint you copied from your custom tool collection; it should have the following format:

      https://sentinel.microsoft.com/mcp/custom/<name of your custom collection>
      
    • Authentication: OAuth Identity Passthrough

    • Client ID: Use the Application (client) ID value you saved previously

    • Client secret: Use the secret value you saved previously

    • Token URL and Refresh URL: Use the following format and replace <tenant ID> with the Directory (tenant) ID value you saved previously:

      https://login.microsoftonline.com/<tenant ID>/oauth2/v2.0/token
      
    • Authorization URL: Use the following format and replace <tenant ID> with the Directory (tenant) ID value you saved previously:

      https://login.microsoftonline.com/<tenant ID>/oauth2/v2.0/authorize
      
    • Scope: Use the following:

      4500ebfb-89b6-4b14-a480-7f749797bfcd/.default,offline_access
      

    :::image type="content" source="media/sentinel-mcp/custom-foundry-mcp-details.png" alt-text="Screenshot of the MCP details in add tool setup in Microsoft Foundry." lightbox="media/sentinel-mcp/custom-foundry-mcp-details.png":::

  6. Select Connect. Your tool is created successfully and a redirect URL is generated. Copy and save the redirect URL.

    :::image type="content" source="media/sentinel-mcp/custom-foundry-redirect.png" alt-text="Screenshot of the credential provider or redirect URL details in add tool setup in Microsoft Foundry." lightbox="media/sentinel-mcp/custom-foundry-redirect.png":::

Step 3: Authenticate Microsoft Foundry to use your custom tool

To authenticate Microsoft Foundry with the custom tool, complete the following steps:

  1. Go back to your tenant's Azure portal and into the app you just added then select Add a redirect URI.

  2. Select + Add a platform > Web.

    :::image type="content" source="media/sentinel-mcp/custom-azure-add-platform.png" alt-text="Screenshot of the Authentication page in Azure portal." lightbox="media/sentinel-mcp/custom-azure-add-platform.png":::

  3. In the Redirect URIs text box, add the redirect URL you copied then select Configure.

  4. Go back to Microsoft Foundry and use a prompt that matches the tool you created. On your first attempt, select Open consent to give consent to your signed in user account. :::image type="content" source="media/sentinel-mcp/custom-foundry-prompt-result.png" alt-text="Screenshot of chat details in Microsoft Foundry that uses a custom tool." lightbox="media/sentinel-mcp/custom-foundry-prompt-result.png":::

Related content