Skip to main content
Glama
Jpatching

mcp-outlook-desktop

by Jpatching

适用于 Claude 和 Antigravity (AGY) 的 Microsoft Outlook MCP 服务器

PyPI CI

一个高性能的 模型上下文协议(MCP) 服务器,可安全、直接地访问你的 Microsoft 365 Outlook 电子邮件、日历和联系人,支持从以下位置使用:

  • Claude Code CLI

  • Claude Desktop

  • Antigravity CLI (AGY)


🖥️ 实时终端演示

> claude "Check my unread emails and prepare a draft follow-up to Alex about tomorrow's sync"

⚡ Calling Tool: outlook_list_messages(folder="inbox", unread_only=True, top=5)
✔ Found 2 unread messages:
  [1] From: Alex Mercer <alex@company.com> | Subject: Agenda for Q3 Planning Sync
  [2] From: Cloud Alerts <alerts@infra.io> | Subject: Weekly Node Health Report

⚡ Calling Tool: outlook_get_message(message_id="MSG_049281")
✔ Retrieved message safely encapsulated in <untrusted_email_body_content> boundary.

⚡ Calling Tool: outlook_create_draft(
    to_recipients=["alex@company.com"],
    subject="Re: Agenda for Q3 Planning Sync",
    body="Hi Alex,\n\nThanks for sending over the agenda. I reviewed the distributed queue items and added notes for tomorrow's sync.\n\nBest,\nJosh"
)
✔ Draft created successfully in Outlook Drafts folder (ID: DRAFT_839120)
  [Human-in-the-Loop Safe]: The draft is ready in your Outlook app for review before sending.

Related MCP server: outlook-mcp

🔒 隐私与安全架构

  • 设计上的人机协同:所有外发邮件草稿默认保存到 Outlook 的 Drafts 文件夹中供人工审核。未经审核的直接发送(outlook_send_mail)需要显式设置 confirm_send=True 标志,以防止意外发送。

  • 间接提示注入防御:传入的电子邮件正文被封装在 <untrusted_email_body_content> XML 标签中,以确保 AI 模型将外部内容严格解析为被动数据。

  • 零云令牌 / 无密码:通过 Windows MAPI(win32com)100% 本地连接到正在运行的 Windows Outlook 桌面应用程序。

  • 严格的 .gitignore:所有本地配置、缓存和环境均被忽略。


🚀 安装与快速开始

方法 1:使用 uvx 即时运行(无需 git clone)

如果你已安装 uv,可以直接运行服务器:

uvx mcp-outlook-desktop

Claude Desktop 配置(%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "outlook": {
      "command": "uvx",
      "args": ["mcp-outlook"]
    }
  }
}

Claude Code CLI:

claude mcp add outlook uvx mcp-outlook-desktop

方法 2:使用 pip 进行本地安装

pip install mcp-outlook-desktop

然后在你的 Claude Desktop 配置中:

{
  "mcpServers": {
    "outlook": {
      "command": "mcp-outlook"
    }
  }
}

方法 3:从源代码克隆(C:\projects\mcp-outlook

cd C:\projects
gh repo clone Jpatching/mcp-outlook
cd mcp-outlook
setup.bat

测试连接(请确保 Outlook 已打开):

run.bat --status
run.bat --test

🛠️ 可用的 MCP 工具

工具名称

参数

描述

outlook_check_status

none

检查与 Outlook 的连接

outlook_list_messages

folder, top, unread_only

列出收件箱、已发送、草稿中的最近电子邮件

outlook_search_messages

query, top

在邮箱中搜索邮件

outlook_get_message

message_id

检索完整的邮件正文和发件人详细信息,并安全地封装在 XML 边界内

outlook_create_draft

subject, body, to_recipients, reply_to_message_id

在 Outlook 草稿文件夹中创建草稿邮件或回复草稿(推荐)

outlook_send_mail

subject, body, to_recipients, confirm_send

直接发送电子邮件(除非 confirm_send=True,否则将转到草稿箱)

outlook_list_calendar_events

days_ahead

列出即将到来的会议和约会

outlook_create_calendar_event

subject, start_datetime, end_datetime, attendees, location

在 Outlook 日历中安排会议

outlook_list_folders

none

列出邮件文件夹及其未读计数

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Governed email for AI agents (Mailbuttons / mbag.ai): sandbox inboxes, policy gate, audit log.

  • Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.

  • Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jpatching/mcp-outlook'

If you have feedback or need assistance with the MCP directory API, please join our Discord server