
Minerva MCP — Microsoft 365 & Azure
io.github.HoussemMak由 GitHub 帳號 HoussemMak 發布v0.4.2更新於 Oct 24, 2026
Microsoft 365 & Azure admin: Graph, ARM, and the PowerShell cmdlets Graph does not expose.
發布方自己的服務:Microsoft Learn MCP
概覽
一個 MCP 伺服器,讓 AI 助理透過 Graph、ARM 和 PowerShell cmdlet 查詢並管理 Microsoft 365 租用戶與 Azure 訂用帳戶。
- 可以做什麼
- 呼叫 Microsoft Graph 和 Azure Resource Manager 端點,並執行統一的 Microsoft Search 查詢,包括可呼叫任意 v1.0 或 beta Graph 路徑及任意 ARM 路徑的通用工具。讀取租用戶內容,例如組織資訊、授權和 Secure Score,並產生租用戶安全性態勢報告。執行 Exchange Online cmdlet,處理信箱權限、傳輸規則、郵件追蹤和保留原則等 Graph 沒有對應介面的操作。執行 SharePoint/PnP、Teams 系統管理員和 Purview 合規 cmdlet。依風險分類每個動作,並在寫入執行前暫停等待人工確認。
- 適用情境
- 當助理需要檢查或管理 Microsoft 365 和 Azure 時使用,尤其是那些沒有 Graph API、只能透過 PowerShell 完成的任務,例如信箱權限、郵件追蹤、敏感度標籤、Teams 通話原則或 SharePoint 字詞庫。如果單靠 Graph 就能滿足需求,則不必安裝。
- 執行需求
- Node.js 20+。使用 PowerShell 工具還需要 PowerShell 7+ 及相關模組(ExchangeOnlineManagement、PnP.PowerShell、MicrosoftTeams)。預設透過 stderr 上的裝置代碼進行互動式登入;無人值守的應用程式專用登入需要 AZURE_CLIENT_ID、AZURE_CLIENT_SECRET 和 AZURE_TENANT_ID。在本機執行 SharePoint/PnP 工具需要 MINERVA_SHAREPOINT_URL。需要存取 Microsoft 端點的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Minerva MCP — Microsoft 365 & Azure,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Minerva MCP
Microsoft 365 and Azure administration for AI assistants — including the parts Microsoft Graph cannot reach.
[CI] [License: MIT] [MCP 2026-07-28]
An MCP server that lets Claude, Copilot, VS Code or any MCP client query and administer a Microsoft 365 tenant in plain language.
Why another Microsoft 365 MCP server?
There are already good ones, and this is not trying to replace them.
If you only need Graph, use Lokka or ms-365-mcp-server. They are excellent, more mature, and more widely used. Lokka in particular is written by a Microsoft Entra product manager.
Reach for this one when you hit the wall everyone hits eventually: a large part of Microsoft 365 administration has no Graph API. Mailbox permissions, transport rules, message trace, retention policies, sensitivity labels, Teams calling policies, SharePoint term stores, tenant-wide Exchange settings — those live in PowerShell and nowhere else. This server exposes them, with a risk classification and a confirmation step in front of anything that writes.
How it fits together
Reads go straight through. Writes stop at a classifier, come back to you as an
input_required describing the action and its consequences, and only run once
you confirm. Microsoft still has the final word: the server forwards a token, it
never grants access.
Install
Nothing to clone. Add it to your client and sign in on first use.
Claude Desktop
claude_desktop_config.json:
VS Code
.vscode/mcp.json:
More, including read-only and app-only setups, in examples/.
On the first tool call the server prints a device-code prompt on stderr: open the link, enter the code, done. No app registration needed to try it — it uses the public Microsoft Graph PowerShell client by default.
Requirements: Node.js 20+. For the PowerShell tools, PowerShell 7+
and the modules you intend to use (ExchangeOnlineManagement, PnP.PowerShell,
MicrosoftTeams).
What you can ask
"Which mailboxes have full access delegated to someone outside their department?" →
execute_exchange_onlinewithGet-MailboxPermission, no Graph equivalent exists.
"Show me every conditional access policy that does not require MFA, and our Secure Score." →
generate_security_report+microsoft_graph_call.
"Create a shared mailbox for invoicing and give the finance team access." → classified as a write: the server describes the action and its consequences, and waits for your confirmation before doing anything.
Tools
Restrict the surface with --tools=microsoft_graph_call,get_tenant_context, or
forbid every write with --read-only.
Approval, and why it is not optional
A model reads untrusted content — an email subject, a site name, a document — and decides which tool to call. Prompt injection is not hypothetical, and the tools here can delete mailboxes.
So writes do not simply execute. Every action is classified auto, confirmed
or critical from the HTTP verb and path (or the PowerShell verb). Anything
above auto makes the server answer input_required under
MCP's Multi Round-Trip Requests:
your client shows what is about to happen and its consequences, you confirm, and
only then does it run.
The confirmation is a signed mandate (HMAC) bound to the caller, the method, and
a digest of the arguments, valid five minutes. A mandate obtained to delete
/users/1 cannot be replayed on /users/999, and cannot be presented by anyone
else.
If your client does not support elicitation, nothing is silently executed: the server returns an error saying the action needs confirmation.
Options
Every flag has an environment variable equivalent.
Transport
In stdio mode all logs go to stderr — stdout belongs to the protocol.
Authentication
Defaults: bearer over HTTP (the caller supplies the token), device-code over
stdio, client-secret as soon as a secret is present. Each resource gets its own
token: Graph, ARM, Exchange, Purview, SharePoint and Teams do not share an
audience.
Scope
--read-only reuses the same risk classifier as the approval gate, so it covers
PowerShell cmdlets too, not just HTTP verbs.
Protocol support
Speaks MCP 2026-07-28, and still serves handshake-era clients until 2027-07-28.
One endpoint serves both generations; the request body decides which. Both read the same tool registry, and a test compares them against a frozen contract so they cannot drift.
Security
Read SECURITY.md before deploying. The three things that matter:
- This server grants nothing. It forwards a Microsoft token; Microsoft authorizes. A restricted token gives a restricted server.
- Graph tokens cannot be verified by a third party — they carry a
nonceheader that only Graph can check. Theirtid/oidclaims are therefore self-reported. The server validates them structurally, flags themverified: false, and binds approval mandates to a fingerprint of the token itself rather than to the claims alone. A token that should have verified and did not is rejected. - Local PowerShell mode isolates nothing. Cmdlets run with the current user's rights. Do not expose it to a caller you do not trust.
Cmdlet names and parameters never reach the script as code: they travel through
environment variables, the name is validated against a strict Verb-Noun
pattern, and the call goes through Get-Command plus the call operator.
Report a vulnerability privately — see SECURITY.md.
What this does not do
- No process isolation in local mode.
- No multi-tenant brokering — one server, one identity.
- No signed audit ledger. Audit events are JSON on stderr, not a signed, offline-verifiable record.
Those three belong to Minerva-IA, the commercial platform this server was extracted from. Everything in this repository works without it.
Development
Tests need no credentials and touch no network.
Pull requests are closed until 2027-07-31 — see CONTRIBUTING.md for why, and for what is welcome in the meantime (bug reports very much are).
Licence
MIT — see LICENSE.
來源:README.md,提交 d4b4096
工具
0版本歷史
1- v0.4.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Microsoft 整合

Microsoft Learn MCP
com.microsoft官方發布者
遠端 MCP 伺服器,讓助理搜尋、閱讀並引用微軟與 Azure 官方文件及程式碼範例。

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

Microsoft Sentinel Data Exploration
com.microsoft官方發布者
遠端 Microsoft Sentinel MCP 伺服器,讓助理以自然語言尋找相關資料表,並從 Sentinel 資料湖擷取安全性資料。

L50 Microsoft Fix
由 GitHub 帳號 lewisororke 發布
遠端 MCP 伺服器,解碼 Windows、Microsoft 365、Entra、Intune 與 Azure 錯誤碼,並提供原因、修正步驟、故障狀態與升級工單。

Microsoft Ads Library Scraper
由 GitHub 帳號 Monkeydscraping 發布
遠端 Apify MCP 伺服器,讓助理依關鍵字、廣告主或網域擷取 Microsoft(Bing)廣告庫中的廣告,含文案、到達頁與日期。