outlook-desktop-mcp
Click on "Install 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-desktop-mcpSend an email to the team about the update"
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-desktop-mcp
Turn your running Outlook Desktop into an MCP server. No Microsoft Graph API, no Entra app registration, no OAuth tokens — just your local Outlook and the authentication you already have.
Any MCP client (Claude Code, Claude Desktop, etc.) can then send emails, manage your calendar, create tasks, handle attachments, and more — all through your existing Outlook session.
Quick Start
1. Install (requires Python 3.13+):
pip install outlook-desktop-mcp2. Register with Claude Code:
claude mcp add outlook-desktop -- outlook-desktop-mcp3. Open Outlook and start a Claude Code session. That's it — tools are available immediately.
Related MCP server: outlook-classic-mcp
How It Works — Platform Routing
When the server starts, it checks which operating system it is running on and takes one of two paths:
outlook-desktop-mcp starts
|
entrypoint.py detects OS
(Platform.WINDOWS |
Platform.DARWIN)
|
set_backend(backend, platform)
/ \
backends/win/ backends/mac/
ComBackend AppleScriptBackend
OutlookBridge AppleScriptBridge
| |
33 tools registered 26 tools registered
| |
OUTLOOK.EXE via Microsoft Outlook
COM / STA thread via osascript
| |
Exchange / M365 Exchange / M365Both paths use your locally running Outlook app and its existing authenticated session. No cloud credentials, no Graph API tokens — the server inherits whatever account Outlook is signed into.
Why two backends?
Windows Outlook (Classic) exposes a rich COM automation interface — the Outlook Object Model (MSOUTL.OLB). This has been the standard way to programmatically control Outlook on Windows for over 20 years. It provides deep access to mail rules, categories, MAPI properties, and the full folder hierarchy.
Mac Outlook does not support COM. Instead, it exposes an AppleScript dictionary that can be driven via the osascript command. The AppleScript interface covers the core operations — email, calendar, tasks — but does not expose rules, categories, or certain advanced MAPI features. This is a limitation of what Microsoft chose to include in Outlook for Mac's scripting dictionary, not a limitation of this project.
The server uses a single server.py with a unified tool surface. Each tool is an async def decorated with @mcp.tool(). Tools that require platform-specific APIs are conditionally registered in set_backend() — only the backend methods they call differ. MCP clients see the same interface regardless of platform.
Requirements
Windows
Outlook Desktop (Classic) — the
OUTLOOK.EXEthat comes with Microsoft 365 / Office. The new "modern" Outlook (olk.exe) does not support COMPython 3.13+ (x64 or ARM64)
Outlook must be running when the MCP server starts
Both x64 and ARM64 Windows are supported. On ARM64, all dependencies (pywin32, mcp, pydantic-core, cryptography, cffi, rpds-py) have prebuilt win_arm64 wheels — see the ARM64 install notes below.
Outlook "Programmatic Access" security prompts
When the MCP server first touches Outlook's COM API, Outlook may show a dialog: "A program is trying to access email address information stored in Outlook" (the Object Model Guard / Programmatic Access prompt). This is Outlook's protection against malicious automation.
You have three options:
Click "Allow access for 10 minutes" every time you start a session. Fine for casual use.
Get the antivirus status to "Valid" in File > Options > Trust Center > Trust Center Settings > Programmatic Access. When that line reads
Valid, the "Never warn me about suspicious activity" radio becomes selectable and the prompts go away. On most personal machines with current Defender this works out of the box.Apply the registry policy in
docs/suppress-outlook-oom-prompts.reg. From an elevated PowerShell or Command Prompt (Win+X → Terminal (Admin)), run:reg import "C:\path\to\outlook-desktop-mcp\docs\suppress-outlook-oom-prompts.reg"Then fully quit Outlook (check Task Manager for stray
OUTLOOK.EXEprocesses) and reopen it. This writesAdminSecurityMode=3and approves allPromptOOM*categories underHKLM\Software\Policies\Microsoft\Office\16.0\Outlook\Security, which Outlook honors regardless of AV status. On Intune/MDM-managed corporate devices,HKCU\Software\Policies\...\Outlookis locked and the HKLM keys may be overwritten on next policy sync — ifreg importfails or the prompts come back, ask IT to push the equivalent settings via Group Policy.
Windows 11 ARM64 note: Defender does not register with Outlook's
IOfficeAntiVirusinterface on ARM64, so Trust Center shows "Antivirus status: Invalid" and the "Never warn me about suspicious activity" radio stays greyed out even when Outlook is launched as Administrator. Option 2 is unavailable on ARM64; thereg importfrom option 3 is the only durable suppression path.
macOS
Microsoft Outlook for Mac — version 16.x or later
Python 3.13+
Outlook must be running when the MCP server starts
Required macOS permissions
The first time a tool runs, macOS will show two permission prompts that you must approve:
Privacy & Automation — a system dialog asks: "python3 wants to control Microsoft Outlook". Click Allow to let the server send AppleScript commands to Outlook.
Accessibility — to read your Exchange/M365 inbox, the server uses macOS UI scripting (System Events). This requires Accessibility access for
python3:Open System Settings > Privacy & Security > Accessibility
Find python3 in the list (it appears after the first prompt)
Toggle it on
Without Accessibility enabled, calendar, tasks, and local folder tools will work, but listing Exchange inbox messages will return empty results.
Both permissions are one-time setup — macOS remembers them for future sessions.
Available Tools by Platform
Tool | Windows | macOS | Description |
| yes | yes | Send an email with To/CC/BCC, plain text or HTML body |
| yes | yes | Save an email as a draft without sending (plain text or HTML body) |
| yes | yes | List recent emails from any folder, with optional unread filter |
| yes | yes | Read full email content by entry ID or subject search |
| yes | yes | Full-text search across email subjects and bodies |
| yes | yes | Reply or reply-all, plain text or HTML body, preserving the conversation thread |
| yes | yes | Save a reply as a draft without sending (plain text or HTML body) |
| yes | yes | Mark a specific email as read |
| yes | yes | Mark a specific email as unread |
| yes | yes | Move an email to Archive, Trash, or any folder |
| yes | yes | Browse the folder hierarchy with item counts |
Calendar
Tool | Windows | macOS | Description |
| yes | yes | List upcoming events within a date range |
| yes | yes | Read full event details by entry ID |
| yes | yes | Create a personal calendar appointment |
| yes | yes | Create a meeting and send invitations to attendees |
| yes | yes | Modify an existing event's subject, time, location, etc. |
| yes | yes | Delete an appointment or cancel a meeting |
| yes | — | Accept, decline, or tentatively accept a meeting invite |
| yes | yes | Search calendar events by keyword within a date range |
Tasks
Tool | Windows | macOS | Description |
| yes | yes | List pending or completed tasks, sorted by due date |
| yes | yes | Read full task details including body and completion status |
| yes | yes | Create a new task with subject, due date, importance |
| yes | yes | Mark a task as complete |
| yes | yes | Remove a task |
Attachments
Tool | Windows | macOS | Description |
| yes | yes | List all attachments on an email or calendar event |
| yes | yes | Download an attachment to a local directory |
Out of Office
Tool | Windows | macOS | Description |
| yes | yes | Turn Out of Office auto-reply on or off |
| yes | — | Check whether Out of Office auto-reply is on or off |
Categories, Rules, Accounts (Windows only)
These tools rely on COM-specific APIs (MAPI property accessors, the Rules object model, and the Categories collection) that Outlook for Mac does not expose through AppleScript.
Tool | Windows | macOS | Description |
| yes | — | List all configured Outlook accounts |
| yes | — | List all available color categories in Outlook |
| yes | — | Set or clear categories on any email, event, or task |
| yes | — | List all mail rules with enabled/disabled status |
| yes | — | Enable or disable a mail rule by name |
Total: 33 tools on Windows, 26 tools on macOS. (Some Windows-only capabilities — accounts, rules, categories, meeting response, OOF status query — are not exposed on macOS.)
Architecture Details
Windows: COM Backend (backends/win/)
The Windows backend lives in backends/win/. The bridge (bridge.py) runs all Outlook COM operations on a dedicated STA thread.
All Outlook COM operations run on a dedicated thread using the Single-Threaded Apartment (STA) model, as required by COM. The async MCP event loop dispatches tool calls to this thread via a queue and awaits results, keeping COM threading rules respected and the MCP protocol non-blocking.
MCP tool call (async)
→ bridge.call(func, args)
→ queued to STA thread
→ func(outlook, namespace, args) executes on COM thread
→ result returned via threading.Event
→ JSON response back to MCP clientEach tool's inner function receives the live Outlook.Application and MAPI.Namespace COM objects and works directly with the Outlook Object Model — GetItemFromID, CreateItem, Items.Restrict with DASL filters, and so on.
macOS: AppleScript Backend (backends/mac/)
The macOS backend lives in backends/mac/. The bridge (bridge.py) executes each tool call as a stateless osascript subprocess.
Each tool call builds an AppleScript string and executes it as a subprocess via osascript. There is no persistent connection — every call is stateless.
MCP tool call (async)
→ build AppleScript string
→ asyncio.create_subprocess_exec("osascript", "-e", script)
→ parse stdout text into structured data
→ JSON response back to MCP clientEach tool constructs a single AppleScript that fetches all needed data in one osascript call (no per-message subprocess loops). Results come back as delimited text, which the server parses into the same JSON structure the Windows server produces.
Key differences from Windows:
Entry IDs on macOS are numeric (e.g.
42), not hex strings. They identify items within their folder context.Folder references use AppleScript's locale-independent keywords (
inbox,sent items,drafts,deleted items) rather than localized folder names.Search uses AppleScript's
whoseclause (e.g.messages whose subject contains "query") instead of DASL filters.User input is escaped for safe embedding in AppleScript strings to prevent script injection.
Install from Source
Windows (x64)
git clone https://github.com/Aanerud/outlook-desktop-mcp.git
cd outlook-desktop-mcp
python -m venv .venv
.venv\Scripts\activate
pip install uv
uv sync
python .venv\Scripts\pywin32_postinstall.py -installRegister from source using the launcher script:
claude mcp add outlook-desktop -- powershell.exe -Command "& 'C:\path\to\outlook-desktop-mcp\outlook-desktop-mcp.cmd' mcp"Windows (ARM64)
On ARM64, use uv for reliable dependency resolution with prebuilt wheels:
git clone https://github.com/Aanerud/outlook-desktop-mcp.git
cd outlook-desktop-mcp
& "C:\Program Files\Python313-arm64\python.exe" -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install uv
uv sync
python .venv\Scripts\pywin32_postinstall.py -installRegister from source the same way as x64:
claude mcp add outlook-desktop -- powershell.exe -Command "& 'C:\path\to\outlook-desktop-mcp\outlook-desktop-mcp.cmd' mcp"macOS
git clone https://github.com/Aanerud/outlook-desktop-mcp.git
cd outlook-desktop-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install uv
uv syncRegister from source:
claude mcp add outlook-desktop -- /path/to/outlook-desktop-mcp/.venv/bin/python -m outlook_desktop_mcpUsage Examples
Once registered, just talk to Claude naturally:
"Show me my 10 most recent inbox emails"
"Read the email from Taylor about MLADS"
"Send an email to alice@example.com about the project update"
"Draft an email to bob@example.com about the meeting agenda"
"What's on my calendar this week?"
"Create a meeting with bob@example.com tomorrow at 2pm for 30 minutes"
"Save the attachment from that email to my Downloads folder"
"Create a task to review the quarterly report, due Friday, high importance"
"Mark that email as read and move it to archive"
"Set Out of Office for next week"
"Reply to that email and save it as a draft"
Windows-only examples:
"What categories do I have? Set this email to 'Follow-up'"
"List my mail rules"
"Am I set as Out of Office?"
"List my Outlook accounts"
Why Not Microsoft Graph?
Microsoft Graph | outlook-desktop-mcp | |
Entra app registration | Required | Not needed |
Admin consent | Required for mail permissions | Not needed |
OAuth token management | You handle refresh tokens | Not needed |
Tenant configuration | Required | Not needed |
Works offline / cached | No | Yes (reads from local cache) |
Setup time | 30-60 minutes | 2 minutes |
Auth requirement | Your own OAuth flow | Outlook is open |
Project Structure
outlook-desktop-mcp/
src/outlook_desktop_mcp/
entrypoint.py # Platform detection → routes to correct server
server.py # Unified MCP tool surface (33 Win / 26 Mac)
platform.py # Platform StrEnum + current_platform()
instructions.py # build_instructions(platform)
models.py # Pydantic response models
backends/
base/ # Backend ABC, BackendError, BridgeBase
win/ # Windows: COM bridge, ComBackend, errors, formatting, _types
mac/ # macOS: AppleScript bridge, AppleScriptBackend, helpers
tools/
_folder_constants.py # Outlook enums and constants (shared)
tests/
test_email_com.py # Email COM validation
test_email_mcp.py # Email MCP test
test_calendar_com.py # Calendar COM validation
test_calendar_mcp.py # Calendar MCP test
test_extras_com.py # Tasks/attachments/categories/rules/OOF COM test
test_extras_mcp.py # Tasks/attachments/categories/rules/OOF MCP test
outlook-desktop-mcp.cmd # Windows launcher script
pyproject.tomlContributing
See CONTRIBUTING.md for the branching strategy and development setup.
Versioning: This project uses CalVer (YYYY.M.N) — the VERSION file is the single source of truth, read by uv-dynamic-versioning at build time. CI auto-increments the patch number on every push to main.
Dev tasks: The project uses mise for task management. Run mise install to set up, then mise run all to lint, typecheck, and test.
License
See LICENSE file.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for email + calendar via classic Outlook on Windows (COM automation). No Azure app registration, no OAuth — it just drives the Outlook desktop client you're already signed into.48MIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-aware agents to interact with the classic Outlook desktop client for mail, calendar, contacts, tasks, and Out-of-Office settings via the COM API, without Azure or OAuth.23MIT
- AlicenseNot gradedqualityCmaintenanceComprehensive MCP server for local Microsoft Outlook automation, providing 64 tools across email, calendar, contacts, tasks, notes, and Exchange features on both Windows and macOS.1MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that connects to Windows Classic Outlook to automate email organization, search, and reply draft creation without sending emails.114MIT
Related MCP Connectors
Outlook Mail (Microsoft 365) MCP Pack
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jr2804/outlook-desktop-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server