office-outlook-mcp

v0.14.0
io.github.chrischall/office-outlook-mcp Checked 2 days ago Published 1 day ago

Outlook / Microsoft 365 for Claude — triage mail, reply, answer invites and book meetings, confirmed

Values you need

VariableWhat it is
OUTLOOK_ACCESS_TOKENoptional secret Pre-obtained Outlook bearer token. Overrides the browser bridge. Power users / CI only; tokens last about 25 hours.
OUTLOOK_DISABLE_FETCHPROXYoptional Set to '1' to disable browser capture, requiring OUTLOOK_ACCESS_TOKEN.
OUTLOOK_API_BASEoptional Override the Outlook REST base URL. Defaults to https://outlook.office.com/api/v2.0.
OUTLOOK_WS_PORToptional fetchproxy concentrator port used for token capture. Defaults to 37149, the fleet-wide shared port.
OUTLOOK_WEB_HOSToptional 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_TIMEOUToptional Seconds to wait for the Outlook tab to make a request we can read a token from. Defaults to 30.
OUTLOOK_TOKEN_CACHEoptional Set to 'false' to stop caching the captured token between runs. Defaults to true.
OUTLOOK_TOKEN_FILEoptional Path to the cached token file. Defaults to ~/.office-outlook-mcp/token.json.
OUTLOOK_OUTPUT_DIRoptional 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_HOSToptional 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_DIRoptional Absolute path where the fetchproxy long-term identity keypair is stored (default ~/.fetchproxy/identity/).
MCP_CONFIRM_MODEoptional 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_ELICITATIONoptional "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_SECONDSoptional How long a confirmToken stays valid, in seconds. Defaults to 600.
MCP_CONFIRM_SECREToptional secret Signing key for confirmTokens. Random per process by default; set it only if tokens must survive a server restart.
OUTLOOK_COPILOT_MSAL_CACHEoptional 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.0
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. 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, ….
  4. 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