Outlook Classic

io.github.jli-software由 GitHub 账号 jli-software 发布v1.3.1更新于 Oct 29, 2026

Mail, calendar and contacts of classic Outlook on Windows via COM. Single EXE, no Graph app.

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

本地 Windows MCP 服务器,通过 COM 让助手读取、搜索和整理经典版 Outlook 的邮件、日历和联系人,无需 Graph 或 Azure。

可以做什么
  • 列出、搜索、读取并同步各文件夹邮件,管理文件夹、已读状态、分类和移动
  • 创建、修改、回复和转发草稿,列出并保存附件,仅在启用发送时发送草稿
  • 搜索、解析并查看联系人和公司通讯录
  • 列出、创建、修改和删除约会,以草稿形式回复邀请,查询同事的忙闲时间
  • 报告已登录邮箱、Outlook 版本和服务器设置
适用场景
适合在已登录经典版 Outlook 的 Windows 电脑上,让 AI 助手整理邮箱、起草回复、查找同事或管理日历,尤其适用于 Microsoft Graph 被策略屏蔽的环境。
运行要求
Windows 上安装并登录经典版 Outlook(Win32 桌面版);新版 Outlook 没有 COM 接口。以单个本地 EXE 运行,需以普通用户身份而非管理员运行,并配合 Claude Desktop、Claude Code、Codex、Cursor 或 VS Code 等 MCP 客户端。无需 Azure 应用、令牌或 API 密钥。
安装前请注意
助手可以更改邮箱和日历:草稿、移动、删除到“已删除邮件”、分类和约会修改。发送默认关闭,需 --allow-send 参数启用;即便如此也只发送经确认的草稿。更改会记录到本地审计日志,可用 OUTLOOK_MCP_AUDIT_LOG 改路径或关闭。附件路径默认限于用户配置文件和 %TEMP%,除非设置 OUTLOOK_MCP_ALLOW_ANY_PATH。EXE 未签名,SmartScreen 可能提示。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Outlook Classic,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Outlook Classic MCP logo]

Outlook Classic MCP

An MCP server for Microsoft Outlook — the classic desktop app for Windows.
Let Claude, Codex and other AI assistants read, search and organize your mailbox and calendar,
look up colleagues and write drafts for you — through the Outlook that is already signed in on your PC.

[Release] [Platform] [Outlook] [License] [Built with Go]


Claude / Codex  ──MCP──▶  outlook-classic-mcp.exe  ──COM──▶  Outlook (classic)  ──▶  your mailbox

Why

  • No Azure app, no Graph API, no tokens. It talks to your running Outlook via COM and uses the session you are already signed in with. Nothing to register, no admin consent.
  • Works where Microsoft Graph is blocked — e.g. by Conditional Access or token protection policies. If Outlook works on your PC, this works.
  • Local only. Your mail never leaves your machine except to the AI client you use.
  • Sends only if you allow it. Out of the box everything outgoing becomes a draft you review and send yourself — meeting invitations and replies to invitations included. Sending is an explicit opt-in (--allow-send), and even then only drafts go out.
  • Audit log. Every change the assistant makes — drafts, sends, moves, deletes, calendar — is logged locally as one JSON line, without the message text.
  • Files stay fenced in. Attachments can only be added from — and saved to — your user profile and %TEMP%, so a crafted email can't talk the assistant into attaching arbitrary files.
  • One small EXE. No Python, no PowerShell, no runtime, no background service.

Requirements

  • Windows with classic Outlook (Outlook for Microsoft 365 / 2016 / 2019 / 2021 desktop, the Win32 app) set up with your mailbox. The new Outlook (“Outlook for Windows”, olk.exe) has no COM interface — see Using the new Outlook? below.
  • An MCP client: Claude Desktop, Claude Code, Codex, Cursor, VS Code, …
  • Run it as your normal user, not elevated (an admin process cannot attach to your Outlook).

Install

In PowerShell:

powershell
irm https://raw.githubusercontent.com/jli-software/outlook-classic-mcp/main/install.ps1 | iex

This downloads the latest release to %LOCALAPPDATA%\Programs\outlook-classic-mcp, checks its SHA-256 and registers it as server outlook in Claude Desktop, Claude Code and Codex. Restart your clients — done.

