Skip to main content
Glama
axlook-mcp

axlook-mcp

by flol3622

axlook-mcp

Let Claude work with New Outlook for Mac: mail, drafts and calendars, without Graph, tokens or app registrations

Claude Code plugin MCP Outlook Platform Tools Sends mail License

axlook (Accessibility + Outlook) is a local MCP server that drives the Outlook app you already have open, through the macOS Accessibility API. It sees every account Outlook shows, including Exchange and Microsoft 365 mailboxes whose organization only allows the Outlook app.

/plugin install axlook-mcp --marketplace flol3622/axlook-mcp

🌟 At a Glance

New Outlook for Mac hides cloud accounts from AppleScript: its scripting dictionary sees zero Exchange accounts and an empty Inbox. Microsoft has cancelled its plan to bring AppleScript back. Here is how the usual options compare:

AppleScript / JXA servers

Microsoft Graph servers

Local cache readers

axlook

Works with New Outlook

❌ Legacy Outlook only

βœ…

βœ…

βœ…

Needs app registration or tokens

No

❌ Tenant consent, OAuth

No

βœ… No, uses Outlook's own sign-in

Works where only the Outlook app is allowed

βœ…

❌ Usually blocked

βœ…

βœ… Yes, it is Outlook

Read mail and full source

βœ…

βœ…

⚠️ Sync window only

βœ…

Attachments

βœ…

βœ…

❌

βœ…

Move, flag, read/unread

βœ…

βœ…

❌ Read-only

βœ…

Calendar create/edit/delete

βœ…

βœ…

❌

βœ…

Permission needed

Automation

Cloud consent

❌ Full Disk Access

βœ… Accessibility

Can send mail by accident

Possible

Possible

No

βœ… Never: drafts only


Related MCP server: Apple Mail MCP

πŸ“¦ Install

You need:

  • macOS 13 or later

  • New Outlook for Mac running, with its language set to English

  • Node.js 18+ or Bun (Claude Code users nearly always have one of them)

On Claude Code 2.1.275 or later, one command:

/plugin install axlook-mcp --marketplace flol3622/axlook-mcp

On older versions, or to browse the marketplace first:

/plugin marketplace add flol3622/axlook-mcp
/plugin install axlook-mcp@axlook

The plugin bundles:

  • the MCP server, a prebuilt universal helper and a single-file server, so there's nothing to compile or npm install;

  • two skills: outlook tells Claude to use these tools for every mail and calendar question, and conventions sets up your personal rules (see Personal conventions).

Update with /plugin update axlook-mcp. Third-party marketplaces don't auto-update.

Grant Accessibility (once)

macOS gives the permission to the app that runs Claude, not to axlook itself:

  1. Open System Settings β†’ Privacy & Security β†’ Accessibility.

  2. Enable the app that runs Claude: Terminal, iTerm, Visual Studio Code, Cursor or Claude.

  3. Restart that app.

  4. Ask Claude to run outlook_status. It reports trusted: true once permission is in place.

Accessibility lets that app control others. Grant it only to apps you trust, and remove it if you stop using axlook.

Other MCP clients (Claude Desktop, Cursor, VS Code, …)

Clone the repository, then point your client at the bundled launcher:

git clone https://github.com/flol3622/axlook-mcp ~/axlook-mcp
{
  "mcpServers": {
    "axlook": { "command": "/bin/sh", "args": ["/Users/YOU/axlook-mcp/scripts/start.sh"] }
  }
}

If the package is published on npm, npx works too, with no clone needed:

claude mcp add axlook -s user -- npx -y axlook-mcp

πŸ›οΈ Architecture

flowchart LR
    subgraph CLIENT["MCP client"]
        A["Claude Code Β· Claude Desktop Β· Cursor Β· …"]
    end

    subgraph SERVER["dist/axlook-mcp.js (Node or Bun)"]
        B["24 MCP tools, one call at a time"]
        C["Outlook UI logic: mail Β· drafts Β· calendar"]
        D[".eml parsing, safe attachment saving"]
    end

    subgraph HELPER["dist/axlook-helper (Swift, universal)"]
        E["Generic AX primitives: find Β· press Β· set value/date Β· menus Β· type Β· paste Β· focus"]
    end

    subgraph OUTLOOK["Microsoft Outlook (New Outlook)"]
        F["Main window Β· reading pane Β· Save As panel Β· Move dialog Β· event peeks and forms"]
        G[("Exchange Β· Microsoft 365 Β· Gmail Β· IMAP: every account Outlook shows")]
    end

    A -- "stdio JSON-RPC" --> B
    B --> C
    C -- "JSON lines" --> E
    C --> D
    E -- "Accessibility API" --> F
    F --- G

    style SERVER fill:#f8f9fa,stroke:#3178c6,stroke-width:2px,color:#000
    style HELPER fill:#f8f9fa,stroke:#f05138,stroke-width:2px,color:#000
    style OUTLOOK fill:#e8f1fb,stroke:#0078d4,stroke-width:2px,color:#000
  • The Swift helper is generic. It knows nothing about Outlook, only the Accessibility API. All Outlook-specific knowledge lives in TypeScript (src/outlook/), where it is easy to adjust when Outlook's UI changes.

  • No network access of its own. axlook never talks to Exchange, Google or any other service; Outlook does.


🧰 Tools

πŸ‘» = runs in the background (Outlook can stay behind your windows, even on another Space). πŸͺŸ = briefly brings Outlook to the front for menus, dialogs or typing, then returns focus. πŸ“„ = local file only, no Outlook access.

Area

Tool

Mode

What it does

Diagnostics

outlook_status

πŸ‘»

Outlook running? Accessibility granted? Screen locked?

outlook_ui_snapshot

πŸ‘»

Dumps part of Outlook's accessibility tree, for debugging UI changes

Mail

outlook_list_folders

πŸ‘»

Folders of every account as account/Parent/Child, with unread and total counts

outlook_list_messages

πŸ‘»

Sender, subject, date, preview, unread / flagged / replied / attachment / meeting markers

outlook_search_messages

πŸ‘»

Outlook's own search (from:, subject:, hasattachments:yes…), per mailbox or across all accounts

outlook_read_message

πŸ‘»

Headers, body text and links; leaves the message unread unless asked

outlook_get_message_source

πŸͺŸ

Full RFC 822 source: Message-ID, all addresses, text and HTML, attachment list

outlook_save_attachments

πŸͺŸ

Writes attachments to a folder (sanitized names, never overwrites); images shown inside the body only on request

outlook_move_message

πŸͺŸ

Moves to any folder of any account and checks the move happened

outlook_mark_read Β· outlook_set_flag

πŸͺŸ

Read/unread, flag/clear flag

outlook_archive_message Β· outlook_delete_message

πŸͺŸ

Archive; delete moves to Deleted Items (drafts are discarded)

Drafts

outlook_create_draft

πŸͺŸ

To/Cc/Bcc, subject, text or HTML body, local files (images embedded, others attached), choice of From account

outlook_create_reply_draft Β· outlook_create_forward_draft

πŸͺŸ

Your text above the quoted original, plus local files. Saved, never sent; a failed call leaves no draft behind

Calendar

outlook_list_calendars

πŸ‘»

Calendars of every account, and whether each is shown

outlook_list_events

πŸ‘»

Time, location, recurrence, organizer, your response, attendees

outlook_get_event

πŸ‘» / πŸͺŸ

One event; full=true adds the calendar name, attendee list and description

outlook_create_event Β· outlook_update_event Β· outlook_delete_event

πŸͺŸ

Appointments in any calendar, using local wall-clock times

Conventions

outlook_get_conventions Β· outlook_set_conventions

πŸ“„

Read and save your personal rules (no Outlook access)

List and search calls return refs (msg_…, evt_…) that the other tools take as input. Outlook's UI exposes no stable IDs, so a ref encodes where the item is shown and what it looks like. If a ref goes stale, list again.


πŸš€ Quickstart

Once installed, just ask:

"What's unread in my work inbox? Summarize anything about the conference."

"Save the PDFs from the latest mail from Alice to ~/Downloads/Reviews."

"Move this week's registration notifications into the Conference/Registrations folder."

"Draft a reply to Bob confirming Thursday. Don't send it."

"Block Friday 10:00–11:30 in my Personal calendar for 'Paper revision'."


🧭 Personal Conventions

Everyone organizes mail and calendars differently, so axlook keeps your rules in one small Markdown file, ~/.config/axlook/conventions.md. It lives outside the plugin, so it survives updates. Ask Claude:

"Set up my axlook conventions."

The conventions skill reads your real calendars and accounts, asks a few questions, shows you the file, and saves it only once you approve. Later, "from now on, put social events in Family" updates a single rule. You can also edit the file by hand:

---
default_calendar: you@work.example/My Calendars/Calendar
default_from: you@work.example
---
# Calendars
- Work and professional β†’ `you@work.example/My Calendars/Calendar`
- Personal, for me only β†’ `you@work.example/My Calendars/Personal`
- Social, with my partner β†’ `you@gmail.example/Family`

# Sending
- Work mail from `you@work.example`; private mail from `you@gmail.example`.
  • Rules are guidance. The server shows the file to Claude at startup, and outlook_get_conventions returns the current version. Claude follows the rules when picking calendars, accounts and folders.

  • Defaults are enforced. In the front matter, default_calendar applies to new events and default_from to new drafts, whenever a call leaves them out. Outlook's "last used calendar" never decides. Each result tells you whether the value came from your argument, from your conventions, or from Outlook. Replies and forwards always use the account that received the original message. Any other front-matter key is guidance for Claude only.

  • Moving the file: set AXLOOK_CONFIG_DIR. The previous version is always kept as conventions.md.bak.


