outlook-mail-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@outlook-mail-mcp show my unread emails from this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
outlook-mail-mcp
Local, read + draft only MCP server for Outlook / Exchange via macOS Mail.app.
Works with work and school Microsoft 365 accounts even when your organization blocks third-party Entra ID / Microsoft Graph OAuth apps ("Need admin approval"), because authentication is handled natively by Apple Mail.
Security Model
Pinned account: Strictly scoped to a single
Mail.appaccount (MAIL_ACCOUNT, defaultExchange) — other accounts inMail.app(Gmail, iCloud, etc.) cannot be accessed.Read + Draft only: No
send,delete, or inbox-rule tools exist. Drafts are saved/opened inMail.appfor you to review and send manually.No tokens on disk: Zero OAuth tokens, client secrets, or
.envcredentials stored by this server.Injection-safe bridge: Calls
osascript -l JavaScriptviaexecFile(no shell) and passes all arguments as JSON viaargv.Prompt-injection hardening: Strips invisible/bidi-override Unicode characters and wraps read email bodies in
=== BEGIN UNTRUSTED EMAIL CONTENT ===markers.
Related MCP server: Apple Mail MCP
Prerequisites
macOS
Node.js ≥ 20
Your Outlook/Exchange account signed into Apple Mail (
System Settings → Internet Accounts → Microsoft Exchange)
Setup
git clone https://github.com/YehorMaly/outlook-mail-mcp.git
cd outlook-mail-mcp
npm installFind your exact Mail.app account name (usually Exchange):
npm run accountsVerify the server works end-to-end:
MAIL_ACCOUNT="Exchange" npm testClient Configuration
Claude Desktop
Run
which nodein Terminal to get your full Node binary path (e.g./opt/homebrew/bin/nodeor/usr/local/bin/node). GUI apps on macOS often do not load.zshrc, so using the full path avoidsspawn node ENOENT.Edit
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"outlook": {
"command": "/opt/homebrew/bin/node",
"args": ["/ABSOLUTE/PATH/TO/outlook-mail-mcp/src/index.js"],
"env": {
"MAIL_ACCOUNT": "Exchange"
}
}
}
}Restart Claude Desktop and click Allow when macOS asks permission to control Mail.app (
System Settings → Privacy & Security → Automation).
Cursor / Antigravity / T3 Code
Add the same mcpServers.outlook block to:
Cursor:
~/.cursor/mcp.jsonAntigravity:
~/.gemini/config/mcp_config.json
Codex
Add to ~/.codex/config.toml:
[mcp_servers.outlook]
command = "node"
args = ["/ABSOLUTE/PATH/TO/outlook-mail-mcp/src/index.js"]
[mcp_servers.outlook.env]
MAIL_ACCOUNT = "Exchange"Available Tools
Tool | Description |
| List folders and message/unread counts in the configured account |
| List recent emails (with pagination and |
| Search by query, sender, subject, date range, or body ( |
| Read headers, attachment list, and sanitized plain-text body by ID |
| Save a new draft in |
| Save a threaded reply / reply-all draft in |
| Mark a message read or unread |
Limitations
macOS only (requires
Mail.appandosascript).Plain-text drafts only (Apple deprecated HTML scripting on
outgoing messageinMail.app).No attachment download/upload yet (
read_emaillists attachment names, sizes, and MIME types).Body search (
include_body: true) scans up to the 150 most recent candidate messages to stay within IPC timeouts.
License
MIT
Available Tools
7 toolscreate_draftCreate Draft EmailA
Create and save a draft email in Mail.app under the Outlook/Exchange account. NEVER sends the email; the user reviews and sends it manually.
Inputs: cc, to, bcc, body, +2 more.
create_reply_draftCreate Reply DraftA
Create and save a properly threaded reply (or reply-all) draft to an existing email in Mail.app. NEVER sends the email; the user reviews and sends it manually.
Inputs: id (required), body, mailbox, reply_all, +1 more.
list_emailsList EmailsARead-onlyIdempotent
List recent emails in a mailbox (default: Inbox), newest first. Supports pagination and unread-only filtering.
Inputs: limit, offset, mailbox, unread_only.
list_mailboxesList MailboxesARead-onlyIdempotent
List all folders/mailboxes and message/unread counts in the configured Outlook (Exchange) account in Mail.app.
Inputs: no named parameters.
mark_as_readMark Email Read/UnreadBIdempotent
Mark an email as read (is_read=true) or unread (is_read=false).
Inputs: id (required), is_read, mailbox.
read_emailRead EmailARead-onlyIdempotent
Read the full headers, attachment list, and sanitized plain-text body of a specific email by its Mail.app numeric ID.
Inputs: id (required), mailbox.
search_emailsSearch EmailsARead-onlyIdempotent
Search emails in a mailbox (or "all" non-trash mailboxes) by query, sender, subject, unread status, or ISO date range. Matches subject/sender fast; set include_body=true to also scan up to 150 recent bodies.
Inputs: limit, query, since, until, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target clearly distinct operations: listing mailboxes, listing emails, searching, reading one email, creating drafts (new vs. threaded reply), and toggling read state. The only mild overlap is between list_emails and search_emails, since both enumerate messages in a mailbox with unread filtering, but the query/sender/date parameters make search's purpose clear. An agent can reliably pick the right tool.
All names are snake_case with a leading verb (list_, search_, read_, create_, mark_) followed by a clear noun or object. The pattern is predictable and readable throughout, with create_draft vs. create_reply_draft cleanly disambiguated by the noun.
Seven tools is well-scoped for a read-and-draft email client. Each tool covers a distinct operation with no filler, and the surface stays small enough to reason about quickly.
Core workflows—discover folders, browse, search, read full content, draft new/reply messages, and manage read state—are all covered. Minor gaps remain: no move/archive/delete, no folder creation, and no attachment download (only listing), though the read-only-plus-drafts design suggests some omissions are intentional.
Maintenance
Related MCP Connectors
Connect Gmail, iCloud Mail, Outlook, Yahoo Mail, Fastmail and other IMAP inboxes to ChatGPT, Claude and compatible AI assistants. Find emails by meaning across languages with semantic search. Ask AI to find customer conversations, summarize deadlines and draft follow-ups. Give a sales rep access to a shared outreach inbox or bring email into a compatible CRM. Share an iCloud custom-domain inbox with teammates without their own Apple ID or iCloud+ plan. Search results may be incomplete or stale; separate permissions control mail actions.
Read mail on your own domain, write drafts and tag conversations. It can't send.
All-in-one email MCP server: Gmail, Outlook, Zoho Mail and IMAP. Search, read, draft and send.
Read, search and manage iCloud Mail, Calendar and Contacts from Claude and other MCP clients.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to search, read, and inspect Apple Mail on macOS, including conversations and attachments. It can create new, reply, reply-all, or forward drafts, but cannot send or modify existing messages.MIT
- AlicenseAqualityBmaintenanceEnables searching and reading email across permitted accounts and mailboxes on macOS, plus optionally saving drafts for review, without sending or deleting messages.5MIT
- AlicenseBqualityBmaintenanceEnables AI clients to read, search, send and triage Microsoft 365 mail, manage folders, attachments and drafts, and work with calendar events and contacts by calling the same internal API the Outlook web app uses, with no Graph app registration or admin consent. Supports Azure CLI token refresh, a read-only mode, and compact normalized JSON output.40MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to read, search, organize, and draft email across all accounts configured in macOS Mail.app without passwords, API keys, or OAuth.MIT