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:
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":::
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":::
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":::
On the Select a tool pop-up window, search for
Sentineland 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":::
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
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":::
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":::
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":::
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":::
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":::
Back on your app's page, go to Manage > Certificates & secrets, then select the Client secrets tab.
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
Go to Microsoft Foundry and select an existing agent or a newly created agent.
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":::
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":::
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/tokenAuthorization 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/authorizeScope: 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":::
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:
Go back to your tenant's Azure portal and into the app you just added then select Add a redirect URI.
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":::
In the Redirect URIs text box, add the redirect URL you copied then select Configure.
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
@@ -1,28 +1,29 @@ ----title: Use a Microsoft Sentinel MCP tool in Microsoft Foundry +title: Use a Microsoft Sentinel MCP Tool in Microsoft Foundry titleSuffix: Microsoft Security -description: Learn how to use Microsoft Sentinel's Model Context Protocol (MCP) collection of security tools or your own custom tool in Microsoft Foundry +description: Add Microsoft Sentinel MCP security tool collections or your own custom MCP tools to AI agents in Microsoft Foundry. Includes steps for app registration, authentication, and connecting tools. ms.author: pauloliveria author: poliveria ms.reviewer: macasgra ms.topic: how-to-ms.date: 06/12/2026+ms.date: 07/01/2026 ms.service: microsoft-sentinel ms.subservice: sentinel-platform ai-usage: ai-assisted-ms.custom: msecd-doc-authoring-1014+ms.custom: msecd-doc-authoring-1016 #customer intent: As a security analyst, I want to add Sentinel MCP tools in Microsoft Foundry. --- -# Use an MCP tool in Microsoft Foundry (preview)+# Use Microsoft Sentinel MCP tools in Microsoft Foundry (preview) > [!IMPORTANT] > This information relates to a prerelease product that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here. -This article shows you how to add Microsoft Sentinel's Model Context Protocol (MCP) [collection of security tools](sentinel-mcp-tools-overview.md#available-collections) or your own custom tools to your AI agents in [Microsoft Foundry](/azure/ai-foundry/what-is-azure-ai-foundry). +This article shows you how to add Microsoft Sentinel's Model Context Protocol (MCP) [collection of security tools](sentinel-mcp-tools-overview.md#available-collections) or your own custom tools to your AI agents in [Microsoft Foundry](/azure/ai-foundry/what-is-azure-ai-foundry). For information about how to get started with MCP tools, see the following articles:+ - [Get started with Microsoft Sentinel MCP server](sentinel-mcp-get-started.md) - [Create and use custom Microsoft Sentinel MCP tools](sentinel-mcp-create-custom-tool.md) @@ -32,49 +33,48 @@ To add a Microsoft Sentinel tool collection in Microsoft Foundry, follow these s 1. Go to [Microsoft Foundry's agent builder](https://go.microsoft.com/fwlink/?linkid=2340185) 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"::: + :::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"::: 1. 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"::: + :::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"::: -1. On the **Tools** panel, select **Add a new tool** to ground your agent instructions with relevant security data from Microsoft Sentinel. +1. 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"::: + :::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"::: 1. On the **Select a tool** pop-up window, search for `Sentinel` and choose any [available Microsoft Sentinel tool collection](sentinel-mcp-tools-overview.md) (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"::: -+ :::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"::: 1. 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](https://portal.azure.com) then go to **App registrations** > **New registration**.++1. Open your tenant's [Azure portal](https://portal.azure.com) 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"::: -1. On the **Register an application** page, enter a friendly user-facing **Name** for the app, then select **Register**.+1. 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":::- -1. On your newly registered app's page, go to **Manage** > **API permissions**, then select **Add a permission**.++1. 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":::- -1. On the flyout panel that appears, go to the **APIs my organization uses** tab and search for `Sentinel Platform Services`.++1. 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"::: -1. Choose **SentinelPlatform.DelegatedAccess**, then select **Add permissions**.- +1. 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"::: 1. Back on your app's page, go to **Manage** > **Certificates & secrets**, then select the **Client secrets** tab. @@ -85,11 +85,11 @@ Custom tools let you build deterministic workflows by prescribing exactly what d > [!TIP] > Create a single app for all Sentinel custom tools, but create separate client secrets for each custom collection you want to add to your agent.- + >[!IMPORTANT] > Once the client secret is added, copy and save its **Value**, which you use in the next steps. -1. Go back to the Azure portal's **Overview** page and copy and save the following values for the next steps:+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 @@ -102,37 +102,44 @@ Add the custom MCP tool to your agent in Microsoft Foundry by following these st 1. Go to Microsoft Foundry and select an existing agent or a newly created agent. 1. 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"::: -1. 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":::+1. 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"::: 1. 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: ++ - **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":::- + 1. 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":::@@ -140,14 +147,13 @@ Add the custom MCP tool to your agent in Microsoft Foundry by following these st ### 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**.- + 1. 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"::: - 1. In the **Redirect URIs** text box, add the redirect URL you copied then select **Configure**. 1. 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.@@ -161,4 +167,5 @@ Once you give consent, your agent can reason over data returned by your custom M :::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+ - [Tool collection in Microsoft Sentinel MCP server](sentinel-mcp-tools-overview.md) 