Outlook

io.github.rlrghb由 GitHub 帳號 rlrghb 發布v1.16.1更新於 Oct 24, 2026

Outlook & OneDrive MCP: personal & enterprise tools for mail, calendar, contacts, tasks, files

概覽

AI 產生的概覽

本機 MCP 伺服器兼命令列工具,透過 Microsoft Graph 讓助理存取 Outlook 郵件、行事曆、聯絡人、工作和 OneDrive。

可以做什麼
讀取和搜尋郵件,取得郵件 ID、主旨和寄件者,並透過 Microsoft Graph 同步信箱及其他資源的變更,支援 JSON、TSV 或表格輸出,可限制回傳欄位。檢視指定天數的行事曆事件。搜尋和列出聯絡人。列出工作清單並瀏覽 OneDrive 檔案。起草、回覆、全部回覆、傳送和轉寄郵件,包括含內嵌圖片的 HTML 草稿;寫入操作僅在明確選擇加入後透過 MCP 提供。可將外部郵件、行事曆、聯絡人和檔案文字標記為不可信內容,供代理更安全地使用。
適用情境
適合讓助理處理個人 Outlook.com 或企業 Microsoft 365 帳戶:整理和搜尋郵件、查看近期行事曆事件、查找聯絡人、管理工作、瀏覽 OneDrive,或準備草稿和回覆。可透過停用寫入、傳送和互動提示的參數進行無人值守的唯讀執行。
執行需求
以本機程序執行;可透過 Homebrew、Go 或 npm 套件 olkcli 安裝,後者提供 olk 指令。需要透過命令列的 auth login 登入,工作或學校帳戶可使用企業選項。macOS 升級後可能要求鑰匙圈存取權限。需要連線至 Microsoft Graph 的網路存取。
安裝前請注意
此伺服器可以傳送、轉寄和起草郵件,並變更信箱資料;透過 MCP 的寫入操作需明確選擇加入,無人值守執行可使用唯讀參數。更新權杖儲存在作業系統鑰匙圈中,存取權杖僅存於記憶體。郵件、行事曆、聯絡人和檔案內容來自第三方,可被標記為不可信。連接代理或分享日誌前請閱讀安全性與隱私指南。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

olk — Microsoft Outlook in Your Terminal

olk is a scriptable CLI and MCP server for Outlook mail, calendars, contacts, tasks, and OneDrive through Microsoft Graph. It works with personal Outlook.com accounts and enterprise Microsoft 365 accounts.

Install

bash
brew install rlrghb/tap/olk# orgo install github.com/rlrghb/olkcli/cmd/olk@latest

The npm package is olkcli; the installed command is olk:

bash
npm install -g olkcli

See macOS notes if macOS asks for Keychain access after an upgrade.

Quick start

bash
olk auth loginolk auth statusolk mail list --json --results-only --select id,subject,fromolk mail search 'from:[email protected] subject:urgent'olk calendar view --days 7olk contacts search "Alex"olk todo lists listolk drive ls

For work/school accounts and enterprise-only features:

bash
olk auth login --enterprise

Common commands

NeedCommand
Check the signed-in accountolk auth status or olk whoami
Find message IDs and subjectsolk mail list --json --results-only --select id,subject,from
Search mailolk mail search "from:[email protected] subject:urgent"
View the next weekolk calendar view --days 7
Search contactsolk contacts search "Alex"
List task listsolk todo lists list
Browse OneDriveolk drive ls
Send mailolk mail send --to [email protected] --subject "Hi" --body "Hello"
Draft a reply-all with an extra Ccolk mail reply <ID> --reply-all --draft --body "$(cat reply.txt)" --cc [email protected]
Draft HTML with an inline imageolk mail drafts create --to [email protected] --subject "Steps" --html --body '<img src="cid:steps">' --inline steps=steps.png
Synchronize changesolk changes --json
Use JSON for scriptsolk mail list --json --results-only
Use as an MCP serverolk mcp

See the command reference for all commands and flags.

Inline images in HTML drafts

Use a cid: URL in the HTML and supply the matching image with repeatable --inline CID=PATH flags. This works for new drafts and true threaded reply or reply-all drafts:

bash
olk mail reply <ID> --draft --html \  --body '<p>See both images:</p><img src="cid:logo"><img src="cid:steps">' \  --inline logo=logo.png --inline steps=steps.png
olk mail drafts create --to [email protected] --subject "Instructions" --html \  --body '<p>Follow these steps:</p><img src="cid:steps">' \  --inline steps=steps.png

Each CID must be unique and referenced by the HTML. Files must be images and each must be under 3 MB, the Microsoft Graph simple-attachment limit. Draft commands do not send mail; immediate sends and forwards do not accept --inline.

Output and scripting

Results are written to stdout; diagnostics and prompts go to stderr.

bash
olk mail list --json --results-only | jq '.[].subject'olk contacts list --plain

Output modes are JSON (--json), TSV (--plain), and aligned tables by default. Use --concise to omit large bodies/previews and --select to limit fields where supported. See scripting and sync.

Safety defaults

  • Use --no-write --no-send --no-input for unattended read-only runs.
  • MCP exposes curated tools and requires explicit opt-in for mutations.
  • External mail, calendar, contact, and file text can be wrapped with --wrap-untrusted for agent-safe consumption.
  • Refresh tokens are stored in the OS keychain; access tokens are kept in memory only.

Read the security and privacy guide before connecting an agent or sharing logs.

Documentation

Contributing

bash
make buildmake testmake lint

See development and releases for repository structure, validation, CI, and publishing details.

License

See LICENSE.

來源:README.md,提交 6228443

工具

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

版本歷史

4
  1. v1.16.1最新Oct 12, 2026
  2. v1.15.1Sep 26, 2026
  3. v1.15.0Sep 24, 2026
  4. v1.14.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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