# Microsoft Exchange Online MCP

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 87 repo stars
- Author: Servosity
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Servosity/msp-skills/tree/HEAD/skills/exchange-online
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — warning: a command downloads a script from raw.githubusercontent.com and runs it right away; a PowerShell command downloads a script from raw.githubusercontent.com and runs it right away. Do not run such commands without an explicit yes from the human.
- HTML: https://affpapa.org/en/nevibecode/mcp/microsoft-exchange-online-mcp

## What it 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.

## Requirements
- Environment variables: `EXCHANGE_ONLINE_TOKEN`, `EXCHANGE_ONLINE_BASE_URL`, `EXCHANGE_ONLINE_ANCHOR_MAILBOX`, `EXCHANGE_ONLINE_MCP_READ_ONLY`, `EXCHANGE_ONLINE_NO_LOCAL_DATA`, `EXCHANGE_ONLINE_MCP_HTTP_TOKEN`, `EXCHANGE_ONLINE_USER_AGENT`, `PRINTING_PRESS_CLIENT_PROFILE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- 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
- Audit mailbox forwarding rules across all connected tenants
- Check EWS posture settings using exchange-online-cli
- Run the employee offboarding sequence for this mailbox

## Similar
- [Microsoft 365 Mail](https://affpapa.org/en/nevibecode/mcp/microsoft-365-mail.md) — MCP server · ★ 14 repo stars
- [m365-admin](https://affpapa.org/en/nevibecode/agents/voltagent-m365-admin.md) — subagent · ★ 6505 repo stars
- [Microsoft 365 Admin](https://affpapa.org/en/nevibecode/mcp/microsoft-365-admin.md) — MCP server · ★ 20 repo stars
- [microsoft-outlook](https://affpapa.org/en/nevibecode/skills/acedatacloud-microsoft-outlook.md) — skill · 269 installs
- [it-ops-orchestrator](https://affpapa.org/en/nevibecode/agents/it-ops-orchestrator.md) — subagent · 194 installs
- [ms365-tenant-manager](https://affpapa.org/en/nevibecode/skills/ms365-tenant-manager.md) — skill · 783 installs

From the same set: [servosity/msp-skills](https://affpapa.org/en/nevibecode/by/servosity/msp-skills.md) — 107 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
