
Microsoft MCP Server for Enterprise
io.github.microsoft由 GitHub 帳號 microsoft 發布v1.0.0更新於 Nov 2, 2026
Official Microsoft MCP Server to query Microsoft Entra data using natural language
發布方自己的服務:Microsoft Learn MCP
概覽
微軟官方遠端 MCP 伺服器,可將自然語言轉為唯讀的 Microsoft Graph 呼叫,讓助理查詢 Microsoft Entra 身分與目錄資料。
- 可以做什麼
- 依使用者意圖推薦相關的 Microsoft Graph API 呼叫
- 執行唯讀的 Microsoft Graph 查詢,受登入使用者角色與用戶端已授予範圍限制
- 查詢特定 Graph 實體的屬性,協助模型建構查詢
- 涵蓋 Entra 情境:安全態勢、特殊權限角色與 PIM、應用程式與服務主體風險、存取治理、裝置合規、登入與稽核遙測、授權使用情形
- 適用情境
- 適合 IT 管理員與開發者希望在 AI 用戶端中直接詢問租用戶的 Entra 身分資料,例如稽核特殊權限角色、檢視應用程式擁有者與權限、查看裝置合規狀態,而不必手寫 Graph 查詢。
- 執行需求
- 使用位於 mcp.svc.cloud.microsoft/enterprise 的遠端端點並以 OAuth 登入,不需本機套件。需在租用戶中一次性佈建 MCP 伺服器服務主體,並註冊 MCP 用戶端應用程式,設定所需的 MCP.* 範圍與相符的重新導向 URI;不支援 DCR,第三方用戶端需自備用戶端 ID。設定需要 Entra 管理員角色與 PowerShell 模組;所存取的資料需對應的 Entra 授權。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Microsoft MCP Server for Enterprise,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.microsoft%2FEnterpriseMCP/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"microsoft-for-enterprise": {
"type": "http",
"url": "https://mcp.svc.cloud.microsoft/enterprise"
}
}
}README
[Microsoft MCP Server for Enterprise Logo] Microsoft MCP Server for Enterprise
Overview
Built on the open Model Context Protocol, the public preview of Microsoft MCP Server for Enterprise lets AI agents access Microsoft Entra data by converting natural language queries into Microsoft Graph API calls. Developers and IT administrators use it to query Microsoft Entra data from their AI-powered workflows.
Full Documentation: Overview of Microsoft MCP Server for Enterprise
MCP Server Provisioning (execute once per tenant)
To set up the MCP Server for your tenant:
-
Provision the MCP Server. In Graph Explorer, send:
POST https://graph.microsoft.com/v1.0/servicePrincipals
Body: { "appId": "e8c77dc2-69b3-43f4-bc51-3213c9d915b4" } -
Register a new app, representing the MCP Client.
Set the appropriate Redirect URI (also called Reply URL) depending on the client (see table below).Redirect URI type matters in Microsoft Entra. If you add the URI under Web, Entra treats the app as a confidential client. Use that for apps that run on a server and can protect credentials (like Copilot Studio). At sign-in, Entra expects that app to authenticate with a
client_secretor a certificate-basedclient_assertion.
If you add the URI under Mobile and desktop applications or another public-client platform, Entra treats the app as a public client. Use that for desktop, CLI, or device apps that cannot keep a secret (like ChatGPT or Claude). These apps usually use the authorization code flow with PKCE instead of a client secret. -
Associate the MCP permissions (
MCP.<Microsoft_Graph_Scope>) between the MCP Server and the MCP Client
[Associate MCP Client Permissions]
Create a custom VS Code or GitHub Copilot CLI client with PowerShell
After provisioning the MCP Server in step 1, use Microsoft.Entra.Beta 1.3.0 or later and an appropriate administrator role to create a public client and grant the scopes you need. This example grants user read access. Set $redirectUri to http://localhost for VS Code or http://127.0.0.1:51001 for GitHub Copilot CLI:
Use the returned app ID in the VS Code or GitHub Copilot CLI custom client configuration. The grant cmdlet provisions the client service principal if needed.
The PowerShell setup uses Application.ReadWrite.All, DelegatedPermissionGrant.ReadWrite.All, and an appropriate Entra administrator role. The MCP Client doesn't need these setup permissions at runtime: you can revoke setup-only grants and release setup-only roles after provisioning. Managing consent later requires administrator authorization again.
Info Table
VS Code's default client uses a pre-registered application with its own redirect URIs. To add an HTTP 127.0.0.1 URI to a custom app through the portal, use the application manifest.
Tools
This MCP Server uses Retrieval-Augmented Generation (RAG) and few-shot prompting to generate complete Microsoft Graph queries rather than exposing a separate tool per Graph operation.
It exposes three tools:
microsoft_graph_suggest_queries: Finds relevant Microsoft Graph API calls based on user intent.microsoft_graph_get: Executes read-only Microsoft Graph API calls, respecting User roles and MCP Client scopes.microsoft_graph_list_properties: Retrieves properties of specific Microsoft Graph entities to help the AI model
Current scope and capabilities
For Public Preview, we support read-only enterprise IT scenarios in Microsoft Entra identity and directory operations (user, group, application, device management, and administrative actions).
The MCP Server handles queries such as:
- Security posture: authentication methods/strengths, Conditional Access, Security Defaults.
- Privileged access: Who has which directory roles, how assigned (direct vs group), and PIM status.
- Application risk: Which Apps / Service Principals exist, who owns them, what permissions/SSO they use, and which are ownerless or external.
- Access governance: Who has access to what (users, groups, packages); review decisions, automate joiner/mover/leaver.
- Device readiness: Managed/compliant status, join state, OS/version distribution, and stale or inactive devices.
- Provenance and investigation: End‑to‑end telemetry (sign‑in, audit, provisioning, network), health alerts, and SLA/availability.
- Optimize spending & hygiene: License counts/usage, unused or stale apps/groups, domain configuration and contacts.
Supported Clients and Configurations
The Microsoft MCP Server for Enterprise works with any MCP-compatible client that supports the latest standard.
⚠️ Notes:
- Dynamic Client Registration (DCR) is not supported, but we are working to support OAuth Client ID Metadata Documents (CIMD) in a future release.
- ChatGPT, Claude, and other 3P Agents require a custom client Id: register your own MCP Client application in your tenant, assign the required MCP.* scopes, and configure the redirect URIs accordingly.
Microsoft Agent Platforms
Third Party MCP clients
These clients require a custom MCP Client application registered in your tenant. See Authorization and permissions to grant the required MCP.* scopes to your app.
ChatGPT
Go to Settings, Apps, Create App, and fill the dialog:
[ChatGPT Configuration]
Put the App ID of the Registered app in the red box.
Claude
Go to Customize, Connectors, click "+", Add Custom Connector, and fill the dialog:
[Claude Configuration]
Put the App ID of the Registered app in the red box.
Visual Studio Code and GitHub Copilot CLI
By default, Visual Studio Code and GitHub Copilot CLI use the same Visual Studio Code MCP Client app Id. Both can also use a custom client Id.
Prerequisites
These steps provision the Visual Studio Code MCP Client application in your tenant and grant it the MCP permissions.
They're required when either client uses the default application Id. Skip them when using a custom client app instead.
-
Install Microsoft.Entra.Beta PowerShell module (version 1.0.13 or later, requires PowerShell 7):
-
Connect Microsoft Entra ID to your tenant:
-
Grant only the MCP scopes your scenarios require to the Visual Studio Code MCP Client app (also used by GitHub Copilot CLI with the default application Id). This example grants user read access:
Without -Scopes, the cmdlet grants all published scopes. Specifying -Scopes adds to existing grants; revoke unwanted scopes if you previously granted broader access.
Learn more about Grant-EntraBetaMCPServerPermission. For detailed installation help, see the installation instructions.
Microsoft.Entra.Beta is a setup dependency, not a runtime dependency. For a custom client, you can provision the server through Graph Explorer above and manage consent in the Entra admin center.
To avoid module conflicts without changing your installed modules, open a new PowerShell 7 session and save the module and its dependencies to a temporary directory:
Run the connection and grant commands above in that session. Close the session when finished and delete the temporary directory shown by $modulePath.
If the Microsoft Graph PowerShell SDK modules conflict with Microsoft.Entra.Beta, run the following and retry from step 1:
Visual Studio Code
Option 1. Default (uses the Visual Studio Code app Id)
- Complete the Prerequisites above.
- Click Install Microsoft MCP Server for Enterprise to launch the MCP install page.
- Click the Install button in VS Code and sign in with your account from the tenant above.
- If Visual Studio Code displays the error
Error getting token from server metadata: Error: Cannot force new registration for a non-dynamic authentication provider., change"microsoft-authentication.implementation"from"msal"to"msal-no-broker"in your Settings: [alt text]
Option 2. Custom MCP Client app Id
-
Register a custom MCP Client app and grant the required
MCP.*scopes. Sethttp://localhostas the redirect URI under Mobile and desktop applications. VS Code can use a dynamic port, which Entra ignores when matching localhost redirect URIs. -
Add the server to your VS Code
mcp.json, replacing the client ID: -
Start the server and sign in with an account from the provisioned tenant.
GitHub Copilot CLI
GitHub Copilot CLI can connect using either the default Visual Studio Code MCP Client app Id or a custom MCP Client app Id you register in your tenant.
Option 1. Default (uses the Visual Studio Code app Id)
-
Complete the Prerequisites above.
-
Add the MCP server to Copilot CLI. You can do this interactively with
/mcp add:
Option 2. Custom MCP Client app Id
-
Register your own MCP Client application in your tenant and grant it the required
MCP.*scopes (see Authorization and permissions). -
Set
http://127.0.0.1:51001as Redirect URI for "Mobile and desktop applications". -
Specify your app Id via
oauthClientIdandoauthPublicClienttotruein~/.copilot/mcp-config.json:
In either case, sign in with your account from the provisioned tenant when prompted.
For more information, see the GitHub Copilot CLI documentation.
Authorization and permissions
The MCP Server for Enterprise supports delegated permissions only. Access requires both the MCP Client's granted scopes and the signed-in user's permissions and roles. MCP consent doesn't grant access beyond that user's authorization.
Grant only the MCP.* scopes your use cases need. You can use a read-only configuration without granting write scopes. Add scopes as your needs change; consult the Microsoft Graph permissions reference for the corresponding Graph permissions.
Administrators can use per-user consent grants to limit access to selected users.
Use the following cmdlet to list the permissions provided by the MCP Server for Enterprise:
You can use your own app registration as the MCP Client. Use these cmdlets to manage its granted scopes:
Learn more: Manage MCP Server for Enterprise permissions
Advantages
- Remote MCP Server: easy to configure and standards-compliant, deployed in the same regions as Microsoft Graph.
- IT Admins in control: MCP clients need specific MCP.* scopes (mirroring Microsoft Graph scopes) to access your tenant data.
- Simplified architecture: 3 tools cover the workflow instead of one tool per API operation.
- High-quality query generation: generates accurate queries from over 500 real-world examples via RAG (Retrieval-Augmented Generation).
- Full auditability: all MCP operations run under the same App ID with a specific user agent.
- No extra license required: your existing Microsoft Entra and Microsoft Graph API licenses apply.
Availability, Roadmap and feedback
The Microsoft MCP Server for Enterprise is available only in the public cloud (global service), with support for sovereign clouds planned for a future release.
We will continue expanding beyond the current Microsoft Entra scenarios, but M365 APIs will be covered by Agent 365.
Support for write operations is planned for a future release.
Please share suggestions or issues through our feedback form: Submit feedback.
Licensing and usage
- The MCP Server for Enterprise doesn't require extra cost or separate license.
- You need the right licenses for the data you access (for example, Microsoft Entra ID Governance or Microsoft Entra ID P2 license for Privileged Identity Management (PIM) data).
- Any request to this MCP server is limited to 100 requests per minute per user. Requests to
microsoft_graph_getare also subject to Microsoft Graph Throttling limits.
Logs
To monitor usage, enable Microsoft Graph activity logs in your tenant to record the Graph API calls made through the MCP server.
Filter for MCP Server usage:
Use the Application (Client ID) of the Microsoft MCP Server for Enterprise: e8c77dc2-69b3-43f4-bc51-3213c9d915b4.
The following Kusto query retrieves these logs:
Use Graph's RequestId and ClientRequestId with the timestamp, user, and request URI to trace API calls. Scopes lists permissions in the Graph access token, not the specific permission used to authorize each operation.
Support and reference
For documentation, troubleshooting, and feedback, refer to the official Microsoft Learn documentation and support channels.
Security and compliance
All operations respect Microsoft Graph permissions and security policies. The MCP server uses standard Microsoft Graph telemetry and doesn't log request payloads. Review your AI client's data-handling and retention policies for prompts and returned data. Ensure compliance with your organizational, regulatory, and contractual requirements when integrating the MCP Server.
No warranty/limitation of liability
This software is provided "as is" without warranties or conditions of any kind, either express or implied. Microsoft isn't liable for any damages that result from use, misuse, or misconfiguration of this software.
來源:README.md,提交 0f4cb1d
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Microsoft 整合

Microsoft Learn MCP
com.microsoft官方發布者
一個免費的遠端 MCP 伺服器,讓 AI 助理搜尋微軟官方 Learn 文件、尋找程式碼範例,並把文件頁面抓取為 markdown。

Playwright Cloud Browsers
com.microsoft官方發布者
遠端 MCP 伺服器,為 AI 代理提供受管理的 Playwright 雲端瀏覽器,可建立工作階段、瀏覽並檢視頁面、與頁面元素互動。

Microsoft Sentinel Data Exploration
com.microsoft官方發布者
遠端 Microsoft Sentinel MCP 伺服器,讓助理以自然語言尋找相關資料表,並從 Sentinel 資料湖擷取安全性資料。
Visio
com.microsoft
讓助理透過桌面自動化,在使用者的 Windows 電腦上建立、更新與讀取 Microsoft Visio 圖表。

Microsoft Clarity MCP
由 GitHub 帳號 surendranb 發布
本機 MCP 伺服器,把 Microsoft Clarity 的行為 UX 資料(暴怒點擊、無效點擊、快速返回、JS 錯誤)提供給 AI 助理分析。