Claude Desktop only: download outlook-classic-mcp.mcpb from the latest release and open it — Claude Desktop installs it as an extension.

Manual install
  1. Download outlook-classic-mcp-windows-x64.exe from the latest release and save it as outlook-classic-mcp.exe wherever you like.
  2. Register it:
    powershell
    .\outlook-classic-mcp.exe install           # Claude Desktop, Claude Code, Codex.\outlook-classic-mcp.exe install --allow-send  # same, with sending enabled.\outlook-classic-mcp.exe install --print   # dry run: only show the config files.\outlook-classic-mcp.exe install codex     # only one target (desktop | code | codex)
    Existing configs are kept; a .outlook-classic-mcp.bak backup is written first.

Windows SmartScreen may warn about the unsigned EXE — “More info → Run anyway”.

Other MCP clients (Cursor, VS Code, Windsurf, …)

Add a stdio server to your client's MCP config:

json
{  "mcpServers": {    "outlook": {      "command": "C:\\Users\\you\\AppData\\Local\\Programs\\outlook-classic-mcp\\outlook-classic-mcp.exe",      "args": ["serve"]    }  }}

What you can ask

“Summarize my unread mail from today.” “Find the invoice from Contoso in all folders and save the PDF.” “Draft a reply to Anna's last mail: Thursday works, 10am.” “Move all newsletters from this week to Archive and mark them read.” “What's Anna Smith's email and department? Draft her an invite for Friday.” “What's on my calendar this week? When are Anna and Beat both free on Tuesday?” “Move my 2pm dentist appointment to Thursday and set a reminder 1 hour before.”

Tools

ToolWhat it does
mail_listNewest emails of a folder (Inbox, Sent Items, Drafts, … or any folder)
mail_searchSearch subject, sender and body — one folder or folder: "all"
mail_readFull emails with body and attachment names (several at once)
mail_create_draftNew draft with To / CC / BCC
mail_replyReply draft with thread and quote, optionally with attachments
mail_forwardForward draft with your text above the original (attachments included)
mail_send_draftSend a draft — only with --allow-send, see Sending
mail_update_draftChange a draft; in replies only your text is replaced, quote and signature stay
mail_attachmentsList attachments
mail_save_attachmentSave attachments to disk so the assistant can read them
mail_foldersComplete folder tree with IDs and counts
mail_create_folderCreate a folder
mail_moveMove emails to a folder
mail_mark_readMark read / unread
mail_categorizeSet Outlook categories (color tags)
mail_deleteMove to Deleted Items (never deletes permanently)
mail_syncTrigger Send/Receive to refresh the local cache
contacts_searchFind people in your contacts and the company directory (Global Address List)
contacts_resolveName → email address; lists the candidates instead of guessing when ambiguous
contacts_getAll details of a contact or directory entry (phones, department, manager, …)
contacts_listYour own contacts
outlook_whoamiSigned-in mailbox, Outlook version, connection state and this server's settings
calendar_listAppointments in a time range (default: the next 7 days), recurring occurrences included
calendar_getDetails: description, attendees with their responses, Teams link, reminder
calendar_createNew appointment; with attendees a meeting that is saved but not sent
calendar_updateChange time, subject, location, … — one occurrence or the whole series
calendar_deleteDelete appointments or single occurrences; refuses sent meetings you organize
calendar_respondAccept / tentative / decline an invitation — the response is saved as a draft
calendar_free_busyWhen colleagues are busy on a given day (30-minute blocks)

Without --allow-send there is no send tool at all. In the calendar this means: a new meeting stays unsent until you click Send in Outlook, a response to an invitation lands in Drafts, and changing or deleting a meeting does not notify anyone — deleting a meeting you organize whose invitations were already sent is refused, so attendees aren't left with a ghost meeting (cancel it in Outlook instead).

Times go in and out as ISO 8601 in your local time (2026-10-29T14:00); a date alone (2026-10-29) makes an all-day event. An offset (+01:00, Z) is converted to local time.

Email addresses always come back as SMTP addresses ([email protected]), also for Exchange senders and directory entries — never as /O=…/CN=….

