
微软/EnterpriseMCP是从[[T0]导入的MCP服务器候选。
概览
微软/EnterpriseMCP是从[[T0]导入的MCP服务器候选。
概述(AI 翻译)
⚠️ 如果Visual Studio Code显示错误
Error getting token from server metadata: Error: Cannot force new registration for a non-dynamic authentication provider.,请在设置中将"microsoft-authentication.implementation"从"msal"改为"msal-no-broker"。
概述
基于开放的模型上下文协议,Microsoft MCP Server for Enterprise的公开预览版允许AI代理通过将自然语言查询转换为Microsoft图API调用,访问Microsoft Entra数据。 开发者和IT管理员利用它查询其AI驱动工作流程中的Microsoft Entra数据。
完整文档:Microsoft MCP Server for Enterprise 概述
MCP 服务器配置(每个租户执行一次)
要为你的租户设置MCP服务器:
-
配置MCP服务器。在图资源管理器中,发送:
POST https://graph.microsoft.com/v1.0/servicePrincipalsBody: { "appId": "e8c77dc2-69b3-43f4-bc51-3213c9d915b4" } -
注册一个新应用,代表MCP客户端。 根据客户端设置合适的重定向 URI(也称为回复 URL)。例如: Claude Desktop 需要
https://claude.ai/api/mcp/auth_callback,
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Microsoft MCP Server for IT Admins
[!IMPORTANT] Microsoft MCP Server for Enterprise (
https://mcp.svc.cloud.microsoft/enterprise) is deprecated. It’s now Microsoft MCP Server for IT Admins athttps://mcp.svc.cloud.microsoft/admin, and you must migrate to the new endpoint. The/enterpriseendpoint won’t be switched off immediately: you’ll have a few months to migrate. See Migrate from Microsoft MCP Server for Enterprise.
Overview
Built on the open Model Context Protocol, Microsoft MCP Server for IT Admins lets AI agents read and manage Microsoft Entra data, and read Microsoft Intune data, by converting natural language requests into Microsoft Graph API calls. IT administrators and developers use it to query and administer their tenant from AI-powered workflows, with a human confirming every change.
What’s new
- Microsoft Graph permissions: grant your MCP client the Microsoft Graph delegated permissions your scenarios need. Any Graph permission works, except Microsoft 365 APIs, which are covered by Work IQ MCP.
- Microsoft Intune: read-only access to Intune APIs, excluding reporting APIs.
- Write actions: tools for
POST,PUT,PATCH, andDELETErequests. You choose which tools each agent exposes. - Human in the loop: every write action asks the user for confirmation through MCP elicitation.
- Request headers: tools accept Graph request headers as input, such as
If-Matchwith an ETag. - Just-in-time access: the
request_accesstool requests an access package, a PIM role activation, or a new permission grant for the MCP client when the user lacks access. - Simpler setup: no MCP Server service principal to provision and no PowerShell module. Register an app, add permissions, and grant consent.
Migrate from Microsoft MCP Server for Enterprise
The /enterprise endpoint keeps working for a few months, so you can migrate one client at a time:
- Prepare an app registration. Follow Register and configure an MCP client. You can reuse an existing custom app if its redirect URI matches the Supported clients table. The Visual Studio Code default app isn’t supported: every client needs your own app registration.
- Map your permissions. For each
MCP.scope your client had, add the equivalent Microsoft Graph delegated permission ``. For example,MCP.User.Read.AllbecomesUser.Read.All. Also add the three required permissions. - Grant admin consent for the new permissions.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"mcp-admin": {
"type": "http",
"url": "https://mcp.svc.cloud.microsoft/admin",
"headers": {},
"tools": ["*"],
"oauthClientId": "<REGISTERED_APP_CLIENT_ID>",
"oauthPublicClient": true
}
}
}