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. It is listed as
ContextMint Bridge in the Chrome Web Store and, for Safari, the App Store;
a build from
its releases
loaded unpacked is the fallback.
ContextMint Bridge is the fetchproxy browser extension under its new name, from
the same maintainer. Its source is public at
nullnet-app/contextmint-bridge.
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 an 8-digit (XXXX-XXXX) 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 beside servers, opencode 2 parses the file — it still shows up
in opencode debug config — and then reports "No MCP servers configured".
No error, no warning, every server silently gone.
- An opencode 1 old enough to reject
servers says 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.