/ 目錄 / 演練場 / Microsoft 365 MCP
● 社群 Softeria ⚡ 即開即用

Microsoft 365 MCP

作者 Softeria · Softeria/ms-365-mcp-server

Microsoft 365 介面以 MCP 呈現——Outlook、行事曆、OneDrive、Teams 聊天、Excel——透過 Microsoft Graph 驗證。

ms-365-mcp 涵蓋核心 M365 生產力介面。當你的工作生活在 Outlook/Teams 中,並希望 Claude 跨它們起草、分類和排程時非常有用。

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "ms-365-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ms-365-mcp-server"
      ]
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "ms-365-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ms-365-mcp-server"
      ]
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "ms-365-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ms-365-mcp-server"
      ]
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "ms-365-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ms-365-mcp-server"
      ]
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "ms-365-mcp",
      "command": "npx",
      "args": [
        "-y",
        "ms-365-mcp-server"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "ms-365-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "ms-365-mcp-server"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add ms-365-mcp -- npx -y ms-365-mcp-server

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: Microsoft 365 MCP

分類你的 Outlook 收件匣

👤 開發者 ⏱ ~15 min intermediate

何時使用: 你一早就被郵件淹沒;需要快速簡報與草稿。

步驟
  1. 列出未讀
    list_messages unread=true✓ 已複製
    → 最新訊息
  2. 分群
    依寄件者/討論串分群;標記重要性。✓ 已複製
    → 優先順序分道
  3. 起草
    為前 5 封撰寫草稿回覆。✓ 已複製
    → 草稿已儲存

結果: 收件匣分類完畢,草稿準備好可發送。

組合

與其他 MCP 搭配,撬動十倍槓桿

ms-365-mcp + github

將 PR 標題整合入每週 Outlook 摘要

結合 ms-365-mcp 與 github:將 PR 標題整合入每週 Outlook 摘要✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
list_messages (詳見文件) 列出 Outlook 郵件 1 次呼叫
send_message (詳見文件) 發送郵件 1 次呼叫
create_event (詳見文件) 建立行事曆活動 1 次呼叫
list_files (詳見文件) OneDrive 檔案 1 次呼叫
excel_range (詳見文件) 讀寫 Excel 儲存格 1 次呼叫

成本與限制

運行它的成本

API 配額
Graph 節流(依情況而異)
每次呼叫 Token 數
郵件中等大小
費用
免費;適用 M365 方案
提示
嚴格限制 OAuth 範圍——Graph 權限列表令人望而生畏

安全

權限、密鑰、影響範圍

憑證儲存: OAuth token 存放在作業系統金鑰鏈
資料出站: graph.microsoft.com

故障排查

常見錯誤與修復

403

某個範圍缺少管理員同意

被節流

Graph 每租戶有速率限制;退讓等待

替代方案

Microsoft 365 MCP 對比其他方案

替代方案何時用它替代權衡
各產品專屬 MCP你只需要其中一個(例如 Outlook)需要更多設定

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills