outlook-personal-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-personal-mcpShow my upcoming calendar events"
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-personal-mcp
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.
Features
Mail — list, search, read, send, reply, forward, move, copy, flag, mark read/unread, delete (soft or hard)
Drafts — create, update, attach local files, send
Folders — list, create, rename, delete
Calendar — list calendars, list/search/get/create/update/delete events, respond to invites (accept/decline/tentative), check free/busy availability
Per-user OAuth — you register your own free Azure app; the server authenticates with your Microsoft account and caches the token locally
Local stdio — runs as a child process of the MCP host; your mailbox data never transits a third party
Related MCP server: Claude-Read-Outlook-Attachments
Prerequisites
Python 3.10 or later
uv(fast Python package and tool runner)A personal Microsoft account (Outlook.com, Hotmail, Live, etc.)
A free Azure app registration (see below — takes about three minutes)
Azure App Registration
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.Readis included by default;offline_accessis 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.
Install & First-Time Login
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.
OUTLOOK_MCP_CLIENT_ID=<your-app-client-id> \
uvx --from git+https://github.com/salahawad/outlook-personal-mcp outlook-personal-mcp loginConfigure Claude Code
Add the server to your project's .mcp.json (or ~/.claude/.mcp.json for all projects):
{
"mcpServers": {
"outlook": {
"command": "uvx",
"args": ["--from", "git+https://github.com/salahawad/outlook-personal-mcp", "outlook-personal-mcp"],
"env": { "OUTLOOK_MCP_CLIENT_ID": "<your-app-client-id>" }
}
}
}Alternatively, use the CLI: claude mcp add.
Configure Codex
Add the server to ~/.codex/config.toml:
[mcp_servers.outlook]
command = "uvx"
args = ["--from", "git+https://github.com/salahawad/outlook-personal-mcp", "outlook-personal-mcp"]
env = { OUTLOOK_MCP_CLIENT_ID = "<your-app-client-id>" }Configuration (Environment Variables)
Variable | Required | Default | Description |
| Yes | — | Azure app's Application (client) ID |
| No |
| MSAL authority URL (change only if you move to a work/school tenant) |
| No |
| Path to the MSAL token cache file |
| No |
| Only files under this directory can be read by |
| No |
| Maximum bytes allowed for local attachment reads and attachment downloads |
| No |
| Set to |
| No |
| Set to |
Tools
Account
Tool | Description |
| Return the signed-in user's Microsoft account profile |
Tool | Description |
| List messages (newest first); optionally filter by folder or unread-only |
| Full-text search across the entire mailbox (Graph |
| Get a single message; optionally include the full body |
| List a message's attachments (id, name, size, content type) |
| Download an attachment to a path under |
| Send an email |
| Reply to a message ( |
| Forward a message to recipients with an optional comment |
| Move a message to another folder |
| Copy a message to another folder |
| Mark a message read or unread |
| Flag or unflag a message |
| Delete a message (moves it to Deleted Items; reversible) |
| Permanently delete a message (irreversible). Only available when |
Folders
Tool | Description |
| List mail folders with unread and total message counts |
| Create a mail folder, optionally nested under a parent |
| Rename a mail folder |
| Delete a mail folder (moves it to Deleted Items) |
Drafts
Tool | Description |
| Create a draft message (not sent) |
| Update a draft's subject and/or body |
| Attach a local file (a regular, non-symlink file under |
| Send an existing draft |
Calendar
Tool | Description |
| List the user's calendars |
| List events; if |
| Search events by free text |
| Get one event including body, attendees, and online meeting link |
| Create a calendar event with optional attendees and online meeting |
| Update fields on an existing event (only provided fields change) |
| Delete/cancel a calendar event |
| Respond to a meeting invite: |
| Get free/busy availability for a list of people over a time window |
Permanent Delete
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.
Security
Token cache is a credential. The file at
~/.config/outlook-personal-mcp/token_cache.bincontains a long-lived refresh token. It is written with mode600, but treat it like a password — never commit it, never share it, and store it on an encrypted volume.Data stays local. The server runs as a child process of Claude Code / Codex over stdio. Your mailbox content is passed directly between the MCP host and the Microsoft Graph API; no third-party relay is involved.
Revocation. To revoke access, delete the token cache file and/or navigate to https://account.microsoft.com/permissions to remove the Azure app's consent. You can also delete the Azure app registration entirely from the portal.
File paths.
download_attachmentwrites only underOUTLOOK_MCP_FILE_ROOTand refuses to overwrite existing files.add_attachmentreads only regular, non-symlink files underOUTLOOK_MCP_FILE_ROOT. Relative paths are resolved under that root; absolute paths outside it (and any path traversing a symlink) are rejected. Both tools enforceOUTLOOK_MCP_MAX_FILE_BYTES. Review these paths before confirming any tool call that touches the filesystem.
Development
git clone https://github.com/salahawad/outlook-personal-mcp
cd outlook-personal-mcp
uv venv && uv pip install -e ".[dev]"
uv run pytest
uv run ruff check .Privacy
This server runs entirely on your machine and sends data only between your machine and Microsoft's Graph API — no third-party relay, no telemetry, and the maintainer receives nothing. OAuth tokens are cached locally at ~/.config/outlook-personal-mcp/token_cache.bin (mode 600). See PRIVACY.md for the full privacy policy.
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
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/salahawad/outlook-personal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server