office-outlook-mcp
v0.14.0Outlook / Microsoft 365 for Claude — triage mail, reply, answer invites and book meetings, confirmed
Values you need
| Variable | What it is | |
|---|---|---|
OUTLOOK_ACCESS_TOKEN | optional secret | Pre-obtained Outlook bearer token. Overrides the browser bridge. Power users / CI only; tokens last about 25 hours. |
OUTLOOK_DISABLE_FETCHPROXY | optional | Set to '1' to disable browser capture, requiring OUTLOOK_ACCESS_TOKEN. |
OUTLOOK_API_BASE | optional | Override the Outlook REST base URL. Defaults to https://outlook.office.com/api/v2.0. |
OUTLOOK_WS_PORT | optional | fetchproxy concentrator port used for token capture. Defaults to 37149, the fleet-wide shared port. |
OUTLOOK_WEB_HOST | optional | 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 browser bridge. |
OUTLOOK_CAPTURE_TIMEOUT | optional | Seconds to wait for the Outlook tab to make a request we can read a token from. Defaults to 30. |
OUTLOOK_TOKEN_CACHE | optional | Set to 'false' to stop caching the captured token between runs. Defaults to true. |
OUTLOOK_TOKEN_FILE | optional | Path to the cached token file. Defaults to ~/.office-outlook-mcp/token.json. |
OUTLOOK_OUTPUT_DIR | optional | Absolute directory where outlook_export_messages and outlook_export_events write their files. Defaults to ~/Downloads/office-outlook-mcp. When set, a per-call dest must be inside it. |
FETCHPROXY_WS_HOST | optional | Bind interface for the fetchproxy concentrator, a literal IP only (default 127.0.0.1). Keep on loopback; it exists for hosted deployments that run each MCP in its own network namespace. |
FETCHPROXY_IDENTITY_DIR | optional | Absolute path where the fetchproxy long-term identity keypair is stored (default ~/.fetchproxy/identity/). |
MCP_CONFIRM_MODE | optional | What outlook_send_message, outlook_reply, outlook_respond_to_invite and the other write tools do on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop): "ask-user" (default: the first call returns a preview and a confirmToken, and the model must get your approval in chat befo |
MCP_CONFIRM_ELICITATION | optional | "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can show prompts but never does. Defaults to on. |
MCP_CONFIRM_TTL_SECONDS | optional | How long a confirmToken stays valid, in seconds. Defaults to 600. |
MCP_CONFIRM_SECRET | optional secret | Signing key for confirmTokens. Random per process by default; set it only if tokens must survive a server restart. |
OUTLOOK_COPILOT_MSAL_CACHE | optional | Path to the MSAL token cache written by `opencode-m365 login`, read by outlook_ask_copilot. Defaults to ~/.config/opencode-copilot/msal-cache.json. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add office-outlook-mcp -- npx -y @chrischall/office-outlook-mcp@0.13.0Add to
claude_desktop_config.json{
"mcpServers": {
"office-outlook-mcp": {
"args": [
"-y",
"@chrischall/office-outlook-mcp@0.13.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"office-outlook-mcp": {
"args": [
"-y",
"@chrischall/office-outlook-mcp@0.13.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"office-outlook-mcp": {
"args": [
"-y",
"@chrischall/office-outlook-mcp@0.13.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.office-outlook-mcp]
command = "npx"
args = ["-y", "@chrischall/office-outlook-mcp@0.13.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: 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, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json