πŸ›‘οΈ Safety by Design

  • Nothing is ever sent. Drafts, replies and forwards land in Drafts for you to review. Meetings that would notify attendees are refused.

  • Nothing is permanently deleted. Delete moves to Deleted Items, and deleting from a deleted-items folder is refused.

  • Your typing wins. If you're writing a draft in Outlook, tools refuse to navigate away from it.

  • Keystrokes can't go astray. Keys are delivered only to Outlook's process, and only while it is frontmost. Shortcuts use menu commands rather than key codes, so any keyboard layout works (AZERTY included).

  • Your clipboard is restored. Pasted bodies borrow it briefly, mark the paste transient for clipboard managers, and put your clipboard back afterwards.

  • Threads are handled one message at a time. Tools never act on a whole conversation row. They expand it and act on the specific message.

  • Data stays local. Nothing leaves your Mac except through Outlook itself.


πŸ”¬ How It Works

  1. Reading across Spaces. AXWindows returns nothing when Outlook is on another Space or in full screen, but AXMainWindow still reaches it. Reading never needs Outlook in front.

  2. Full source through Save As. Outlook is sandboxed, so axlook saves the message as .eml into ~/Downloads under a unique name, waits for the write to finish, moves the file into a private temp folder and parses it. That gives Message-ID, HTML and attachments without clicking through the UI.

  3. Calendar through event peeks. Each event tile has a hidden "Show event" action. It opens a preview in the background with stable fields for subject, date, time, location, recurrence, organizer and body, plus Edit and Delete buttons.

  4. Typing reaches Outlook's data. Writing a field's value only changes what's displayed. Subjects and descriptions are typed as keystrokes into Outlook, then read back to confirm.


⚠️ Limitations

  • English UI only. Labels such as "Message List" and the menu titles are matched; localization is future work.

  • Speed. Calls take 2–15 seconds, since this is UI automation. Search waits for Outlook's server-side results.

  • Deadline. Each call fails after 90 s (270 s for exports and drafts) instead of holding the queue; set AXLOOK_CALL_TIMEOUT (seconds) to change it. outlook_status answers even while another call runs, and then reports it as busy.

  • Several sessions. Each Claude session runs its own server; they take turns on Outlook through a lock file, so one session's search cannot pull the list from under another's.

  • Read-only meetings. Meetings with attendees can't be created or edited, because that would send mail.

  • Recurring events. Edits and deletes apply to the selected occurrence.

  • Shared screen. πŸͺŸ tools take Outlook's window for a few seconds. If you switch apps mid-action, axlook re-activates Outlook once, then fails cleanly.

  • Locked screen. Nothing works while the Mac is locked.


πŸ“Š Verification

The Accessibility selectors were mapped on Outlook 16.114 / macOS 27, against a profile with Exchange, two shared mailboxes and Gmail. scripts/e2e.ts drives every tool through the MCP protocol against the live app.

Area

Live-tested

Mail

folders, list, search, read, .eml source, attachments (byte-exact PDF), read/unread, flag, move and back

Drafts

new, reply and forward; discarding drafts

Calendar

list calendars and events; create β†’ get β†’ edit β†’ delete

Not yet

archive and delete on regular messages (the code paths are shared with move and draft discard)

bun test   # offline: row parser, calendar dates, MIME and attachments
E2E_FOLDER=… E2E_MOVE_TO=… E2E_SELF=… E2E_ATTACH_SCOPE=… E2E_CALENDAR=… bun scripts/e2e.ts

The e2e variables are documented in the header of scripts/e2e.ts.


πŸ› οΈ Development

.claude-plugin/        plugin.json (incl. the MCP server entry) + marketplace.json (the repo is its own marketplace)
skills/outlook/        skill shipped with the plugin
scripts/start.sh       launcher: picks Node/Bun, checks the helper (rebuilds it from source if needed)
dist/                  shipped build: axlook-mcp.js (bundle) + axlook-helper (universal, ad-hoc signed)
helper/OutlookAX.swift Accessibility bridge (JSON lines over stdio)
src/                   MCP server (TypeScript): ax.ts, outlook/{session,mail,compose,calendar}.ts, mime.ts
test/                  bun test suites
bun install
bun run build        # dist/axlook-helper (arm64 + x86_64) and dist/axlook-mcp.js
bun test && bun run typecheck
claude plugin validate . --strict

dist/ is committed because the plugin runs it as is. Rebuild and commit it together with any change to src/ or helper/. To release, bump version in both package.json and .claude-plugin/plugin.json.

To inspect Outlook's UI when it changes, use outlook_ui_snapshot, or query the helper directly:

printf '%s\n' '{"id":1,"cmd":"tree","h":"main","depth":3}' | dist/axlook-helper

πŸ“– Acknowledgements


Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to read, search, send, and manage email on macOS through programmatic access to Apple Mail.
      29
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables searching and reading email across permitted accounts and mailboxes on macOS, plus optionally saving drafts for review, without sending or deleting messages.
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI assistant to read, search, triage and send mail, manage calendars and browse, write and organize notes by driving the Mail, Calendar and Notes apps already on a Mac, with no dependencies, no network code and only two permission prompts.
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables MCP clients to read and write mail, calendar, meetings, tasks, notes, contacts, categories, and automatic replies by driving the local classic Outlook app through AppleScript or COM, without mail-server APIs, app registration, or extra sign-in.
      56
      MIT