OWA Exchange MCP Server

io.github.nhype由 GitHub 账号 nhype 发布v1.0.1更新于 Oct 24, 2026

MCP server for Microsoft Exchange / OWA — email, calendar, directory, availability

发布方自己的服务:Exchange.news — Crypto offers, campaigns and news

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

概览

AI 生成的概览

连接 Microsoft Exchange / OWA 账户的 MCP 服务器,让助手处理邮件、日历、通讯录搜索、空闲时间和会议统计。

可以做什么
  • 读取、发送、回复、转发、移动、删除邮件并标记已读,下载附件或提取正文链接
  • 查看、创建、更新、取消会议并回复邀请,下载日程附件
  • 列出、创建、重命名、移动、清空和删除邮件文件夹,检查会话状态
  • 在 Active Directory 中搜索人员,查询自己或多人共同的空闲时间
  • 获取会议数量统计和“最常会面对象”关系矩阵
  • 使用已保存的凭据和双重验证登录 OWA
适用场景
适合让助手在企业 Exchange 或 Outlook Web Access 邮箱中工作:整理和回复邮件、安排或调整会议、查看同事空闲时间,或在通讯录中查找人员。
运行要求
以本地 Python 包形式运行(uvx exchange-mcp-server),面向桌面客户端。需要设置 EXCHANGE_OWA_URL 指向你的 OWA 地址,可选 EXCHANGE_COOKIE_FILE 指定会话 Cookie 文件。登录需要 OWA 用户名、密码和主密码,并在约 90 秒内完成双重验证;登录过程会启动无头浏览器。
安装前请注意
助手可以发送、转发、删除、移动邮件和清空文件夹,也能创建、修改或取消会通知参会人的会议。登录需提供 OWA 用户名、密码和主密码,凭据加密保存在 Cookie 文件中,主密码会传给登录工具。登录流程只针对一种双重验证方式(手机推送),其他环境可能需要改代码。会话 Cookie 只发送给你的 OWA 服务器。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

OWA Exchange MCP Server

MCP (Model Context Protocol) server for any Microsoft Exchange / OWA (Outlook Web Access) deployment. Gives LLM agents access to email, calendar, directory search, folders, availability, and meeting analytics via 30 tools.

Works with any on-premise or hosted Exchange server that exposes OWA.

Quick Start

bash
# Copy and edit the MCP config with your OWA URLcp .mcp.json.example .mcp.json
# One-time: set up encrypted credentialspython3 login.py --setup
# Login (opens headless browser, 2FA approval required)python3 login.py
# Install the MCP serverpip install -e .

Install

Add to your MCP client config. Replace https://owa.example.com with your OWA URL.

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{  "mcpServers": {    "exchange": {      "command": "uvx",      "args": ["exchange-mcp-server"],      "env": {        "EXCHANGE_OWA_URL": "https://owa.example.com"      }    }  }}

Cursor (.cursor/mcp.json):

json
{  "mcpServers": {    "exchange": {      "command": "uvx",      "args": ["exchange-mcp-server"],      "env": {        "EXCHANGE_OWA_URL": "https://owa.example.com"      }    }  }}

Claude Code (.mcp.json):

json
{  "mcpServers": {    "exchange": {      "command": "uvx",      "args": ["exchange-mcp-server"],      "env": {        "EXCHANGE_OWA_URL": "https://owa.example.com"      }    }  }}

Configuration

VariableRequiredDescription
EXCHANGE_OWA_URLYesBase URL of your OWA instance
EXCHANGE_COOKIE_FILENoPath to session cookies file (default: session-cookies.txt)

Login

Option A: Via MCP tool (recommended)

The login tool handles credential setup and authentication within the MCP session — no separate terminal needed.

First time (setup + login):

login(master_password="...", username="[email protected]", password="...")

Subsequent logins (decrypts stored credentials):

login(master_password="...")

Option B: Via CLI

bash
python3 login.py --setup   # First time: save encrypted credentialspython3 login.py            # Login with 2FA

Both methods:

  1. Open a headless browser to your OWA URL
  2. Submit credentials
  3. Wait for 2FA approval (up to 90 seconds)
  4. Save encrypted session cookies to session-cookies.txt

Credentials and session cookies are encrypted at rest with AES-256 (PBKDF2 key derivation, 480k iterations).

Tools (30)

Email (10)

ToolDescription
get_emailsList emails from a folder with filtering
get_emailGet full email content by ID
send_emailSend a new email
reply_emailReply to an email
forward_emailForward an email
delete_emailDelete an email
move_emailMove email to another folder
mark_email_readMark email as read/unread
download_attachmentsDownload file attachments from an email
get_email_linksExtract hyperlinks from an email body

Calendar (7)

ToolDescription
get_calendar_eventsGet events in a date range (supports recurring expansion)
create_meetingCreate a meeting with attendees
update_meetingUpdate an existing meeting
cancel_meetingCancel a meeting and notify attendees
respond_to_meetingAccept, decline, or tentatively accept
download_event_attachmentsDownload file attachments from a calendar event
get_event_linksExtract hyperlinks from an event description

Directory (1)

ToolDescription
find_personSearch people in Active Directory

Folders (7)

ToolDescription
get_foldersList mail folders with unread counts
create_folderCreate a new mail folder
rename_folderRename an existing folder
empty_folderEmpty all items from a folder
delete_folderDelete a mail folder
move_folderMove a folder to a different parent
check_sessionCheck if the OWA session is authenticated

Availability (2)

ToolDescription
find_free_timeFind free slots in your calendar
find_meeting_timeFind common free slots for multiple people

Analytics (2)

ToolDescription
get_meeting_statsMeeting count statistics for multiple people
get_meeting_contactsConnection matrix — who you meet with most

Auth (1)

ToolDescription
loginAuthenticate to OWA (credential setup + 2FA login)

Files

login.py                  # Browser-based 2FA login (standalone CLI)exchange_mcp/  server.py               # FastMCP server entry point  owa_client.py           # OWA HTTP client  auth.py                 # Async login logic (shared by MCP tool)  tools/    email.py              # Email tools    calendar.py           # Calendar tools    people.py             # Directory search    folders.py            # Folder management & session check    availability.py       # Free time / meeting time    analytics.py          # Meeting stats & contacts    auth.py               # Login toolpyproject.toml            # Package config

Warning

Every Exchange / OWA deployment has its own authentication setup — some require 2FA (push notifications, TOTP, SMS), others use single-factor login or SSO. The login logic in this project (login.py and exchange_mcp/auth.py) is written for a specific 2FA flow (mobile push approval). If your OWA server uses a different 2FA method or no 2FA at all, you will need to modify or remove the login logic to match your environment.

Security

  • Credentials and session cookies encrypted with AES-256-Fernet
  • Master password never stored
  • PBKDF2 with 480,000 iterations for key derivation
  • Credential and cookie files have 0600 permissions
  • Cookies decrypted into memory only — never written to disk as plaintext (via MCP tool)
  • Session cookies never transmitted except to your OWA server

来源:README.md,提交 413c31a

工具

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

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

其他 Exchange 集成