Sending

Sending is off by default. To allow it, register the server with install --allow-send (or add "--allow-send" after "serve" in your client's args) and restart the client. Running install without the flag turns it off again.

With sending on, the assistant still writes a draft first; mail_send_draft then sends it, and the tool tells the assistant to do so only after you have confirmed that exact draft. It refuses anything that is not an email or a meeting response in your Drafts folder, and it sends nothing if a recipient can't be resolved. Meetings are never sent by the server — invitations, updates and cancellations stay with you in Outlook.

Sent mail first goes to the Outbox; classic Outlook delivers it on its next sync (with Outlook running, within seconds).

Outlook security prompt: Outlook may show a warning that “a program is trying to send an email on your behalf” (the Object Model Guard). On PCs with an up-to-date, recognized antivirus this normally doesn't appear; where it does, sending waits for your click and times out after 90 s. Admins can control it with the Outlook policy Programmatic Access Security.

Audit log

Every action that changes something is appended as one JSON line to %LOCALAPPDATA%\outlook-classic-mcp\audit.log:

json
{"time":"2026-10-29T10:32:33+01:00","tool":"mail_send_draft","id":"00000000…","ok":true,"subject":"Offer","to":["[email protected]"]}

It records time, tool, IDs, recipients, subject and the result — never the message text. The file rotates at 5 MB (audit.log.1). Set OUTLOOK_MCP_AUDIT_LOG in the server's environment to another path, or to off. outlook_whoami shows where it is written.

Attachment folders

mail_reply (attachments) and mail_save_attachment (dir) only accept paths under your user profile (%USERPROFILE%) or %TEMP%; anything else is refused. To lift this, set OUTLOOK_MCP_ALLOW_ANY_PATH=1 in the server's environment, e.g.

json
"outlook": { "command": "…\\outlook-classic-mcp.exe", "args": ["serve"],             "env": { "OUTLOOK_MCP_ALLOW_ANY_PATH": "1" } }

Using the new Outlook?

You can keep working in the new Outlook. The classic Outlook only has to be installed and should run now and then, because this server reads its local cache:

  • Best: start classic Outlook minimized with Windows. You won't notice it, and the cache stays fresh. Turn off its desktop notifications so you don't get every mail twice (File → Options → Mail → Display a Desktop Alert).
    powershell
    $s  = New-Object -ComObject WScript.Shell$sc = $s.CreateShortcut("$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\Outlook (classic).lnk")$sc.TargetPath  = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE').'(default)'$sc.WindowStyle = 7   # minimized$sc.Save()
  • On demand: ask the assistant to run mail_sync first.

If classic Outlook is closed, the server starts it invisibly and releases it again after 5 minutes without a call.

Troubleshooting

ProblemFix
0x80080005 / “server execution failed”Your MCP client runs elevated, or Outlook is starting. Run the client as normal user; keep Outlook open.
Drafts don't show up in the new OutlookClassic Outlook hasn't synced yet — run mail_sync or keep classic Outlook running.
folder not foundUse mail_folders and pass the folder's ID or full path. Unknown folders are an error on purpose, never a silent fallback to the Inbox.
First contacts_search takes a few secondsOutlook can't filter the company directory, so the first search reads all names (~2 ms per entry) and keeps them for 30 minutes. Later searches are instant.
Search over all folders takes secondsIt scans the text of every message (~5–10 s for a few thousand). Search one folder when you can.
A dialog in Outlook blocksCalls time out after 90 s; close the dialog and try again.
mail_send_draft is missingSending is off — register with install --allow-send and restart the client.
Sent mail stays in the OutboxClassic Outlook is offline or not running; open it or run mail_sync.

Build from source

powershell
git clone https://github.com/jli-software/outlook-classic-mcpcd outlook-classic-mcpgo build -o outlook-classic-mcp.exe .go test .

Pure Go (no CGO), using go-ole for COM and mcp-go for MCP.

Disclaimer

This is an independent open-source project. It is not affiliated with, endorsed by or sponsored by Microsoft. “Microsoft” and “Outlook” are trademarks of the Microsoft group of companies.

License

MIT

来源:README.md,提交 05b822c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.3.1最新Oct 29, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分