# mcp-outlook [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/dockndevai/mcp-outlook  
**GitHub Stars:** 0  
**npm Downloads (last month):** 587  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-outlook

## Description
Read, search, draft, send and organize Microsoft Outlook mail via Microsoft Graph, safe by default.

## Tools
Capabilities this server exposes over MCP:

- **whoami** — Return the signed-in mailbox's identity (display name, user principal name, id). Use this to confirm which mailbox the server is operating on before reading or writing.
- **list_folders** — List the mailbox's top-level mail folders with their ids, display names, and unread/total counts. Use a folder id or well-known name (inbox, sentitems, drafts, archive) with list_messages.
- **list_messages** — List messages, most recent first. Optionally scope to a folder and/or only unread messages. Returns compact summaries (id, subject, from, received, isRead, hasAttachments, preview). Fetch full bodies with get_message.
- **search_messages** — Full-text search across the mailbox (subject, body, sender, recipients) using Microsoft Graph $search. Example queries: "invoice", "from:alice@contoso.com", "subject:release". Returns compact summaries.
- **get_message** — Fetch a single message by id with its full body, recipients (to/cc/bcc), importance, and conversation id. Get ids from list_messages or search_messages.
- **list_attachments** — List a message's attachments as metadata only (id, name, contentType, size, isInline). Attachment bytes are intentionally not returned.
- **list_contacts** — List the mailbox's personal contacts (display name, email addresses, company).
- **list_drive_items** — List the files and folders in a OneDrive folder. Give a `path` relative to the drive root (e.g. "/Documents"), or an `item_id` from a previous result. Omit both for the root. Returns id, name, isFolder, size, childCount, lastModified, webUrl.
- **get_drive_item** — Fetch metadata for a single OneDrive file or folder by `path` or `item_id`.
- **search_drive_files** — Search across OneDrive for files and folders matching a query (name/content).
- **download_drive_file** — Download a OneDrive file's contents as text (capped at ~1 MB). Best for text/markdown/JSON/CSV; binary files come back as best-effort UTF-8, so prefer webUrl for those. Give `path` or `item_id`.
- **list_calendars** — List the calendars in the mailbox (id, name, owner, whether you can edit). Needs the Calendars scope.
- **list_events** — List events, newest window first. Give `start` and `end` (ISO 8601) to get a time window with recurring events expanded; omit them to list upcoming/raw events. Optionally scope to one calendar.
- **get_event** — Fetch one event by id, with its full body, attendees, recurrence and online-meeting details.
- **get_free_busy** — Check availability (free/busy) for one or more people over a time window — useful before proposing a meeting time. Returns each address's availability view for the window.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-outlook": {
    "command": "npx",
    "args": ["-y","@dockndevai/mcp-outlook"],
    "env": {
      "OUTLOOK_CLIENT_ID": ""
    }
  }
}
```

**Requires environment variables:** `OUTLOOK_CLIENT_ID` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-outlook does

mcp-outlook exposes Microsoft Graph operations for Outlook mail, OneDrive, and calendars through MCP. Mail tools can identify the active mailbox, browse folders, list or search messages, retrieve message bodies and recipients, inspect attachment metadata, and list personal contacts. Depending on the configured mode, an agent can also create drafts, send or respond to messages, mark mail read or unread, move messages, and delete them.

OneDrive support covers browsing items, retrieving file information, searching, downloading text, uploading files, creating folders, moving or renaming items, and deleting items. Calendar tools list calendars and events, retrieve event details, expand recurring events within a requested window, check free/busy status, and—when enabled—create, update, respond to, cancel, or delete events.

## How it works

The server communicates with Microsoft Graph and registers tools according to `OUTLOOK_MODE`. The default `read-only` mode exposes read operations. `read-write` adds drafts and non-destructive changes, while `admin` is required for deletion. Sending mail, replying, forwarding, and invitation-related operations also require `OUTLOOK_ALLOW_SEND`; deletion requires `OUTLOOK_ALLOW_DELETE`.

Interactive authentication is the default. On first use, a browser opens for Microsoft sign-in using authorization code with PKCE and a loopback redirect. Access and refresh tokens are cached at `~/.mcp-outlook/token.json` with restrictive permissions, and later runs refresh the token silently. Client-credentials authentication uses an app token for a specified mailbox, while `OUTLOOK_TOKEN` accepts a pre-obtained Graph bearer token.

Guarded operations can request human approval through MCP elicitation. The confirmation displays the operation and redacted arguments, and protected updates pin the target's Graph version or OneDrive ETag before execution. Clients without elicitation use the configured allow flags unless `OUTLOOK_REQUIRE_HUMAN_APPROVAL` is enabled. `OUTLOOK_DRY_RUN` validates and logs writes without applying them, and audit records are written to stderr by default.

## Setup and configuration

Install and launch the package with:

```bash
npx -y @dockndevai/mcp-outlook
```

Interactive use requires an Entra app registration configured as a public client, with `http://localhost` as a redirect URI. Set its application ID in `OUTLOOK_CLIENT_ID`. Grant delegated Graph permissions appropriate to the operations you intend to use, such as `Mail.Read`, `Mail.ReadWrite`, `Mail.Send`, and calendar permissions. Calendar access requires `Calendars.ReadWrite` for calendar changes; scopes can be narrowed with `OUTLOOK_SCOPES`.

For app-only access, set `OUTLOOK_CLIENT_SECRET`, `OUTLOOK_TENANT_ID`, and `OUTLOOK_USER`, then grant the application Mail permissions with administrator consent. `OUTLOOK_AUTH` can explicitly select interactive, client-credentials, or token authentication.

## Limitations and notes

Attachment tools return metadata only, not attachment bytes. Microsoft account scopes and roles remain the final authority, so Graph can reject an operation even when the local mode permits it. Folder allowlists and protected-folder settings can restrict where messages are modified. Move, upload, send, invitation, cancellation, and deletion operations may require client-side elicitation or the corresponding safety flags.

_Full upstream README: https://allmcps.com/mcp/mcp-outlook/readme_

