axlook-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
axlook-mcp
Let Claude work with New Outlook for Mac: mail, drafts and calendars, without Graph, tokens or app registrations
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)
Claude Code (recommended)
On Claude Code 2.1.275 or later, one command:
/plugin install axlook-mcp --marketplace flol3622/axlook-mcpOn older versions, or to browse the marketplace first:
/plugin marketplace add flol3622/axlook-mcp
/plugin install axlook-mcp@axlookThe 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:
outlooktells Claude to use these tools for every mail and calendar question, andconventionssets 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:
Open System Settings β Privacy & Security β Accessibility.
Enable the app that runs Claude: Terminal, iTerm, Visual Studio Code, Cursor or Claude.
Restart that app.
Ask Claude to run
outlook_status. It reportstrusted: trueonce 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:#000The 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 running? Accessibility granted? Screen locked? |
| π» | Dumps part of Outlook's accessibility tree, for debugging UI changes | |
| π» | Folders of every account as | |
| π» | Sender, subject, date, preview, unread / flagged / replied / attachment / meeting markers | |
| π» | Outlook's own search ( | |
| π» | Headers, body text and links; leaves the message unread unless asked | |
| πͺ | Full RFC 822 source: Message-ID, all addresses, text and HTML, attachment list | |
| πͺ | Writes attachments to a folder (sanitized names, never overwrites); images shown inside the body only on request | |
| πͺ | Moves to any folder of any account and checks the move happened | |
| πͺ | Read/unread, flag/clear flag | |
| πͺ | Archive; delete moves to Deleted Items (drafts are discarded) | |
Drafts |
| πͺ | To/Cc/Bcc, subject, text or HTML body, local files (images embedded, others attached), choice of From account |
| πͺ | Your text above the quoted original, plus local files. Saved, never sent; a failed call leaves no draft behind | |
Calendar |
| π» | Calendars of every account, and whether each is shown |
| π» | Time, location, recurrence, organizer, your response, attendees | |
| π» / πͺ | One event; | |
| πͺ | Appointments in any calendar, using local wall-clock times | |
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_conventionsreturns the current version. Claude follows the rules when picking calendars, accounts and folders.Defaults are enforced. In the front matter,
default_calendarapplies to new events anddefault_fromto 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 asconventions.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
Reading across Spaces.
AXWindowsreturns nothing when Outlook is on another Space or in full screen, butAXMainWindowstill reaches it. Reading never needs Outlook in front.Full source through Save As. Outlook is sandboxed, so axlook saves the message as
.emlinto~/Downloadsunder 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.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.
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_statusanswers even while another call runs, and then reports it asbusy.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 |
folders, list, search, read, | |
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.tsThe 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 suitesbun install
bun run build # dist/axlook-helper (arm64 + x86_64) and dist/axlook-mcp.js
bun test && bun run typecheck
claude plugin validate . --strictdist/ 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
trsdn/outlook-ax (MIT): its map of New Outlook's accessibility paths was a valuable starting point.
postal-mime for MIME parsing, and the official MCP TypeScript SDK.
Built with Claude Code.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Mac & Windows: let ChatGPT, Claude & Cursor use your email, calendar, iMessage, Teams, files.
Read, send, file and search email in any Gmail, Microsoft 365 or IMAP mailbox, plus its calendar.
Connect Gmail, iCloud Mail, Outlook, Yahoo Mail, Fastmail and other IMAP inboxes to ChatGPT, Claude and compatible AI assistants. Find emails by meaning across languages with semantic search. Ask AI to find customer conversations, summarize deadlines and draft follow-ups. Give a sales rep access to a shared outreach inbox or bring email into a compatible CRM. Share an iCloud custom-domain inbox with teammates without their own Apple ID or iCloud+ plan. Search results may be incomplete or stale; separate permissions control mail actions.
Mail, Calendar, Messages, Notes, Contacts, Slack on your Mac for AI. Remote needs Pro or free trial.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to read, search, send, and manage email on macOS through programmatic access to Apple Mail.29MIT
- AlicenseAqualityBmaintenanceEnables searching and reading email across permitted accounts and mailboxes on macOS, plus optionally saving drafts for review, without sending or deleting messages.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseCqualityCmaintenanceEnables 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.56MIT