Set up the Microsoft Entra ID MCP server
The Microsoft Entra ID MCP server lets AI agents look up partner tenants by domain, read your cross-tenant access settings, and add organizations to them through Microsoft Graph. This guide covers registering an Entra app, granting it Microsoft Graph permissions, and connecting it to Mintive from the catalog.
Prerequisites
- A Mintive admin account
- A Microsoft Entra ID work or school tenant
- An Entra admin who can register applications and grant admin consent
- For users who add organizations: the Security Administrator or Global Administrator role
Register a Microsoft Entra app
-
Sign in to the Azure portal and go to Microsoft Entra ID > App registrations > New registration.
-
Enter a name, for example
Mintive Entra ID. -
Under Supported account types, select Accounts in this organizational directory only (Single tenant).
-
Under Redirect URI (optional), select Web and enter the callback for your Mintive region:
Mintive region Redirect URI US ( app.mintmcp.com)https://app.mintmcp.com/oauth/callbackEU ( eu.mintmcp.com)https://eu.mintmcp.com/oauth/callback -
Click Register.
Add Microsoft Graph permissions
-
In the app, go to API permissions > Add a permission > Microsoft Graph > Delegated permissions.
-
Add these permissions:
Permission Grants Policy.ReadWrite.CrossTenantAccessRead your cross-tenant access settings and add organizations to them CrossTenantInformation.ReadBasic.AllLook up a tenant's ID and name from its domain openid,email,profileSign the user in and identify them offline_accessRefresh tokens so users stay connected For a read-only install, add
Policy.Read.Allinstead ofPolicy.ReadWrite.CrossTenantAccess, so the connector can read organizations but can't add them. -
Click Grant admin consent for your tenant and confirm with Yes.
Create a client secret
- Go to Certificates & secrets > Client secrets > New client secret.
- Enter a description, choose an expiry, and click Add.
- Copy the secret's Value right away, because Entra only shows it once. Don't copy the Secret ID.
- Go to Overview and copy the Application (client) ID and the Directory (tenant) ID.
Add Microsoft Entra ID to Mintive
- In Mintive, go to MCP store > Manage store.
- Find Microsoft Entra ID in the catalog and click Install.
- Under OAuth Client Advanced Settings, paste the Application (client) ID in Client ID and the secret Value in Client Secret.
- In the Authorization URL and the Token URL, replace
{tenant-id}with your Directory (tenant) ID. - Click Connect and sign in with a Microsoft account that has the Security Administrator or Global Administrator role.
Test the connection
Ask your AI client a question that uses a partner's domain, for example:
Is contoso.com in our cross-tenant access settings?
The agent looks up the tenant that owns the domain and checks whether it appears under Cross-tenant access settings > Organizational settings in Entra.
What the connector can change
- It adds organizations to cross-tenant access settings and reads them. To update an organization's inbound or outbound settings, or to remove it, use the Microsoft Entra admin center.
- Adding an organization that's already in your settings leaves its existing configuration unchanged.
- Cross-tenant access changes can take up to 6 hours to take effect.
Security considerations
- The connector uses delegated permissions, so every call runs as the signed-in user and Microsoft Graph enforces their Entra role. Adding an organization requires Security Administrator or Global Administrator.
- The single-tenant app and the tenant-specific Authorization and Token URLs limit sign-in to accounts in your own tenant.
Policy.ReadWrite.CrossTenantAccesslets the connector add organizations to your cross-tenant access settings. UsePolicy.Read.Allinstead for a read-only install.- Microsoft Entra audit logs record every change to cross-tenant access policies, and Mintive attributes each tool call to the user who made it.
- Keep the client secret secure, since anyone with it and the client ID can request tokens for your app. Create a new secret before the current one expires and update it in Mintive.
Troubleshooting
- Sign-in fails with
AADSTS50011. The redirect URI on the Entra app doesn't match your Mintive region's callback. Open Authentication on the app and confirm the Web redirect URI matches the table above exactly. permission_denied. Admin consent hasn't been granted for the Graph permissions, or the signed-in user isn't a Security Administrator or Global Administrator. Grant admin consent on the API permissions page or assign the role, then reconnect.not_found. No Entra tenant owns that domain. Ask the partner for their tenant ID and use it instead of the domain.outcome_unknown. The add request may or may not have applied. Ask the agent to check the organization withget_cross_tenant_partnerbefore trying again.
Next steps
- Set up a shared Microsoft Teams channel with Mintive: configure B2B direct connect for a partner organization
- Tool customization: control which Microsoft Entra ID tools are exposed to users
- MCP gateway administration: manage access and permissions across your MCP store