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 分