Skip to main content
Glama
outlook-mcp

outlook-mcp

outlook-mcp

Let Cursor, Claude Desktop, or OpenCode read and send your Outlook mail — locally on Windows.

This is a small MCP server. It talks to the Outlook app already on your PC (COM/MAPI).
It does not use Microsoft Graph, Azure, or cloud APIs.

Windows + Outlook Desktop only. macOS/Linux are not supported.


What you get

After setup, your AI can:

  • list mailboxes and folders

  • summarize the inbox (unread + recent)

  • search, open, reply, forward, and send mail

  • mark, move, delete messages

  • save attachments to disk

Typical flow the model should use:

  1. list_mailboxes — see accounts

  2. inbox_summary — quick overview

  3. get_mail / search_mail — details

  4. reply_mail or send_mail — act


Related MCP server: MCP Outlook

Requirements

Need

Notes

Windows

Required

Outlook Desktop

Signed in with your mailbox

Node.js 18+

nodejs.org

Outlook may show a security prompt the first time another app accesses mail — allow it.


Install

git clone https://github.com/YOUR_USER/outlook-mcp.git
cd outlook-mcp
npm install
npm run build

Optional: set a default mailbox (otherwise Outlook’s default account is used):

$env:OUTLOOK_MAILBOX = "you@example.com"

Quick check (Outlook only, no AI)

powershell -NoProfile -STA -ExecutionPolicy Bypass `
  -File .\powershell\Invoke-Outlook.ps1 `
  -Action list_mailboxes

If you see JSON with "ok": true and your accounts, the bridge works.


Connect an AI client

  1. Build the project (npm run build).

  2. Copy an example from examples/.

  3. Replace C:\\ABS\\PATH\\TO\\outlook-mcp with your real folder path.

  4. Restart the client.

Use the full path to node.exe and dist\\server.js (recommended on Windows).

Cursor

Settings → MCP, or project file .cursor/mcp.json — see examples/cursor.mcp.json.

Claude Desktop

Edit claude_desktop_config.json:

  • Often: %APPDATA%\Claude\claude_desktop_config.json

  • MSIX/Store installs may instead use:
    %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

Template: examples/claude_desktop_config.json.
Fully quit Claude Desktop (tray icon too), then start it again.

OpenCode CLI

Project or global opencode.json — see examples/opencode.json.

opencode mcp list

You want outlook-mcp = connected.


Tools (cheat sheet)

Tool

When to use it

list_mailboxes

First call — which accounts exist?

list_folders

Where can mail go?

inbox_summary

Fast unread + recent overview

read_folder / read_inbox

List messages with filters

search_mail

Find by text / from / to / subject / date

get_mail

Full body of one message (entryId)

list_conversation

Same thread

send_mail

New email

create_draft

Save without sending

reply_mail

Reply (optional replyAll, or draft with send: false)

forward_mail

Forward

mark_mail

Read / unread / categories

move_mail

Move to a folder

delete_mail

Delete

save_attachments

Write attachments to a folder

list_actions

Debug: which bridge actions are loaded


How it works

AI client  →  outlook-mcp (Node, stdio)  →  PowerShell  →  Outlook COM/MAPI  →  mailbox

Nothing is sent to Azure for mail access. The AI host only starts this local process.

Project layout

src/                  Node MCP server
  mcp/tools.ts        ← add new MCP tools here
