
Microsoft Exchange Online MCP
io.github.Servosity由 GitHub 账号 Servosity 发布v0.1.1更新于 Nov 7, 2026
Exchange Online admin for MSPs: forwarding audits, EWS posture and offboarding, no PowerShell
概览
非官方 MCP 服务器,让助手通过 REST 跨客户租户审计和管理 Microsoft Exchange Online 邮箱,无需 PowerShell。
- 可以做什么
- 审计邮件流向:转发审计、全租户收件箱规则扫描,以及邮件跟踪以查明邮件为何未送达
- 检查协议与入侵态势:每个邮箱生效的 EWS、IMAP、POP 与 SMTP AUTH 状态,以及单个邮箱的商务邮件入侵排查
- 查看访问权限与离职处理:某用户可打开或代发哪些邮箱,以及离职人员的分步 Exchange 处理计划
- 管理隔离区与常规邮箱设置:隔离队列与放行、邮箱和文件夹权限、自动回复、客户端访问、通讯组和传输规则
- 按租户逐个调用原始 Get-* 与变更类 cmdlet,未确认前仅返回预览
- 适用场景
- 适合需要在多个客户租户间回答重复性 Exchange Online 问题的 MSP 或 IT 管理员,例如是否有邮件被自动转发出去、哪些邮箱在 EWS 停用前仍依赖它、离职人员的 Exchange 处理步骤是什么。也适合能运行本地程序并持有租户令牌的助手。
- 运行要求
- 以 stdio 本地进程运行,可通过 .mcpb 扩展、shell 安装脚本或插件安装;多代理 skills 安装器需要 Node.js。需要为目标租户签发、面向 outlook.office365.com 的 bearer 令牌,通过 EXCHANGE_ONLINE_TOKEN 设置或由 CLI 保存,并具备 Exchange 角色(如 Exchange Administrator),应用令牌还需 Exchange.ManageAsApp。HTTP 模式需要 EXCHANGE_ONLINE_MCP_HTTP_TOKEN,非本地地址还需 TLS 证书。
安装
在 SourceWeft 中
- 打开 控制台中的 Microsoft Exchange Online MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Microsoft Exchange Online + AI - for ChatGPT, Claude, GitHub Copilot, Microsoft 365 Copilot, Gemini, and any agent that speaks MCP
Unofficial. Community-built Claude Code Skill and MCP server for the Microsoft Exchange Online API. Not affiliated with, endorsed by, or sponsored by Microsoft Corporation.
[Exchange Online demo - animated preview]
▶ Watch the 30-second demo - demo data is simulated; every command shown exists in the real CLI.
Exchange Online admin for MSPs over REST: forwarding audits, EWS posture, offboarding and quarantine across client tenants, no PowerShell session. Works with the AI you already use - ChatGPT (Plus/Pro+), Claude Desktop, Codex, Claude Code, Claude Cowork, and GitHub Copilot - plus Microsoft 365 Copilot / Copilot Studio and Google Gemini via the remote path. Free, open source, runs on your laptop. Built for MSP owners. No code required.
Works with your agent
The six agents MSP owners actually use (self-serve, works today):
For ChatGPT, run exchange-online-mcp --transport http with EXCHANGE_ONLINE_MCP_HTTP_TOKEN set, on an HTTPS host; every request sends that token. See mcp-install.md.
Also for the Microsoft and Google stacks
Big install base, but an honest heads-up: these are the remote / enterprise path, not the local binary you just installed.
Skill-native agents (also covered): Hermes and OpenClaw read this skill's
SKILL.mddirectly and speak MCP - see their install sections below. Also works with Cursor, Windsurf, Cline, Continue.dev, and Zed via MCP. Full per-tool wire-up: docs/which-agent.md.
Run more than one agent? Install across all 51+ supported agents in one command:
npx skills add Servosity/msp-skills@latest(requires Node.js, then run the per-skill installer for the CLI/MCP binaries). See docs/which-agent.md.
Install in 60 seconds
Fastest for Claude Desktop - one-click .mcpb
Download Microsoft Exchange Online MCP (.mcpb) - then open Claude Desktop > Settings > Extensions and select the file. One click, no JSON, no shell. (Browse every Microsoft Exchange Online release on the releases page.)
Prefer the Claude Code plugin? Add the marketplace once, then install - works immediately, no directory listing required:
Path A - paste one prompt into your AI agent (recommended)
Copy this into Claude Code, Codex CLI, or Claude Cowork:
Install the Microsoft Exchange Online Skill and MCP server from Servosity/msp-skills in this agent workspace. If this workspace uses a POSIX shell (macOS, Linux, WSL, or Bash), run
bash <(curl -fsSL https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/exchange-online/install.sh). If it uses Windows PowerShell, runiwr -useb https://raw.githubusercontent.com/Servosity/msp-skills/main/skills/exchange-online/install.ps1 | iex. Then authenticate per the README and runexchange-online-cli --helpto explore.
The same prompt works in any agent that can run shell.
Path B - run the installer yourself
Windows (PowerShell):
macOS / Linux:
The installer drops both exchange-online-cli (the CLI) and exchange-online-mcp (the MCP server) into your user bin path. Claude Code, Codex, and Cowork discover the Skill via SKILL.md in this directory.
Verify:
Upgrade to the latest version
The installer always fetches the current release - re-run it to upgrade:
macOS / Linux:
Windows (PowerShell):
Claude Desktop .mcpb users: download the latest .mcpb (top of this section) and re-select it in Settings > Extensions. Claude Code plugin users: /plugin update exchange-online@msp-skills.
Add to Claude Desktop, GitHub Copilot, Gemini CLI, Microsoft 365 Copilot, or another MCP client
After the installer runs, see mcp-install.md and docs/which-agent.md for the per-agent wire-up - one section per agent, including the GitHub Copilot servers key and the remote Microsoft 365 Copilot / Copilot Studio path. Claude Desktop's Settings > Extensions panel is the simplest path; the MCP config block (for users who prefer editing JSON) is documented in mcp-install.md.
Install for Hermes
From the Hermes CLI:
Inside a Hermes chat session:
Hermes speaks MCP natively, so it can also use the exchange-online-mcp server directly - same install path, same env vars.
Install for OpenClaw
Tell your OpenClaw agent (copy this):
Install the exchange-online skill from https://github.com/servosity/msp-skills/tree/main/skills/exchange-online. The skill defines how its required CLI (
exchange-online-cli) can be installed via theopenclaw:frontmatter block.
OpenClaw isn't generally available yet; the frontmatter wiring is pre-shipped and will activate the moment OpenClaw launches.
Authenticate
Set a bearer token for https://outlook.office365.com issued for the customer tenant you are working in (GDAP partners mint one per tenant; tokens last about an hour). App-only tokens need Exchange.ManageAsApp (cmdlet commands) or Exchange.ManageAsAppV2 (the Admin API v2.0 commands) plus an Exchange role such as Exchange Administrator:
On Windows (PowerShell):
doctor checks config, paths and API reachability, and tries the credential with one read cmdlet (Get-AcceptedDomain) when it can. Run the read commands you need to confirm the token's Exchange role covers them.
What this skill does
Full command reference: guide.md. For the AI-agent operating contract (--agent, --dry-run, when to confirm before mutating), see AGENTS.md.
What makes this different
Exchange Online administration usually means a PowerShell session per customer tenant. This connector calls the same REST admin endpoints the ExchangeOnlineManagement v3 module uses, one tenant per call, so an AI agent gets JSON answers with no PowerShell runtime or session to keep alive.
On top of the raw cmdlets it adds compound commands that each answer a whole question: forwarding-audit (mailbox forwarding, inbox rules, the outbound spam policy and remote domains in one verdict), bec triage (rules, forwarding, restricted-sender status, new mobile devices and outbound volume for one mailbox), ews-posture (each mailbox's effective protocol state once org defaults apply) and offboard (the Exchange side of a leaver with a per-step receipt). inbox-rules sweep and quarantine snapshot save results locally, so forwarding-audit and the cross-tenant quarantine queue can read them without another pass. API responses themselves are not kept in a response cache on disk.
The pain this closes
Microsoft began a phased shutdown of Exchange Web Services (EWS) in Exchange Online on October 1, 2026, with full retirement on April 1, 2027 (Microsoft 365 Message Center MC1227454). Every MSP has to find which client mailboxes still depend on EWS and the other legacy protocols, and the effective answer per mailbox depends on the org default and the mailbox override together. Meanwhile business email compromise keeps leaving inbox rules and forwarding behind, and those live per mailbox (Practical365, "Good Use of Microsoft 365 Auditing Can Halt Business Email Compromise Attempts").
ews-posture: the mailboxes that break, or stay exposed, when EWS and legacy auth go away.forwarding-auditandinbox-rules sweep: whether mail is leaving a tenant, and which rule sends it.bec triage: one mailbox's compromise evidence in one call.offboard --plan: a leaver's Exchange steps, done or pending, before anything changes.
See pain-point.md for the longer narrative.
Frequently asked questions
Does this work with ChatGPT?
Yes, on Plus, Pro, Team, Business, Enterprise, and Education plans (Free tier does not yet expose Developer Mode). ChatGPT connects to remote MCP servers over HTTPS, not local stdio binaries. The Microsoft Exchange Online MCP server runs locally over stdio by default. Its HTTP mode (exchange-online-mcp --transport http) serves http://127.0.0.1:7777/mcp, refuses to start until EXCHANGE_ONLINE_MCP_HTTP_TOKEN is set, requires Authorization: Bearer <token> on every request, and needs --tls-cert/--tls-key for any other address. See mcp-install.md. Step-by-step in mcp-install.md.
Does this work with Codex, Cursor, Windsurf, Cline, Copilot, or Gemini?
Yes - all of them speak MCP. Cross-tool install commands are in the matrix above and the deep-dive in docs/which-agent.md.
Do I need to know how to code?
No. The recommended install is to paste one sentence into Claude Code or Codex - your agent reads SKILL.md and does the install. The fallback is a one-line installer per OS (bash or PowerShell). Neither path requires writing code. You'll enter your Microsoft Exchange Online credentials once.
Is my Microsoft Exchange Online data safe?
Your data stays on your machine. The CLI and MCP server are local binaries. The local store (inbox-rule sweeps and quarantine snapshots, with secret fields stripped; cmdlet reads are not saved) sits in a directory under your user account. The AI agent only sees what the CLI returns - typically a query result, not raw bulk data. Credentials come from your environment or the CLI's own credentials file (saved by auth set-token); they are never bundled into this repo or transmitted anywhere by MSP Skills.
Do I still need Exchange Online PowerShell?
Not for the cmdlets this connector covers: it calls the same REST admin endpoints the ExchangeOnlineManagement v3 module uses. Bulk policy creation, Purview compliance and Exchange Server on-premises stay with PowerShell or other tools.
What token does it need?
A bearer token for the resource https://outlook.office365.com, issued for the customer tenant you are working in, with an Exchange role that allows the cmdlets you run. Set EXCHANGE_ONLINE_TOKEN, or save it with exchange-online-cli auth set-token (it reads the token from stdin). Every command names the tenant ID.
Can an AI agent change mailboxes on its own?
Not over MCP without your approval: every state-changing cmdlet and offboard return a preview until the call carries confirm: true, and EXCHANGE_ONLINE_MCP_READ_ONLY=1 removes every write tool. On the command line, preview a write with --dry-run (offboard with --plan) before you run it.
What does it cost?
Free. Apache-2.0 licensed. You pay only for whichever AI agent you use (Claude, ChatGPT, Codex, etc.), and that's billed by your AI provider, not by us.
Safety model
The strongest control is the scope you grant the Microsoft Exchange Online credentials - the CLI can only do what the credentials are permitted to do. Full details, including how to lock it down, are in governance.md.
Status
Beta. Validated against the Microsoft Exchange Online API surface and being validated with MSPs running it live against their own production tenant in our weekly Build Sessions. RSVP at compoundingteams.com/build-sessions.
Standards. Conforms to the open Agent Skills spec (Anthropic, Dec 2025; 40+ agents). MCP-compatible - works with any MCP-capable agent including Hermes. OpenClaw-ready (frontmatter pre-wired, awaiting OpenClaw launch).
Maintained by Servosity. Apache-2.0 licensed. Built with CLI Printing Press. Last updated: 2026-10-29.
来源:skills/exchange-online/README.md,提交 62ab9f0
工具
0版本历史
1- v0.1.1最新Nov 7, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
其他 Exchange 集成
Exchange.news — Crypto offers, campaigns and news
news.exchange官方发布者
一个只读的远程目录,让助手查询加密货币注册优惠码、合作链接、活动日期和 Exchange.news 新闻。

Agent Service Exchange
由 GitHub 账号 PatrickPi1312 发布
查找服务商;在维也纳发送经授权的安装或清洁咨询。无需客户账户。AI 翻译

Iran Mercantile Exchange
由 GitHub 账号 sepehr071 发布
伊朗商品交易所的非官方只读 MCP 服务器,让助手获取公开的成交、供应、价格与市场统计数据。

Türkiye Central Bank (TCMB) Exchange Rates
由 GitHub 账号 foster-ops 发布
非官方的土耳其央行(TCMB)汇率 MCP 服务器:获取最新公报、1996 年以来的历史汇率,并进行货币换算。

Exchange Arbitrage Agent
由 GitHub 账号 LKennedyShare 发布
远程 MCP 服务器,提供预测市场数据:搜索市场、获取订单簿报价、估算成交并查看赔率趋势,部分调用需用 Base 上的 USDC 付费。