OWA Exchange MCP Server — Claude Code MCP server: how to install
Connects LLM assistants to Microsoft Exchange via Outlook Web Access. Helpful for processing inbox messages, scheduling meetings, and querying company directories from editor chats.
claude mcp add --env EXCHANGE_OWA_URL=<EXCHANGE_OWA_URL> --env EXCHANGE_COOKIE_FILE=<EXCHANGE_COOKIE_FILE> --transport stdio owa-exchange-mcp-server -- uvx exchange-mcp-serverWhat OWA Exchange MCP Server does
This server exposes 30 tools to inspect mailboxes, manage calendar events, and search company directories via Active Directory. An agent can list folder contents, reply to threads, download email attachments, and move messages between folders. It also includes analytics tools to review meeting frequencies and find common open slots across several attendees.
The runtime relies on uvx and requires the EXCHANGE_OWA_URL environment variable. Sensitive session cookies and saved credentials remain encrypted at rest using AES-256 with PBKDF2 key derivation. Cookies default to session-cookies.txt.
The built-in login script targets mobile push 2FA approvals with a 90-second timeout. If your Exchange deployment relies on SSO, TOTP authenticator codes, or SMS verification, authentication fails out of the box. You will need to rewrite the login logic to match your corporate setup.
What it helps with
- triage unread inbox messages and extract email attachments
- find matching open slots across multiple colleague calendars
- look up staff contact information in Active Directory
- track meeting volume and frequent contacts from calendar history
Example prompts for the agent
- Check my unread emails from this morning and download attachments from the latest invoice thread.
- Look up free calendar slots for tomorrow afternoon and invite the engineering team.
- Search Active Directory for the DevOps lead email address.
How to install OWA Exchange MCP Server
Platform CLI
claude mcp add --env EXCHANGE_OWA_URL=<EXCHANGE_OWA_URL> --env EXCHANGE_COOKIE_FILE=<EXCHANGE_COOKIE_FILE> --transport stdio owa-exchange-mcp-server -- uvx exchange-mcp-serverReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from exchange-mcp-server <command>
Platform CLI
codex mcp add owa-exchange-mcp-server --env EXCHANGE_OWA_URL=<EXCHANGE_OWA_URL> --env EXCHANGE_COOKIE_FILE=<EXCHANGE_COOKIE_FILE> -- uvx exchange-mcp-serverReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from exchange-mcp-server <command>
Config file
{
"mcpServers": {
"owa-exchange-mcp-server": {
"command": "uvx",
"args": [
"exchange-mcp-server"
],
"env": {
"EXCHANGE_OWA_URL": "<EXCHANGE_OWA_URL>",
"EXCHANGE_COOKIE_FILE": "<EXCHANGE_COOKIE_FILE>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from exchange-mcp-server <command>
Config file
{
"servers": {
"owa-exchange-mcp-server": {
"type": "stdio",
"command": "uvx",
"args": [
"exchange-mcp-server"
],
"env": {
"EXCHANGE_OWA_URL": "<EXCHANGE_OWA_URL>",
"EXCHANGE_COOKIE_FILE": "<EXCHANGE_COOKIE_FILE>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from exchange-mcp-server <command>
Platform CLI
gemini mcp add -e EXCHANGE_OWA_URL=<EXCHANGE_OWA_URL> -e EXCHANGE_COOKIE_FILE=<EXCHANGE_COOKIE_FILE> owa-exchange-mcp-server uvx exchange-mcp-serverReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from exchange-mcp-server <command>
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 OWA Exchange MCP Server
How to install OWA Exchange MCP Server in Claude Code?
Run `claude mcp add --env EXCHANGE_OWA_URL=<EXCHANGE_OWA_URL> --env EXCHANGE_COOKIE_FILE=<EXCHANGE_COOKIE_FILE> --transport stdio owa-exchange-mcp-server -- uvx exchange-mcp-server` replacing the placeholder with your OWA address.
What does OWA Exchange MCP Server do?
It equips your AI assistant with 30 tools to read and send Exchange emails, manage calendar invitations, check availability, and search enterprise directory listings.
Does the server work with SSO logins?
Not immediately. The default authentication workflow specifically handles mobile push notifications, so SSO redirects or SMS two-factor authentication require rewriting the login automation scripts.