powershell/
  Invoke-Outlook.ps1  loader + shared helpers
  lib/*.ps1           ← add new Outlook actions here
examples/             client config templates

Add your own feature

  1. Create e.g. powershell/lib/60-myfeature.ps1 and register an action.

  2. Add a matching tool in src/mcp/tools.ts.

  3. Run npm run build.

Details: CONTRIBUTING.md.


Troubleshooting

Problem

What to try

Bridge JSON error / Outlook COM unavailable

Start Outlook once, sign in, retry

Wrong mailbox

Set OUTLOOK_MAILBOX or pass mailbox on the tool

Claude MCP not loading

Edit the MSIX config path above; restart completely

node not found

Use C:\Program Files\nodejs\node.exe in the config

Tools timeout

Increase client timeout (OpenCode example uses 60000)

Empty inbox results

Confirm the account appears in list_mailboxes


Security

  • Local stdio only — do not publish this as an open network server without auth.

  • send_mail, delete_mail, and save_attachments have real side effects.

  • Prefer drafts (create_draft, or send: false on reply/forward) while testing.

More: SECURITY.md.


License

MIT — see LICENSE.

Available Tools

17 tools
create_draftB

Create and save a draft (does not send).

Inputs: cc, to, bcc, body, +3 more.

delete_mailB

Delete a message (moves to Deleted Items in typical Outlook profiles).

Inputs: entryId (required), permanent.

forward_mailB

Forward a message. Set send=false to save a draft.

Inputs: to (required), entryId (required), body, send, +1 more.

get_mailA

Get a single message including full body by EntryID.

Inputs: entryId (required).

inbox_summaryA

Smart inbox overview: unread total + recent and unread message summaries (no full bodies). Prefer this before read_folder/get_mail.

Inputs: limit, mailbox.

list_actionsA

List all PowerShell bridge actions currently loaded (useful when extending the server).

Inputs: no named parameters.

list_conversationB

List messages in the same conversation (by conversationId or seed entryId) within a folder.

Inputs: limit, folder, entryId, mailbox, +1 more.

list_foldersB

List folders in a mailbox (name, path, item/unread counts).

Inputs: mailbox, maxDepth.

list_mailboxesA

List Outlook accounts and stores available via COM/MAPI. Call this first to discover SMTP addresses.

Inputs: no named parameters.

mark_mailC

Mark a message read/unread and/or set categories.

Inputs: entryId (required), unread, categories.

move_mailC

Move a message to another folder in the mailbox.

Inputs: folder (required), entryId (required), mailbox.

read_folderC

Read messages from a folder with filters (unread, sinceDays, attachments).

Inputs: limit, folder, mailbox, sinceDays, +3 more.

read_inboxC

Alias for read_folder on Inbox.

Inputs: limit, mailbox, sinceDays, unreadOnly, +2 more.

reply_mailA

Reply or reply-all to a message. Set send=false to save a draft instead.

Inputs: entryId (required), body, send, mailbox, +2 more.

save_attachmentsC

Save all attachments of a message to a local directory.

Inputs: entryId (required), directory (required).

search_mailC

Search messages with structured filters: free-text query and/or from, to, subject, unread, attachments, sinceDays.

Inputs: to, from, limit, query, +7 more.

send_mailC

Send a new email via Outlook COM (SendUsingAccount).

Inputs: to (required), subject (required), cc, bcc, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools have clearly distinct read/write/search purposes, and descriptions clarify overlaps. However, read_inbox is explicitly an alias for read_folder, and inbox_summary/read_folder/search_mail/get_mail all read mail but with different scopes that could occasionally confuse selection.

    Naming Consistency4/5

    Strong verb_noun convention throughout (list_, read_, search_, get_, send_, create_, reply_, forward_). Minor deviations like inbox_summary (noun-based) and read_inbox being an alias rather than a distinct operation slightly break the pattern.

    Tool Count4/5

    17 tools is slightly heavy but reasonable for a full Outlook mail client covering discovery, folders, reading, searching, sending, and attachments. Most tools earn their place, though read_inbox as an alias adds a marginal duplicate.

    Completeness4/5

    Mail lifecycle is well covered: discovery, folder listing, reading, searching, single-message retrieval, flagging, moving, deleting, attachments, sending, drafting, replying, forwarding, and conversation listing. Minor gaps include draft editing and folder creation, but core mail workflows are complete.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage Microsoft Outlook emails, calendar events, contacts, and folders via COM automation.
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Reads and searches your local Microsoft Outlook desktop mailbox via COM, supporting folder listing, message/thread retrieval, attachment saving, bulk export, and draft creation without sending, requiring no OAuth or admin consent.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to securely read, search, draft, and send Outlook emails, manage calendar events, and access mailbox folders through a local MAPI connection to Windows Outlook, with human-in-the-loop safeguards.
      9
      1
      MIT