Microsoft MCP Server for Enterprise
Microsoft hosts this server at https://mcp.svc.cloud.microsoft/enterprise over HTTP. It is the Microsoft MCP Server for Enterprise card with the Official badge. The URL is already filled in. People sign in with a work account, and each call runs with that person's permissions.
This server has no dynamic client registration. An admin provisions it in the tenant, registers a single-tenant app, and pastes its client ID and secret. The app is a confidential client: add Willow's callback as a Web redirect URI and create a client secret. Permissions are delegated MCP.* scopes on the MCP server.
Microsoft has deprecated Microsoft MCP Server for Enterprise. The /enterprise endpoint keeps working for a few months. The replacement is Microsoft MCP Server for IT Admins at https://mcp.svc.cloud.microsoft/admin. Follow Get started with Microsoft MCP Server for IT Admins to migrate a client. This card connects to https://mcp.svc.cloud.microsoft/enterprise, with the MCP.* scopes and client secret below.
Before you start
- A Microsoft Entra tenant.
- An account with Application Administrator, Cloud Application Administrator, or Privileged Role Administrator, to register the app and grant scopes.
- For each person who uses the server, the Entra roles for the data they ask about. Granting scopes does not give that person a new role.
Copy Willow's callback
- Go to MCP Servers → + Add MCP server, open the Microsoft MCP Server for Enterprise card with the Official badge, and click + Use.
- On the Setup tab, select Client ID & secret and copy the Redirect URL:
- SaaS:
https://{org}.withwillow.ai/{org}/api/auth/callback - On-prem:
{CONNECT_URL}/{org}/api/auth/callback
- SaaS:
Provision the server in the tenant
Do this once per tenant. Install Microsoft Entra PowerShell (the beta module), sign in, and register the MCP server. Microsoft's command also grants Visual Studio Code every MCP scope. The same article shows how to revoke that grant.
Install-Module -Name Microsoft.Entra.Beta -Repository PSGallery -Scope CurrentUser -Force -AllowClobber
Connect-Entra -Scopes 'Application.ReadWrite.All', 'Directory.Read.All', 'DelegatedPermissionGrant.ReadWrite.All'
Grant-EntraBetaMCPServerPermission -ApplicationName VisualStudioCode
Register the Entra app
- In the Microsoft Entra admin center, go to App registrations → New registration.
- Enter a name, such as
Willow MCP Enterprise. Under Supported account types, select Accounts in this organizational directory only. - Select Register. Copy the Application (client) ID.
- Go to Certificates & secrets → Client secrets → New client secret. Copy the secret value on that page. Entra shows it only once.
- Go to Authentication → Add Redirect URI → Web, and paste the callback URL from Willow. Microsoft's guide for a server-side connector to this endpoint uses a Web redirect so the app is a confidential client. See Use Microsoft MCP Server for Enterprise from Copilot Studio.
Grant MCP scopes
Scopes use the form MCP. plus a Microsoft Graph permission name. MCP.User.Read.All is the scope Microsoft cites for counting users. The cmdlet adds the scopes you list and keeps scopes already granted. Omit -Scopes to grant every scope the server exposes.
Connect-Entra -Scopes 'Application.ReadWrite.All', 'Directory.Read.All', 'DelegatedPermissionGrant.ReadWrite.All'
Grant-EntraBetaMCPServerPermission -ApplicationId "<Application (client) ID>" -Scopes "MCP.User.Read.All","MCP.Device.Read.All"
Use the app's Application (client) ID, which is the value you paste into Willow. See Manage Microsoft MCP Server for Enterprise permissions.
Finish sign-in in Willow
On the Setup tab, keep Client ID & secret.
-
Paste the Client ID and Client Secret.
-
Open Advanced settings and set:
- Authorization Endpoint:
https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize - Token Endpoint:
https://login.microsoftonline.com/organizations/oauth2/v2.0/token - Scopes:
api://e8c77dc2-69b3-43f4-bc51-3213c9d915b4/.default
.defaultasks for the MCP permissions already granted on the app. With a client you entered yourself, Willow sends only the scopes listed here. See Configure Proxy OAuth. - Authorization Endpoint:
-
Save, click Check connection, and sign in with a work account from the tenant.
-
Assign groups and click Publish.
Troubleshooting
Entra reports a redirect URI mismatch (AADSTS50011)
Cause: The Web redirect on the app differs from the URL Willow sent.
Solution: Copy the Redirect URL from the Setup tab again and add that value under Web.
AADSTS7000218: the request body must contain client_assertion or client_secret
Cause: The redirect URI is under Web, so Entra expects a client secret, and the secret in Willow is missing or wrong.
Solution: Create a client secret on the app, paste it under Client ID & secret, and save.
A query fails after consent
Cause: The app is missing the MCP.* scope for that data, or the signed-in user lacks the Entra role. Graph permissions and https://mcp.svc.cloud.microsoft/admin/ scopes apply to Microsoft MCP Server for IT Admins.
Solution: Grant the MCP.* scope with Grant-EntraBetaMCPServerPermission, then sign in again. Confirm the user's role separately.