Full-control MCP server for a personal Outlook.com mailbox and calendar (Microsoft Graph).
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that gives Claude Code and Codex full control of a personal Outlook.com mailbox and calendar via the Microsoft Graph API. Written in Python, speaks the MCP stdio transport, and uses per-user device-code OAuth so your credentials never leave your machine. MIT licensed.
uv (fast Python package and tool runner) β required at runtime: the server is launched via uvx, and it is not bundled by your MCP host (including Claude Desktop). Install it with curl -LsSf https://astral.sh/uv/install.sh | sh (macOS/Linux) or powershell -c "irm https://astral.sh/uv/install.ps1 | iex" (Windows).Go to https://portal.azure.com β Microsoft Entra ID β App registrations β New registration.
Name it anything you like (e.g. outlook-personal-mcp). Under Supported account types choose Personal Microsoft accounts only. No redirect URI is needed. Click Register.
Open the app β Authentication β Advanced settings β Allow public client flows β set to Yes β Save. (This is required for the device-code login flow used by this server.)
Go to API permissions β Add a permission β Microsoft Graph β Delegated permissions, then add:
Mail.ReadWriteMail.SendCalendars.ReadWrite(User.Read is included by default; offline_access is requested automatically at runtime β you do not need to add it.)
Copy the Application (client) ID from the Overview page. This is your OUTLOOK_MCP_CLIENT_ID.
If you have the az CLI, the whole registration is one command:
The printed appId is your OUTLOOK_MCP_CLIENT_ID. (The GUIDs are the Microsoft Graph delegated scopes Mail.ReadWrite, Mail.Send, and Calendars.ReadWrite.) Note: a brand-new app registration takes a few minutes to propagate to Microsoft's consumer login endpoint β if your first login fails with AADSTS700016 ("application β¦ not found"), wait a few minutes and retry.
Run the one-time interactive login. It prints a short URL and a code; open the URL in any browser, enter the code, approve the permissions, and you are done. The token is cached at ~/.config/outlook-personal-mcp/token_cache.bin (mode 600) and refreshed automatically on subsequent runs β you will not be prompted again unless the refresh token expires or is revoked.
To run the latest unreleased code from source instead of the PyPI release, swap
mcp-outlook-personalfor--from git+https://github.com/salahawad/outlook-personal-mcp mcp-outlook-personal.
Add the server to your project's .mcp.json (or ~/.claude/.mcp.json for all projects):
Alternatively, use the CLI: claude mcp add.
Add the server to ~/.codex/config.toml:
This server is also packaged as a Claude Desktop extension (.mcpb). Build the bundle from a checkout:
Then in Claude Desktop open Settings β Extensions, install the dist/mcp-outlook-personal.mcpb file, and enter your Azure App Client ID (plus any optional settings) when prompted.
Requirement: the extension launches the server with
uvx mcp-outlook-personal, souvmust be installed and on yourPATHβ Claude Desktop does not bundle it (see Prerequisites). Codex and other stdio hosts use the config above instead of the.mcpb.
| Variable | Required | Default | Description |
|---|---|---|---|
OUTLOOK_MCP_CLIENT_ID | Yes | β | Azure app's Application (client) ID |
OUTLOOK_MCP_AUTHORITY | No | https://login.microsoftonline.com/consumers | MSAL authority URL (change only if you move to a work/school tenant) |
OUTLOOK_MCP_TOKEN_CACHE | No | ~/.config/outlook-personal-mcp/token_cache.bin | Path to the MSAL token cache file |
OUTLOOK_MCP_FILE_ROOT | No | ~/.local/share/outlook-personal-mcp/files | Only files under this directory can be read by add_attachment or written by download_attachment |
OUTLOOK_MCP_MAX_FILE_BYTES | No | 3145728 | Maximum bytes allowed for local attachment reads and attachment downloads |
OUTLOOK_MCP_ALLOW_PERMANENT_DELETE | No | false | Set to true to enable the permanent_delete tool (irreversible β see below) |
OUTLOOK_MCP_DEBUG | No | false | Set to true to log each Graph request's method, URL, and HTTP status code to stderr. Never logs tokens or message content. |
| Tool | Description |
|---|---|
whoami | Return the signed-in user's Microsoft account profile |
| Tool | Description |
|---|---|
list_messages | List messages (newest first); optionally filter by folder or unread-only |
search_messages | Full-text search across the entire mailbox (Graph $search) |
get_message | Get a single message; optionally include the full body |
list_attachments | List a message's attachments (id, name, size, content type) |
download_attachment | Download an attachment to a path under OUTLOOK_MCP_FILE_ROOT (refuses to overwrite an existing file) |
send_mail | Send an email |
reply | Reply to a message (reply_all to reply to everyone) |
forward | Forward a message to recipients with an optional comment |
move_message | Move a message to another folder |
copy_message | Copy a message to another folder |
mark_read | Mark a message read or unread |
flag_message | Flag or unflag a message |
delete_message | Delete a message (moves it to Deleted Items; reversible) |
permanent_delete | Permanently delete a message (irreversible). Only available when OUTLOOK_MCP_ALLOW_PERMANENT_DELETE=true |
| Tool | Description |
|---|---|
list_folders | List mail folders with unread and total message counts |
create_folder | Create a mail folder, optionally nested under a parent |
rename_folder | Rename a mail folder |
delete_folder | Delete a mail folder (moves it to Deleted Items) |
| Tool | Description |
|---|---|
create_draft | Create a draft message (not sent) |
update_draft | Update a draft's subject and/or body |
add_attachment | Attach a local file (a regular, non-symlink file under OUTLOOK_MCP_FILE_ROOT) to a draft |
send_draft | Send an existing draft |
| Tool | Description |
|---|---|
list_calendars | List the user's calendars |
list_events | List events; if start/end (ISO 8601) are given, returns that time window |
search_events | Search events by free text |
get_event | Get one event including body, attendees, and online meeting link |
create_event | Create a calendar event with optional attendees and online meeting |
update_event | Update fields on an existing event (only provided fields change) |
delete_event | Delete/cancel a calendar event |
respond_event | Respond to a meeting invite: accept, decline, or tentative |
find_availability | Get free/busy availability for a list of people over a time window |
The permanent_delete tool bypasses the Deleted Items folder and removes a message irreversibly. It is disabled by default β when OUTLOOK_MCP_ALLOW_PERMANENT_DELETE is not set (or is false), the tool is not registered with the MCP server at all and will not appear in the tool list.
To enable it, set OUTLOOK_MCP_ALLOW_PERMANENT_DELETE=true in the server's environment block in your .mcp.json / config.toml. Only do this if you understand the consequences: there is no undo and no Recoverable Items path for personal accounts.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/outlook-personal-mcp)<a href="https://allmcps.com/mcp/outlook-personal-mcp"><img src="https://allmcps.com/api/badge/outlook-personal-mcp?style=directory" alt="Outlook Personal MCP on AllMCPs" /></a>