
aanerud/Outlook-desktop-mcp 是从 https://github.com/aanerud/outlook-desktop-mcp. 导入的 MCP 服务器候选
概览
aanerud/Outlook-desktop-mcp 是从 https://github.com/aanerud/outlook-desktop-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
把你运行中的Outlook桌面变成MCP服务器。 没有Microsoft Graph API,没有Entra应用注册,没有OAuth令牌——只有你本地的Outlook和你已有的认证。
任何MCP客户端(Claude Code、Claude Desktop等)都可以在现有的Outlook会话中发送邮件、管理日历、创建任务、处理附件等功能。
快速启动
1.安装(需要Python 3.12+):
2.用Claude代码注册:
3.打开Outlook,启动Claude Code会话。 仅此而已——工具立即可用。
工作原理 — 站台路由
服务器启动时会检查运行的操作系统,并选择以下两种路径之一:
两条路径都使用你本地运行的Outlook应用及其现有的认证会话。 没有云凭证,也没有Graph API令牌——服务器继承Outlook登录的任何账户。
为什么有两条路?
Windows Outlook(经典版)展示了丰富的COM自动化界面——Outlook对象模型(MSOUTL.OLB)。这已成为Windows上通过程序控制Outlook的标准方式,已有20多年。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
outlook-desktop-mcp
Turn your running Outlook Desktop into an MCP server. No Microsoft Graph API, no Entra app registration, no OAuth tokens — just your local Outlook and the authentication you already have.
Any MCP client (Claude Code, Claude Desktop, etc.) can then send emails, manage your calendar, create tasks, handle attachments, and more — all through your existing Outlook session.
Quick Start
1. Install (requires Python 3.12+):
pip install outlook-desktop-mcp
2. Register with Claude Code:
claude mcp add outlook-desktop -- outlook-desktop-mcp
3. Open Outlook and start a Claude Code session. That’s it — tools are available immediately.
How It Works — Platform Routing
When the server starts, it checks which operating system it is running on and takes one of two paths:
outlook-desktop-mcp starts
|
sys.platform check
/ \
"win32" "darwin"
| |
┌───────┴────────┐ ┌────────┴────────┐
│ server.py │ │ server_mac.py │
│ COM Bridge │ │ AppleScript │
│ (29 tools) │ │ Bridge │
│ │ │ (22 tools) │
└───────┬────────┘ └────────┬─────────┘
| |
OUTLOOK.EXE via Microsoft Outlook
COM / STA thread via osascript
| |
Exchange / M365 Exchange / M365
Both paths use your locally running Outlook app and its existing authenticated session. No cloud credentials, no Graph API tokens — the server inherits whatever account Outlook is signed into.
Why two paths?
Windows Outlook (Classic) exposes a rich COM automation interface — the Outlook Object Model (MSOUTL.OLB). This has been the standard way to programmatically control Outlook on Windows for over 20 years. It provides deep access to mail rules, categories, MAPI properties, and the full folder hierarchy.
Mac Outlook does not support COM. Instead, it exposes an AppleScript dictionary that can be driven via the osascript command. The AppleScript interface covers the core operations — email, calendar, tasks — but does not expose rules, categories, or certain advanced MAPI features. This is a limitation of what Microsoft chose to include in Outlook for Mac’s scripting dictionary, not a limitation of this project.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →