office-outlook-mcp
MCP server for Outlook / Microsoft 365 — mail, folders, calendar, contacts and tasks, with confirmation-gated sending.
This project was developed and is maintained by AI (Claude Code). Use at your own discretion.
How it authenticates
Outlook Web holds its access token in memory and sends it as
Authorization: Bearer …. This server snapshots that header from your
signed-in browser tab through the fetchproxy
bridge, then talks to https://outlook.office.com/api/v2.0 with ordinary
server-side requests.
The browser is needed only to mint the token (~25h), never to make a call. That is the whole design: no Azure app registration, no admin consent, and no browser on the request path.
Tokens are cached at ~/.office-outlook-mcp/token.json (0600), so a restart
does not re-capture.
Install
npm i -g @chrischall/office-outlook-mcp
Requires the ContextMint Bridge browser extension, installed from
its releases:
in Chrome, unzip the chrome build and load it unpacked
(chrome://extensions → Developer mode → Load unpacked). Safari is not
available yet — it will ship inside the ContextMint app, which has no public
download — so use Chrome for now.
ContextMint Bridge is the fetchproxy browser extension under its new name, from
the same maintainer — fetchproxy's own README
(#extension) points to it.
Its source is public at
nullnet-app/contextmint-bridge:
build it yourself, or check a release zip against the .sha256 file published
beside it (shasum -a 256 -c contextmint-bridge-chrome-<version>.zip.sha256).
The extension, fpx and this server are compatible by fetchproxy protocol
number (currently protocol 4), not by matching package versions. Keep the
bridge and fpx current — a mismatch fails with an error naming both protocol
numbers. Also install @fetchproxy/cli:
npm i -g @fetchproxy/cli
The first capture prints a 6-digit pair code to approve in the ContextMint Bridge popup; the grant persists.
Pairing
The server declares one host to the bridge — outlook.cloud.microsoft, or
OUTLOOK_WEB_HOST — and the same scope on every capture, so once approved it
neither re-pairs nor asks for wider grants. The bridge keeps one relay tab on
that host open (it reuses yours if you already have Outlook open).
Before 0.8.2 it also declared outlook.office.com. A signed-in tab there
redirects to outlook.cloud.microsoft, so the bridge opened another background
tab on every capture. Upgrading changes the declared domain set, so the bridge
asks to pair once more.
If you run the bridge in more than one browser or browser profile, each one is a
different extension identity, and the server trusts only the one it paired
with. Keep the bridge enabled in the browser you pair with (or re-pair
deliberately with FETCHPROXY_TRUST_NEW_EXTENSION=1 after switching browsers).
Install in opencode
opencode reads MCP servers from opencode.json (project) or
~/.config/opencode/opencode.json (global):
{
"mcp": {
"servers": {
"outlook": {
"type": "local",
"command": ["npx", "-y", "@chrischall/office-outlook-mcp"]
}
}
}
}
That one file serves opencode 2 and current opencode 1 — verified live on 2.0.11, 1.18.31 and 1.18.28, which all connect from it.
Two things worth knowing, both measured rather than assumed:
- Never carry both config shapes in one file. Older opencode 1 wants the
servers directly under
mcp("mcp": { "outlook": { … } }), and the temptation is to write both so either version finds one. Do not: given a sibling key besideservers, opencode 2 parses the file — it still shows up inopencode debug config— and then reports "No MCP servers configured". No error, no warning, every server silently gone. - An opencode 1 old enough to reject
serverssays so loudly (Configuration is invalid at …), so if you see that, switch that machine to the flat shape rather than combining them.
opencode 2 talks to a background service, so opencode reload before
opencode mcp list after editing config.
Configuration
Everything is optional — with nothing set, the server captures from the browser.
| variable | purpose |
|---|---|
OUTLOOK_ACCESS_TOKEN | Pre-obtained bearer token. Overrides the bridge. Power users / CI only; expires in ~25h and cannot be auto-refreshed. |
OUTLOOK_DISABLE_FETCHPROXY | 1 to disable browser capture, requiring OUTLOOK_ACCESS_TOKEN. |
OUTLOOK_API_BASE | Override the REST base URL. Defaults to https://outlook.office.com/api/v2.0. |
OUTLOOK_WS_PORT | fetchproxy concentrator port. Defaults to 37149, the fleet-wide shared port. |
OUTLOOK_WEB_HOST | Which Outlook Web host your signed-in tab is on: outlook.cloud.microsoft (default) or outlook.office.com for a tenant still on the legacy app. Only this one host is declared to the bridge — see Pairing. |
OUTLOOK_CAPTURE_TIMEOUT | Seconds to wait for the tab to make a readable request. Defaults to 30. |
OUTLOOK_TOKEN_CACHE | false to stop caching the token between runs. |
OUTLOOK_TOKEN_FILE | Path to the cached token. Defaults to ~/.office-outlook-mcp/token.json. |
OUTLOOK_OUTPUT_DIR | Absolute directory outlook_export_messages and outlook_export_events write into, and where a local install saves the files outlook_get_attachment cannot return inline. Defaults to ~/Downloads/office-outlook-mcp (for attachments, only when ~/Downloads exists). When set, a per-call dest must be inside it. See Bulk export. |
Tools
Read — outlook_list_folders, outlook_list_messages,
outlook_get_message, outlook_list_unread_messages, outlook_list_attachments,
outlook_get_attachment, outlook_list_events, outlook_get_event,
outlook_list_calendars, outlook_find_meeting_times,
outlook_get_schedule, outlook_get_profile,
outlook_get_mailbox_settings, outlook_list_contacts, outlook_list_people,
outlook_list_categories, outlook_list_tasks, outlook_list_rules
Write (ask you to confirm first — see Confirmations) —
outlook_send_message, outlook_create_draft, outlook_update_draft, outlook_send_draft, outlook_mark_read,
outlook_update_message, outlook_move_message, outlook_move_messages, outlook_batch, outlook_confirm, outlook_create_event,
outlook_update_event, outlook_respond_to_invite, outlook_delete_event,
outlook_reply, outlook_create_rule, outlook_update_rule,
outlook_delete_rule, outlook_set_auto_reply, outlook_create_folder,
outlook_update_folder (rename or move), outlook_delete_folder
(permanent: the folder does not go to Deleted Items).
Some skip the confirmation because nothing reaches anyone else:
outlook_create_draft (the draft stays in Drafts until you send it with
outlook_send_draft or from Outlook), outlook_create_folder (an empty folder is easily deleted), outlook_reply with draftOnly: true (the reply stays in Drafts),
outlook_respond_to_invite with sendResponse: false, and
outlook_delete_event on your own appointment with no attendees or on a
meeting the organizer already cancelled (in each, only your calendar
changes).
Meetings — outlook_find_meeting_times asks Outlook's Scheduling
Assistant for slots when everyone is free, and outlook_get_schedule shows
each person's busy blocks. Each suggested slot carries createEventArgs,
which outlook_create_event accepts unchanged. outlook_create_event
attaches a Microsoft Teams meeting by default and returns its join link; pass
teamsMeeting: false to leave it off. outlook_update_event never changes how
people join a meeting unless asked: pass teamsMeeting: true to add a Teams
meeting to an event that lacks one, and the confirmation says so in plain
words. Only the organizer
can update a meeting. outlook_respond_to_invite accepts, tentatively accepts
or declines an invite, by its message id or its event id.
outlook_delete_event deletes an event you organize — one occurrence by the
occurrence's id, or the whole series by its series master's id — and sends
any attendees a cancellation; for an invite you received it refuses and points
you at declining instead. outlook_list_events and outlook_get_event show
what that decision needs in every view: MyResponse, ResponseRequested,
IsOrganizer, IsCancelled, Type (SingleInstance, Occurrence, Exception or
SeriesMaster), ShowAs and IsAllDay, plus SeriesMasterId in the full view.
Rules and automatic replies — outlook_list_rules shows inbox rules in the
order Outlook applies them. outlook_create_rule needs at least one condition
and one action; a rule that forwards or redirects mail names those recipients in
its confirmation, because it keeps sending mail out until removed.
outlook_update_rule sends only what you pass, and conditions, exceptions
or actions replace that whole group. outlook_set_auto_reply changes only
what you pass, and its confirmation shows the exact text that will go out,
including stored text you did not change. Read the current auto-reply with
outlook_get_mailbox_settings.
Moving many messages — outlook_move_messages moves every message in a
folder (default the inbox) that matches a filter — sender addresses (from),
receivedBefore / receivedAfter, isRead, subjectContains, minus
exceptSubjectContains — to another folder, under one confirmation for the
whole set. It only moves, never deletes. At least one condition is required. The
preview shows how many match, the filter, the destination and a sample of 10; it
moves at most max per call (default 1000, at most 5000), newest first, and
reports the rest as remaining, so a second call moves the next set. Each call
reads every matching message in the folder so remaining is exact, which takes
longer in a very large folder. To run an inbox rule over mail
that arrived before it, pass the rule's senders as from, its exceptions as
exceptSubjectContains, and markRead: true if the rule marks mail read. Every
call lists the folder afresh: if the matching mail changed before you approved,
you get a new preview instead of a move. One failed message does not stop the
rest; the result counts moved, failedCount (first 20 listed), markedRead
and any unknown (timed out — may have moved; check before retrying).
Several changes at once — outlook_batch runs up to 100 mailbox writes
(outlook_move_message, outlook_mark_read, outlook_update_message,
outlook_create_rule, outlook_update_rule, outlook_delete_rule,
outlook_create_folder, outlook_update_folder) under one preview and one
approval, in order. An op can take an earlier op's output through refs: create
a folder, then a rule that files into it with
{"tool": "outlook_create_rule", "args": {…}, "refs": {"moveToFolder": "0.id"}}.
It stops at the first failure and has no rollback — the result says which ops
were applied, which failed and which never ran. Nothing that emails anyone
(sends, replies, invites, events, drafts, automatic replies) can ride in a batch.
outlook_confirm finishes any previewed write with its confirmToken alone, so
the arguments need not be sent twice.
Export — outlook_export_messages (mail) and outlook_export_events
(calendar) write JSONL or Markdown files, optionally with attachments, and
return only where they are; see Bulk export.
Copilot — outlook_ask_copilot puts a question to Microsoft 365 Copilot
with your mailbox as context; see Microsoft 365 Copilot.
Diagnostics — outlook_healthcheck
Every read tool takes view: compact | full | raw, defaulting to compact.
Three reads also take view: "brief" — the one-line-per-item rung mcp-host's
context groups ask in: outlook_list_events and outlook_list_tasks gain it
beside their existing values, and outlook_list_unread_messages gains an
optional view whose only value is brief (omit it for the triage batch).
Both additions are optional, so existing calls are unchanged. A brief answer
is the untrusted envelope described below, with the lines as data (one string
per item, title — <ISO date | no date> — <status>, at most 120 chars); it
fetches no message body or invite and carries no nextLink/next_from, so
when Outlook has another page the last line is the note -- more (a line
starting -- is a note, not an item) — call again without view: "brief"
to get the link and follow it.
Mutating tools write nothing until you confirm (bar the cases above)
— see Confirmations. The preview shows exactly what would be sent
(action, method, path and body). (outlook_create_event first reads the
mailbox time zone, so its preview can name the zone it would book in; that is
the one read a preview makes.)
Mail and event text is written by other people, so outlook_list_messages,
outlook_get_message, outlook_list_unread_messages, outlook_get_attachment,
outlook_list_events, outlook_get_event, outlook_find_meeting_times,
outlook_get_schedule, outlook_export_messages, outlook_export_events and
outlook_ask_copilot wrap every result (all views) in an untrusted-content
envelope — untrusted_content: true plus a note telling the model to treat
the text as data, never instructions (a view: raw record that carries its
own untrusted_content/note key is nested under data, so it cannot
overwrite the envelope). outlook_list_tasks's brief view is wrapped the same
way. outlook_reply returns a sent reply's subject — the
original sender's text — inside the same envelope.
On a client that cannot show a confirmation prompt, the confirmToken is still
something the model passes back itself, so keep MCP_CONFIRM_MODE=ask-user
(the default) and approve each preview in chat — or use a client that asks you
before running non-read-only tools — as the real guard on outbound sends.
Microsoft 365 Copilot
outlook_ask_copilot sends a question to Microsoft 365 Copilot and returns
its answer. Copilot searches your own mail, calendar and files server-side
(WorkSearch) and writes a reply — so this is for synthesis across many
messages ("what needs my attention first", "summarise the thread with X") rather
than fetching one message, which the read tools already do. Follow-up calls
continue the same conversation; pass newConversation: true to start fresh. Each
call uses one of a per-conversation quota, reported back, and the answer comes
back in the untrusted-data envelope like every other mail-derived read.
Setup — a one-time sign-in. Unlike the mail token (captured from your
browser), the Copilot token is obtained by MSAL and refreshes silently, but the
first sign-in needs a browser with MFA. Use the sibling CLI
opencode-m365-copilot:
npm install -g opencode-m365-copilot
opencode-m365 login # one-time browser sign-in; writes an MSAL cache
This MCP reads that cache and refreshes from it. Override its location with
OUTLOOK_COPILOT_MSAL_CACHE if you keep it elsewhere.
What it talks to. M365 Copilot has no public API; this speaks the same
undocumented SignalR-over-WebSocket protocol (substrate.office.com) that
Microsoft's own Office web clients use, with the Office web Copilot client id.
It reaches only Copilot on your own tenant and changes nothing in the mailbox,
but it is reverse-engineered and may break when Microsoft changes it — and your
organisation's acceptable-use policy still applies. Use at your discretion.
Triage loop
An agent can work through new mail end to end without opening Outlook:
- Read the batch —
outlook_list_unread_messagesreturns the unread messages in a folder (default inbox), newest first, each with its plain-text body, in one call. It does not mark anything read. Each item has akind:mail,meetingRequest,meetingCancelledormeetingResponse; requests and cancellations also carry the linkedevent(time, organizer, your current response) — or, when the meeting is no longer on your calendar (already declined, cancelled or deleted), ahintsaying there is nothing to respond to.toandcclist at most 20 addresses, withtoCount/ccCountwhen there are more. - Act on each item —
- an invite:
outlook_respond_to_invitewith the message id andaccept,tentativeordecline(and an optional comment). Once you respond, Outlook moves the invite message to Deleted Items under a new id, so an answered invite is already filed — skip steps 3 and 4 for it (its old id would 404); - a message that needs an answer:
outlook_reply(reply,replyAllorforward), ordraftOnly: trueto leave it in Drafts for you to review.cc/bccadd people in the same call — onreplyAllthe thread's existing Cc is kept, not replaced. To change an existing draft's Cc without retyping it, useoutlook_update_draftwithaddCc/removeCc; - a request for a meeting:
outlook_find_meeting_timesfor the attendees, then pass the chosen slot'screateEventArgstooutlook_create_event; - an attachment to read:
outlook_get_attachment.
- an invite:
- File it —
outlook_update_messageflags, categorises (names fromoutlook_list_categories) and marks read up to 50 messages in one call;outlook_move_messagemoves one to another folder, andoutlook_move_messagesmoves every message matching a filter at once. - Mark it handled —
outlook_mark_read(orisRead: trueonoutlook_update_message) on the plain mail you handled, so the nextoutlook_list_unread_messagesreturns only what is still new. Answered invites are already out of the inbox (see step 2).
Replies, forwards, invite responses and new meetings reach other people, so
each asks you to confirm first — except a reply saved with draftOnly: true
(it stays in Drafts until you send it) and an invite response with
sendResponse: false (only your calendar changes; the organizer is not told).
Paging from a time
outlook_list_unread_messages and outlook_list_messages also page oldest first
from a point in time: pass from as an ISO 8601 UTC time
(2026-10-01T00:00:00Z). The result carries next_from — pass it back
unchanged as from for the next page — and has_more. To backfill, start
from an old time and keep passing next_from until has_more is false; then
keep polling with the last next_from to pick up new mail (an empty page
returns the same position). Messages that share a timestamp are never skipped
or repeated across pages, and marking mail read between pages loses nothing.
from cannot be combined with nextLink, sinceHours, search or skip.
Bulk export
outlook_export_messages exports mail and outlook_export_events exports
the calendar in bulk, thousands of records at a time, and none of their text
enters the conversation. The server pages the mailbox (or calendar) and writes
the records to files. The tool returns only a small manifest: where the files
are, their sizes, the record and attachment counts, the date span, and
has_more plus a cursor. Have the agent read the files with shell tools
(jq, grep, rg, head) rather than opening them whole.
- Mail arguments:
folder(a well-known name such asinboxorsentitems, or a folder id;allexports the whole mailbox; defaultinbox),sinceanduntil(ISO 8601),search(full-text, spans the mailbox). Mail is exported oldest first. - Event arguments:
sinceanduntil(ISO 8601, both required, at most two years apart) andcalendar(a calendar id; default, the default calendar). Events come from the calendar view, so a recurring series is expanded into its individual occurrences. Times are wall-clock times in the mailbox's time zone, named on each record astime_zone. - Both:
format(jsonl, the default, ormarkdown),attachments(defaultfalse),dest,cursor,max_items(default 5000, max 50000) andbudget_seconds(default 90, max 600). - Files:
part-0001.jsonlholds one JSON record per message (id, conversation id, subject, from, to/cc/bcc, dates, flags, categories, web link and the full plain-text body). Its first line is an_exportheader that names the source, account, arguments and an untrusted-content note. An event record carries the id, iCal UID, type and series id, subject, start, end, time zone, location, organizer, attendees with their responses, your response, show-as, categories, the join link and the full plain-text body.format: "markdown"writespart-0001.md, a readable transcript (one section per message or event), instead; its bodies are read as HTML and converted to Markdown, so lists, tables, emphasis and links survive.manifest.jsonlists the counts and any errors, and the files: on disk every part's files (it is rewritten as each part finishes); in a blob zip the files in that zip. - Attachments: with
attachments: true, each file attachment of up to 50 MB is saved asattachments/<short id>/<name>(the name sanitized), and the record lists its attachments, each with its relativepath, or withskippedand the reason. Attached Outlook items (a forwarded email or event), cloud-file links (OneDrive/SharePoint), larger files and failed downloads are skipped. One bad attachment never fails the export. - Resuming: each call stops at
max_itemsorbudget_seconds, whichever comes first. Whilehas_moreis true, passcursorback unchanged. The next call continues the same export aspart-0002,part-0003and so on. With attachments on, the budget is checked between small groups of records, so a stop can fall inside a page; the cursor resumes at the next record. If Outlook refuses the credential (including while downloading an attachment), or keeps returning 429 after three Retry-After waits, the call keeps what it already wrote and returns the cursor. Re-authenticate, then resume.
Where the files go depends on how the server runs:
| mode | when | location in the result |
|---|---|---|
disk | any local (stdio) install, the default | an absolute local directory, <dir>/outlook-mail-<YYYYMMDD-HHmmss>/ (or outlook-events-…); each file entry carries its absolute path |
blob | hosted on mcp-host, which sets both MCP_BLOB_BASE_URL and MCP_BLOB_SIGNING_KEY | a signed download link to one zip per call (part-NNNN.zip, which includes manifest.json), valid for 1 hour (url_expires_at) |
On disk, <dir> is the per-call dest, else OUTLOOK_OUTPUT_DIR, else
~/Downloads/office-outlook-mcp. A dest must be inside OUTLOOK_OUTPUT_DIR
when that is set. Otherwise it must be inside ~/Downloads, ~/Documents or
~/Desktop. A resumed cursor's directory is checked against the same roots
again.
Confirmations
Every write asks you to confirm before anything is sent or changed (except a
new draft, a draft-only reply and a silent invite response — see
Tools). A client
that can show a confirmation prompt (Claude Code) shows one. On a client that
cannot, the first call does nothing and returns a confirmation-required
preview plus a confirmToken; only a repeat call with that token performs the
write. The token is single-use, expires, and is bound to the exact arguments —
change anything between the two calls and it is refused (DRAFT_CHANGED) with
a fresh preview. Instead of repeating the call, the token alone can go to
outlook_confirm. outlook_batch asks once for its whole list of writes —
including an outlook_create_folder, which on its own does not ask.
| variable | default | |
|---|---|---|
MCP_CONFIRM_MODE | ask-user | What a write does on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop). ask-user: two steps — the first call does nothing and returns a preview plus a token, and the model must get your approval in chat before calling again with it. auto: the same two steps, but the model may use the token after reviewing the preview itself. refuse: writes are refused on such clients. A client that can show prompts (Claude Code) always gets the real prompt, unless MCP_CONFIRM_ELICITATION=off. An unrecognised value is treated as refuse. |
MCP_CONFIRM_ELICITATION | on | off never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE behaviour. Set it for a client that says it can show prompts but never does (the write hangs — opencode 2.0.x). Any other value is treated as on, with a warning on stderr. |
MCP_CONFIRM_TTL_SECONDS | 600 | How long a token stays valid. |
MCP_CONFIRM_SECRET | random per process | Signing key; set it only if tokens must survive a server restart. On mcp-host the host supplies a stable per-child key (MCP_HOST_CONFIRM_SECRET) and spent tokens are recorded under MCP_DATA_DIR, so an approval survives an idle restart. |
Things worth knowing
-
Fields are PascalCase (
ReceivedDateTime,IsRead). This is the Outlook REST API, not Graph — a Graph snippet silently returns nothing. -
outlook_get_messagereturns a plain-text body by default, measured 9.4× smaller than the HTML.format: "markdown"keeps the structure (lists, tables, emphasis, links with their text) at about the same size — on a live Jira notification, 5.2 KB of Markdown against 5.9 KB of plain text and 14.5 KB of HTML — andformat: "html"returns sanitised HTML. Both drop text the sender hid (display:nonepreheaders and the like).html: truestill returns the HTML exactly as Outlook stores it, andview: "raw"is Outlook's untouched record.outlook_list_unread_messagestakesbodyFormat: "markdown"too. -
Writing, pass
format: "markdown"tooutlook_send_message,outlook_create_draft,outlook_update_draftoroutlook_reply: the text is sent as formatted HTML (bold, lists, links, headings, quotes, code), and is cheaper for an agent to write than HTML. Raw HTML in it is escaped. A formatted reply is drafted, filled in and sent in the same one call. -
outlook_list_eventsuses the calendar view, which expands recurring series./me/eventsdoes not, which is why it is not exposed as-is. -
Time zones are Windows names (
Eastern Standard Time), not IANA. -
searchandunreadOnlycannot be combined; the API rejects$searchalongside$filter, so the tool refuses before making a doomed request. -
Moving a message assigns it a new id.
-
outlook_list_eventsreturns times in the mailbox's own time zone unlesstimeZoneoverrides it. The API itself defaults to UTC, which silently reads as a four-hour error on an Eastern mailbox. -
Contact phone fields are
MobilePhone1, not Graph'sMobilePhone. The v2.0 Contact type rejects the Graph name with a 400. -
outlook_get_attachmentdecodes a text-like file up to 5 MB and returns an image up to 5 MB inline. Anything else, up to 50 MB, comes back as the file: a signed download link valid for 1 hour when hosted (mcp-host setsMCP_BLOB_BASE_URLandMCP_BLOB_SIGNING_KEY), or a new0600file underOUTLOOK_OUTPUT_DIR(else~/Downloads/office-outlook-mcp) on a local install. A hosted server never writes to its own disk; nobody in your session could open the path. -
outlook_get_attachmentalso converts a PDF, Excel workbook (.xlsx/.xlsm) or PowerPoint deck (.pptx) so the model can read it — hosted clients cannot open a download link themselves.convertpicks how:auto(default): PDF → Markdown (## Page N), plus page images when the PDF has little text (a scan); Excel → one CSV per sheet; PowerPoint → per-slide Markdown (titles, bullets, tables, speaker notes) plus the pictures embedded in each slide.text: PDF → Markdown only.images: PDF → page images only (workbooks and decks convert asauto).none: no conversion — the file itself, as before.
The converted content is the sender's text, so each Markdown or CSV part is its own untrusted-content envelope (
{ untrusted_content, note, part, mimeType, truncated?, text }); images follow as image blocks. The metadata block closes the result withconverted: { format, count, parts, notes }. The original is still handed over as a link or saved file, never inlined as well; if that hand-over fails, the converted content is still returned withdeliveryError. Conversion reads files up to the 50 MB download cap (the 5 MB inline cap does not apply) and caps output at 200 KiB of text and 8 MiB of images. A corrupt file falls back to the plain answer withconversion_error. PDF page images need the native@napi-rs/canvas, whichnpxinstalls; the.mcpbbundle ships without it, so there a scanned PDF gets its text plus a note that page images are unavailable.
Upgrading
To the next release
outlook_get_attachment used to return PDFs, Office files and anything over
5 MB as metadata only, so the file was unreachable. It now hands the bytes over.
The existing fields (name, contentType, size, kind, inlined, text,
textTruncated, hint) are unchanged. New fields appear when bytes are
delivered:
via:image,resource,linkordisk.downloadUrlanddownloadExpiresAt: hosted. Treat the link as a secret; anyone holding it can download until it expires.path: local, where the file was saved.deliveryNote: why that route was chosen, when it was not the obvious one.
A PDF, Excel or PowerPoint attachment is now also converted to Markdown,
CSV or images (convert, default auto; none restores the old answer). The
result then has several content blocks — a leading envelope, one envelope per
converted text part (the text is in its text field), any images, and the
metadata block last — rather than one. Such a file is downloaded to
convert even where the original cannot be handed over.
outlook_move_messages now names folders: the preview and result (including a
"nothing matches" result) show destination (and the preview source) as the
folder's display name, with the id in destinationId / sourceId. It now lists
the folder newest first, so which max messages move is the same in the preview
and the confirmed call.
A local install with a ~/Downloads folder (or OUTLOOK_OUTPUT_DIR set) now
saves such attachments to disk instead of returning metadata only. Without
either, the old metadata-only answer remains. The hint text on that path now
names OUTLOOK_OUTPUT_DIR.
The lightweight alternative
If you only need Outlook access from Claude Code on this machine, the
skills/outlook-fpx access skill in this repo does the same reads with fpx +
curl and no server at all. The MCP earns its keep when you want typed tools,
confirmation-gated writes, or reach from claude.ai.
Development
npm install
npm run build
npm test # typecheck + suite
npm run test:coverage # CI's gate
Request shapes are pinned in docs/OUTLOOK-API.md, all
verified against a live mailbox.
License
MIT