outlook-mcp-readonly
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-mcp-readonlyShow me my unread emails from the inbox."
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-mcp-readonly
A read-only Outlook MCP server for Windows. Gives Claude Desktop, Claude Code, or any Model Context Protocol (MCP) client safe, local access to your classic desktop Outlook mailbox and calendar — no Azure/Entra app registration, no OAuth consent screen, no cloud relay, and no tool anywhere in this codebase capable of sending, deleting, or modifying anything in your inbox.
If you searched for an Outlook MCP server, an MCP server for Outlook email, or a way to connect Claude to Outlook on Windows without handing over write access to your mailbox — this is that project.
Table of contents
Related MCP server: Gmail MCP Server
Why read-only, specifically
Most community Outlook MCP servers bundle send/delete/move tools because they're built for full inbox automation. This one deliberately does not. There is no tool in this codebase capable of sending, deleting, moving, or otherwise modifying anything in your mailbox. That's not a config flag you can flip on — the code to do those things simply isn't written.
If you want to verify that yourself before trusting it with your inbox:
grep -n "\.Send(\|\.Delete(\|\.Move(\|\.Save(\|UnRead = \|\.Display(" src/outlook_readonly_mcp/*.pyEvery match should be inside a comment or docstring, not a live call. That's intentional — it's meant to be a two-minute audit for anyone reviewing this before pointing it at their real mailbox.
The only thing this server writes anywhere is save_attachment, which saves
an attachment's bytes to a folder on your local disk — it doesn't touch
Outlook's data at all.
Requirements
This project is intentionally narrow-scoped. Read this section before installing — most setup issues come from one of these constraints.
Windows only. There is no macOS or Linux support, and none is planned — the server depends on Windows COM automation (
pywin32), which doesn't exist on other platforms.Classic desktop Outlook only (
OUTLOOK.EXE, sometimes called "Outlook (classic)" or "Outlook for Windows — legacy"). The new, Store-distributed "New Outlook" (olk.exe) is not supported — it has no COM object model to automate. If your Outlook shows a "Try the new Outlook" toggle in the top-right corner, make sure it's switched off.Python 3.10+, installed on the same Windows machine.
Outlook must already be running and signed in. This server attaches to your existing, already-authenticated Outlook session — it does not manage its own login, so there's no username/password/OAuth flow to configure.
Both Outlook and your MCP client (Claude Desktop or Claude Code) need to be open at the same time. There's no background or always-on mode.
Tools exposed
Tool | What it does |
| Lists all mail folders with item/unread counts |
| Lists recent email metadata (subject, sender, date, unread flag) in a folder |
| Searches subject (and optionally body) for text |
| Full details of one email by EntryID, including body and attachment list |
| Attachment filenames/sizes for an email |
| Saves one attachment to a local folder (disk write only, not an Outlook write) |
| Unread count + newest unread subjects for a folder — good for a daily check-in |
| Calendar events (including recurring instances) in a date window |
Installation
Run these from Command Prompt (cmd.exe) or PowerShell on Windows:
git clone https://github.com/r-rohit/outlook-mcp-readonly.git
cd outlook-mcp-readonly
python -m venv .venvActivate the virtual environment — the command differs by shell:
:: cmd.exe
.venv\Scripts\activate.bat# PowerShell
.venv\Scripts\Activate.ps1If PowerShell refuses to run the activation script with a "running scripts is disabled on this system" error, run
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypassfirst, then re-run the activation command.
Then install the package:
pip install -e .If pip install succeeds but Outlook automation still fails with a COM
registration error, run pywin32's post-install script once (this registers
the COM support DLLs that pip doesn't always wire up automatically):
python .venv\Scripts\pywin32_postinstall.py -installConfigure Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"outlook-readonly": {
"command": "C:\\path\\to\\outlook-mcp-readonly\\.venv\\Scripts\\python.exe",
"args": ["-m", "outlook_readonly_mcp.server"]
}
}
}Restart Claude Desktop. With Outlook also open, try asking:
"What unread emails do I have in my inbox, and do any of them mention a deadline?" "What's on my calendar for the rest of this week?"
Configure Claude Code (CLI)
claude mcp add outlook-readonly -- C:\path\to\outlook-mcp-readonly\.venv\Scripts\python.exe -m outlook_readonly_mcp.serverPowerShell gotcha:
claude mcp add ... -- <command> <args>is known to silently mis-parse arguments after--when run from PowerShell (an upstream Claude Code CLI bug on Windows). If the server fails to connect after adding it this way, use one of these workarounds instead:
Run the
claude mcp addcommand fromcmd.exeinstead of PowerShell, orEdit
%USERPROFILE%\.claude.jsondirectly and add the server under the top-levelmcpServerskey using the samecommand/argsshape as the Claude Desktop config above.
Verify it's working
Claude Desktop: open a new chat and confirm the tool icon shows
outlook-readonlyconnected, or just ask an Outlook-related question.Claude Code: run
/mcpinside a session —outlook-readonlyshould show as connected.
How it works
Claude Desktop / Claude Code → this MCP server (local Python, stdio)
→ win32com (pywin32) → OUTLOOK.EXE (already running) → your mailboxEverything runs on your machine. No network calls are made by this server itself (Outlook's own sync with Exchange/M365 happens independently, as it always does).
Troubleshooting / exceptions
Symptom / error message | Cause | Fix |
| Running on macOS/Linux, or | This server only runs on Windows. Re-run |
| Outlook isn't running, isn't installed, or you're on the new Outlook ( | Launch classic Outlook and sign in first. If you see a "Try the new Outlook" toggle, switch it off, then restart Outlook. |
| The | Call |
COM registration / |
| Run |
Server shows as disconnected in Claude Desktop/Code | Outlook isn't open, or the | Confirm Outlook is running, and that the |
Claude Code CLI silently drops arguments after | Known PowerShell parsing bug in the Claude Code CLI. | See the PowerShell gotcha note under Configure Claude Code (CLI). |
Antivirus/EDR blocks the COM automation call | Some corporate endpoint security tools flag COM automation of Office apps by default. | Ask your IT/security team to allow COM automation for this script, or run it under a policy exception — this repo can't work around endpoint security by design. |
Limitations
Windows + classic Outlook only (no macOS/Linux, no "new Outlook").
Only works while both Outlook and your MCP client (Claude Desktop or Claude Code) are open — there's no background/always-on piece, by design (matches the read-only, on-demand scope of this project).
Reads the default mail store only; additional shared mailboxes or secondary accounts added to the same Outlook profile aren't explicitly tested.
No contacts/tasks tools yet (mail + calendar only) — contributions welcome.
FAQ
Does this work with the new Outlook (olk.exe) or Outlook on the web (OWA)?
No. Neither exposes the COM object model this server relies on. You need
classic desktop Outlook.
Does this work on macOS or Linux?
No — Windows only. pywin32/COM automation of Outlook is a Windows-only
mechanism.
Can Claude send, delete, or reply to emails with this? No. There is no such tool in this codebase, and that's intentional — see Why read-only, specifically.
Do I need to register an Azure/Entra app or set up OAuth? No. This server talks to Outlook via local COM automation, not the Microsoft Graph API, so there's no cloud app registration, client secret, or OAuth consent screen involved.
Does it work with Exchange/Microsoft 365 accounts, or only local PST files? Either — it reads through whatever account(s) your already-signed-in Outlook client has configured, regardless of whether the mailbox is on Exchange/M365 or a local PST/OST.
Contributing
Issues and PRs welcome. If you're adding a tool, it must not call .Send(),
.Delete(), .Move(), .Save(), or set .UnRead/.Display() on any
Outlook item — that's the one hard rule of this project. Anything that only
reads COM properties (or writes to local disk, like save_attachment) is
fair game.
License
MIT — see LICENSE.
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.
Latest Blog Posts
- 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/r-rohit/outlook-mcp-readonly'
If you have feedback or need assistance with the MCP directory API, please join our Discord server