You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/mcp-server/use-azure-ai-foundry.md
+30-34Lines changed: 30 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,88 +6,84 @@ ms.author: eunicewaweru
6
6
ms.reviewer: FaithOmbongi
7
7
ms.subservice: ent-mcp-server
8
8
ms.topic: how-to
9
-
ms.date: 03/03/2026
9
+
ms.date: 04/08/2026
10
+
ms.custom: msecd-doc-authoring-106
10
11
11
12
#customer intent: As a developer or IT administrator, I want to integrate Microsoft MCP Server for Enterprise into my Azure AI Foundry agent so that I can query Microsoft Entra data using natural language.
12
13
---
13
14
14
15
# Use Microsoft MCP Server for Enterprise in Azure AI Foundry (preview)
15
16
16
-
Microsoft MCP Server for Enterprise can be integrated with Azure AI Foundry as a tool, enabling your AI agents to query Microsoft Entra data using natural language. This article explains how to configure and use the MCP Server in your Azure AI Foundry project.
17
+
Microsoft MCP Server for Enterprise integrates with Azure AI Foundry as a tool, enabling your AI agents to query Microsoft Entra data using natural language. This article walks you through creating an app registration, connecting the MCP Server as a tool, and querying your organization's data from your Azure AI Foundry project.
18
+
19
+
## Prerequisites
17
20
18
21
> [!IMPORTANT]
19
-
> Microsoft MCP Server for Enterprise is currently in Preview.
20
-
> 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.
22
+
> Microsoft MCP Server for Enterprise is currently in preview. This information relates to a prerelease product that might be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.
21
23
>
22
24
> Microsoft MCP Server for Enterprise is offered under the [Microsoft APIs Terms of Use](/legal/microsoft-apis/terms-of-use).
23
25
24
-
## Prerequisites
25
-
26
-
Before you begin, ensure you have:
27
-
28
-
- An Azure AI Foundry project and agent
29
-
- Completed the [quick start steps](get-started.md) to provision the Microsoft MCP Server for Enterprise
30
-
-**Application Administrator** or **Cloud Application Administrator** role in your Microsoft Entra tenant to create and configure app registrations and grant admin consent for API permissions
31
-
-**Contributor** or higher permissions on the Azure AI Foundry project resource to connect tools
26
+
- An Azure AI Foundry project and agent.
27
+
- Completion of [Get started with the Microsoft MCP Server for Enterprise](get-started.md) to provision the MCP Server.
28
+
- At least **Application Administrator** or **Cloud Application Administrator** role in your Microsoft Entra tenant to create and configure app registrations and grant admin consent for API permissions.
29
+
- At least [**Contributor**](/azure/role-based-access-control/built-in-roles/general#contributor) permissions scoped to the Azure AI Foundry project resource to connect tools.
32
30
33
31
## Create and configure an app registration
34
32
35
-
To enable authentication between Azure AI Foundry and Microsoft MCP Server for Enterprise, you need to create a Microsoft Entra app registration and configure the necessary API permissions.
36
-
37
-
1. Follow the [app registration guide](../app-registration.md) to create a Microsoft Entra app and obtain the client ID.
33
+
To enable authentication between Azure AI Foundry and Microsoft MCP Server for Enterprise, create a Microsoft Entra app registration and grant the necessary API permissions.
38
34
39
-
1.In your app registration, navigate to **Manage** > **API Permissions**.
35
+
1.Follow the [app registration guide](../app-registration.md) to create a Microsoft Entra app and get the client ID.
40
36
41
-
1.Select **Add a permission**, then search for **Microsoft MCP Server for Enterprise**.
37
+
1.In your app registration, go to **Manage** > **API Permissions**.
42
38
43
-
1. Select the permissions required for your scenarios.
39
+
1. Select **Add a permission**, and then search for **Microsoft MCP Server for Enterprise**.
44
40
45
-
1. Select **Grant admin consent for [your tenant]** to authorize the permissions.
41
+
1. Select the permissions required for your scenarios, and then select **Grant admin consent for [your tenant]** to authorize the permissions.
46
42
47
43
## Connect the MCP Server as a tool in Azure AI Foundry
48
44
49
-
After creating and configuring your app registration, connect the Microsoft MCP Server for Enterprise as a tool in your Azure AI Foundry project.
45
+
After you configure your app registration, connect the Microsoft MCP Server for Enterprise as a tool in your Azure AI Foundry project.
50
46
51
-
1. In the [Azure AI Foundry portal](https://ai.azure.com/), ensure you're using the "New Foundry" UI and navigate to your project.
47
+
1. In the [Azure AI Foundry portal](https://ai.azure.com/), make sure you're using the **New Foundry** UI and navigate to your project.
52
48
53
-
1. In the sidebar menu, select **Tools**, then search for **Microsoft MCP Server for Enterprise** in the **Catalog**.
49
+
1. In the sidebar menu, select **Tools**, and then select **Connect a tool**.
54
50
55
-
1.Select**Connect** to begin the configuration.
51
+
1.Under**Catalog**, search for **Microsoft MCP Server for Enterprise**, and then select **Create**.
56
52
57
53
1. Provide the following configuration:
58
-
-**Name**: Enter a unique identifier for the tool
59
-
-**Client ID**: Enter the app registration client ID from the previous section
60
-
-**Token URL, Auth URL, and Refresh URL**: Replace `organizations` with your tenant ID if your Azure AI Foundry project and app registration are in different tenants; otherwise, leave as `organizations`
54
+
-**Name**: Enter a unique identifier for the tool.
55
+
-**Client ID**: Enter the app registration client ID from the previous section.
56
+
-**Token URL, Auth URL, and Refresh URL**: Replace `organizations` with your tenant ID if your Azure AI Foundry project and app registration are in different tenants. Otherwise, leave `organizations` as the default value.
61
57
62
-
1. Select **Connect** and copy the **Redirect URL** provided.
58
+
1. Select **Connect**, and then copy the **Redirect URL** provided.
63
59
64
-
1. Return to your Microsoft Entra app registration, navigate to **Authentication**, add the Redirect URL, and save your changes.
60
+
1. Return to your Microsoft Entra app registration, go to **Authentication**, add the Redirect URL, and save your changes.
65
61
66
62
## Query Microsoft Entra data
67
63
68
-
After connecting the Microsoft MCP Server for Enterprise toolto your Azure AI Foundry agent, you can query your organization's data using natural language.
64
+
After you connect the Microsoft MCP Server for Enterprise tool, add it to your agent and start querying your organization's data using natural language.
69
65
70
66
### Sign in and authorize access
71
67
72
-
When you first invoke the tool, you need to sign in and authorize access.
68
+
When you first use the tool, sign in and authorize access.
73
69
74
70
1. Select **Open consent** when prompted to sign in.
75
71
76
72
1. Follow the authentication prompts to grant access.
77
73
78
-
1. If sign-in fails, an error code appears in the `/closeme` window. Decode this base64-encoded value to view detailed error information.
74
+
1. If sign-in fails, an error code appears in the `/closeme` window. Decode this base64-encoded value to view the detailed error information.
79
75
80
76
1. Approve each MCP tool call as prompted during query execution.
81
77
82
78
### Example queries
83
79
84
-
You can ask questions such as:
80
+
After you sign in, you can ask questions such as:
85
81
86
82
- "How many users are in my tenant?"
87
83
- "Which users haven't signed in for the last 30 days?"
88
-
- "Show me all guest users with admin roles"
84
+
- "Show me all guest users with admin roles."
89
85
90
-
## Next steps
86
+
## Related content
91
87
92
88
-[Overview of Microsoft MCP Server for Enterprise](overview.md)
93
89
-[Sample prompts for Microsoft MCP Server for Enterprise](mcp-server-sample-prompts.md)
0 commit comments