Microsoft365 Mcp Server

io.github.sapientsai由 GitHub 帳號 sapientsai 發布v1.3.0更新於 Nov 7, 2026

Microsoft 365 via Graph — mail, calendar, contacts, files, Teams, Planner, OneNote, To Do.

概覽

AI 產生的概覽

本機 MCP 伺服器,為助理提供 40 多個 Microsoft Graph 工具,涵蓋郵件、行事曆、聯絡人、檔案、Teams、Planner、OneNote 與 To Do。

可以做什麼
  • 透過 Microsoft Graph 處理郵件、行事曆與聯絡人
  • 瀏覽與管理檔案及 SharePoint 內容
  • 操作 Teams、Planner、OneNote 與 To Do 項目
  • 以預設組合、工具名稱正規表示式或唯讀開關限制開放的工具集
  • 選擇驗證方式:互動式、憑證、用戶端密碼、直接權杖或 OAuth 代理
適用情境
適合有已登入使用者在场、希望助理讀取或操作其本人 Microsoft 365 信箱、行事曆、檔案以及 Teams、Planner、OneNote、To Do 內容的情境。若需要租用戶層級、無人值守的純應用程式部署,README 建議改用另一個伺服器套件。
執行需求
以 stdio 方式在本機執行 npm 套件 microsoft365-mcp-server(需要 Node.js)。需要 Azure AD 應用程式註冊:除 client-token 模式外每種模式都需 MS365_CLIENT_ID,憑證、用戶端密碼與 oauth-proxy 模式還需 MS365_TENANT_ID,以及對應憑證(MS365_CLIENT_SECRET、MS365_CERT_PATH 與選用的 MS365_CERT_PASSWORD、MS365_ACCESS_TOKEN 或 MS365_OAUTH_BASE_URL)。
安裝前請注意
它會持有 Microsoft 365 憑證:MS365_CLIENT_SECRET、MS365_CERT_PASSWORD、MS365_ACCESS_TOKEN 以及 MS365_CERT_PATH 指向的憑證。開啟組織模式(MS365_ORG_MODE)並啟用寫入工具後,它可以代帳號變更郵件、行事曆、檔案與 Teams 資料;可設定 MS365_READ_ONLY 拒絕寫入,並用 MS365_ENABLED_TOOLS 或 MS365_PRESETS 縮小工具範圍。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Microsoft365 Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

microsoft365-mcp monorepo

pnpm workspace for the Microsoft Graph MCP servers. Descends from the archived sapientsai/microsoft-mcp-server — split into two focused servers over a shared core. The app-only server keeps the original microsoft-mcp-server name; the delegated server is microsoft365-mcp-server.

Packages

  • packages/microsoft365 — microsoft365-mcp-server, the delegated (OAuth-proxy) MS365 gateway: 40+ tools across mail, calendar, contacts, files, Teams, Planner, OneNote, To Do, and more via Microsoft Graph. Published to npm. See its README and the monorepo DEPLOYMENT.md.
  • packages/graph — microsoft-mcp-server (the original name), a lean app-only (client_credentials) server purpose-built for headless document-RAG: microsoft_graph passthrough + microsoft_graph_batch + read_document + sharepoint_search + optional azure_ai_search + a /upload relay. Ships as a Docker image at ghcr.io/sapientsai/microsoft-mcp-server. See its README.
  • packages/core — @sapientsai/ms-graph-core, the shared plumbing (upload helpers, ticket tokens, OData/pagination, error and auth-strategy types) used by both servers. Internal workspace package, not published.

Pick by auth model: use packages/microsoft365 when a user is present to consent (interactive OAuth); use packages/graph for tenant-wide, headless, app-only deployments.

Development

bash
pnpm installpnpm validate   # format + lint + test + build across all packagespnpm build      # build all packagespnpm test       # test all packages

Per-package commands run inside the package dir, e.g.:

bash
pnpm --filter microsoft365-mcp-server buildpnpm --filter microsoft-mcp-server dev

History

Design context for the split lives in SAI_PLAN_ms-graph-monorepo_2026-06-20.md.

來源:README.md,提交 98bfd5a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

5
  1. v1.3.0最新Nov 7, 2026
  2. v1.2.22Oct 31, 2026
  3. v1.2.21Oct 31, 2026
  4. v1.2.20Oct 29, 2026
  5. v1.2.17Oct 25, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。