# OWA Exchange MCP Server [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/nhype/owa-exchange-mcp  
**GitHub Stars:** 14  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/owa-exchange-mcp-server

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

## Tools
Capabilities this server exposes over MCP:

- **get_emails** — List emails from a folder with filtering
- **get_email** — Get full email content by ID
- **send_email** — Send a new email
- **reply_email** — Reply to an email
- **forward_email** — Forward an email
- **delete_email** — Delete an email
- **move_email** — Move email to another folder
- **mark_email_read** — Mark email as read/unread
- **download_attachments** — Download file attachments from an email
- **get_email_links** — Extract hyperlinks from an email body
- **get_calendar_events** — Get events in a date range (supports recurring expansion)
- **create_meeting** — Create a meeting with attendees
- **update_meeting** — Update an existing meeting
- **cancel_meeting** — Cancel a meeting and notify attendees
- **respond_to_meeting** — Accept, decline, or tentatively accept
- **download_event_attachments** — Download file attachments from a calendar event
- **get_event_links** — Extract hyperlinks from an event description
- **find_person** — Search people in Active Directory
- **get_folders** — List mail folders with unread counts
- **create_folder** — Create a new mail folder
- **rename_folder** — Rename an existing folder
- **empty_folder** — Empty all items from a folder
- **delete_folder** — Delete a mail folder
- **move_folder** — Move a folder to a different parent
- **check_session** — Check if the OWA session is authenticated
- **find_free_time** — Find free slots in your calendar
- **find_meeting_time** — Find common free slots for multiple people
- **get_meeting_stats** — Meeting count statistics for multiple people
- **get_meeting_contacts** — Connection matrix — who you meet with most
- **login** — Authenticate to OWA (credential setup + 2FA login)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "owa-exchange-mcp-server": {
    "command": "uvx",
    "args": ["exchange-mcp-server"],
    "env": {
      "EXCHANGE_OWA_URL": "",
      "EXCHANGE_COOKIE_FILE": ""
    }
  }
}
```

**Requires environment variables:** `EXCHANGE_OWA_URL`, `EXCHANGE_COOKIE_FILE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What OWA Exchange MCP Server MCP server does

OWA Exchange MCP Server MCP server gives MCP-compatible clients access to Microsoft Exchange through an OWA endpoint. It covers common mailbox operations, calendar management, directory lookup, folder administration, availability checks, and meeting-related analysis. The project is intended for both hosted and on-premise Exchange systems that expose OWA.

Email tools can list messages with filters, retrieve complete message content, send new messages, reply, forward, delete, move, and change read status. Agents can also download message attachments and extract links from email bodies. Folder tools report unread counts and support creating, renaming, emptying, deleting, and moving folders.

Calendar tools retrieve events over a date range and can expand recurring events. They also create, update, cancel, and respond to meetings, with support for event attachments and links. Directory search uses Active Directory, while availability tools find open time for one person or common slots for multiple people. Analytics tools report meeting counts and the people a user meets most often.

## How it works

The server communicates with the Exchange environment through OWA rather than a separately documented Exchange API. Its MCP tools operate against the authenticated OWA session. A login tool can set up credentials and authenticate inside the MCP session; a separate `login.py` command provides the same browser-based flow from a terminal.

Authentication opens a headless browser, submits the supplied credentials, waits for 2FA approval for up to 90 seconds, and saves encrypted session cookies. Later logins can decrypt stored credentials with a master password. The master password is not stored. Credential and cookie data use AES-256 encryption, PBKDF2 key derivation with 480,000 iterations, and restrictive file permissions; MCP-based cookie handling keeps decrypted cookies in memory.

## Setup and configuration

OWA Exchange MCP Server MCP server requires Python installation and an MCP client configuration that launches `exchange-mcp-server`, commonly through `uvx`. Set `EXCHANGE_OWA_URL` to the base URL of the organization’s OWA instance. `EXCHANGE_COOKIE_FILE` is optional and selects the session-cookie path; its default is `session-cookies.txt`.

A typical setup copies the example MCP configuration, replaces the sample OWA URL, installs the package with `pip install -e .`, and completes an initial login. The login process can save encrypted credentials with `python3 login.py --setup`, followed by `python3 login.py`, or it can be performed through the MCP `login` tool with a master password and, on first use, the OWA username and password.

## Tools and capabilities

OWA Exchange MCP Server MCP server groups its 30 tools into these areas:

- Email: message retrieval, composition, replies, forwarding, deletion, moves, read-state changes, attachments, and links.
- Calendar: event retrieval, recurring expansion, meeting changes, attendee responses, attachments, and links.
- Directory: Active Directory person searches.
- Folders: folder listing, unread counts, creation, renaming, emptying, deletion, and relocation.
- Availability: personal free-time searches and shared meeting-time searches.
- Analytics: meeting statistics and meeting-contact relationship data.
- Authentication: session checks and OWA login.

## Limitations and notes

OWA authentication differs between Exchange deployments. The included login implementation targets a mobile push approval flow. Organizations using another 2FA method, SSO, or no 2FA may need to modify or remove the login logic in `login.py` and `exchange_mcp/auth.py`.

The server needs an OWA deployment that is exposed and usable by the project’s authentication and HTTP client. Actions such as sending, deleting, moving, emptying, and cancelling change Exchange data, so client users should grant agents only the access appropriate for their workflow. Session cookies are intended for the configured OWA server and are not transmitted elsewhere.

_Full upstream README: https://allmcps.com/mcp/owa-exchange-mcp-server/readme_

