Microsoft Exchange Online MCP — Claude Code MCP server: guide
Microsoft Exchange Online MCP — an MCP server for Claude Code and Codex handling Exchange Online administration. Executes mailbox forwarding audits, EWS reviews, quarantine actions, and offboarding without running PowerShell sessions.
no license ★ 87 updated 2026-10-24
Open on GitHubWhat Microsoft Exchange Online MCP does
The server bridges AI agents with the Exchange Online REST interface without opening interactive PowerShell sessions. A single installer script places both the exchange-online-mcp server binary and the exchange-online-cli executable into the user bin directory.
Agents query forwarding configurations across client tenants, review EWS access settings, manage quarantine bins, and run offboarding workflows. When operating as an HTTP service rather than a local binary, the server requires the EXCHANGE_ONLINE_MCP_HTTP_TOKEN environment variable for token transmission.
Local CLI operation runs directly on the machine. Deployments targeting Microsoft 365 Copilot or Copilot Studio require HTTPS hosting capable of forwarding bearer tokens, plus Copilot Studio licensing and tenant administrative permissions.
What it helps with
- audit external mailbox forwarding rules across client tenants
- inspect Exchange Web Services posture and access rules
- execute user offboarding routines without manual PowerShell sessions
- inspect and quarantine suspicious tenant email messages
Example prompts for the agent
- Audit mailbox forwarding rules across all connected tenants
- Check EWS posture settings using exchange-online-cli
- Run the employee offboarding sequence for this mailbox
How to install Microsoft Exchange Online MCP
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Microsoft Exchange Online MCP
How to install Microsoft Exchange Online MCP in Claude Code?
Register the repository using /plugin marketplace add Servosity/msp-skills, then install the component via /plugin install exchange-online@msp-skills.
What does Microsoft Exchange Online MCP do?
It exposes Exchange Online management tasks to MCP agents, allowing mailbox audits, EWS inspection, quarantine handling, and tenant offboarding.
What is required to run Microsoft Exchange Online MCP?
Local operation needs the installed exchange-online-cli and exchange-online-mcp binaries. Remote transport requires an HTTPS host with EXCHANGE_ONLINE_MCP_HTTP_TOKEN, while Copilot Studio integrations demand tenant admin rights and a Copilot Studio license.