apple-mail-mcpCAUTION
MCP server for Apple Mail - read, search, send, and manage emails via Claude and other AI assistants
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server that enables AI assistants like Claude to read, send, search, and manage emails in Apple Mail on macOS.
[](https://www.npmjs.com/package/apple-mail-mcp) [](https://www.npmjs.com/package/apple-mail-mcp) [](https://www.npmjs.com/package/apple-mail-mcp) [](https://github.com/sweetrb/apple-mail-mcp/actions/workflows/ci.yml) [](https://scorecard.dev/viewer/?uri=github.com/sweetrb/apple-mail-mcp) [](https://www.apple.com/macos/) [](https://opensource.org/licenses/MIT) [](https://modelcontextprotocol.io)
Note: This is the npm/Node.js package — install withnpxornpm. There is an unrelated Python project of the same name on PyPI (`imdinu/apple-mail-mcp`) installed viapipx/uvx. If you're usinguvxand seeing acycloptsdependency error, you're looking for that project, not this one.
What is This?
This server acts as a bridge between AI assistants and Apple Mail. Once configured, you can ask Claude (or any MCP-compatible AI) to:
- "Check my inbox for unread messages"
- "Find emails from john@
04aef73ae695OBSERVED · 2026-10-12Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add apple-mail-mcp --env GREENMAIL_PASS=${GREENMAIL_PASS} -- npx -y [email protected]{
"mcpServers": {
"apple-mail-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GREENMAIL_PASS": "${GREENMAIL_PASS}"
}
}
}
}Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
fast | read | |
slow | read |
Trust audit
CAUTIONgrade B · trust 82/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (1 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (25)
password: "APPLE_MAIL_MCP_IMAP_PASSWORD",
password: "APPLE_MAIL_MCP_SMTP_PASSWORD",
hardening.test.ts
symlinkSync("/etc/hosts", join(root, "hosts"));const file = "/etc/hosts";
expect(() => mgr.replyToMessage("42", "body", false, false, ["/etc/hosts"])).toThrow(const file = "/etc/hosts";
const outside = "/etc/hosts";
expect(isInvalidAttachmentName("../../etc/passwd")).toBe(true);expect(isAllowedPath("/tmp/../../etc")).toBe(false);const result = mgr.saveAttachment(BOGUS_ID, "test.pdf", "/tmp/../../etc");
const result = mgr.saveAttachment(BOGUS_ID, "../../etc/passwd", "/tmp");
tls: { rejectUnauthorized: false },tls: { rejectUnauthorized: false },@modelcontextprotocol/sdk, imapflow, nodemailer, zod, @eslint/js, @types/node, @types/nodemailer, @typescript-eslint/eslint-plugin
- **"Not configured" errors now end with the absolute setup-guide URL + a `doctor` hint.** `SMTP transport is not configured...` / `No SMTP password found...` (`smtpMailer`), `IMAP not configured...`
- **Opt-in IMAP backend for `search-messages` / `list-messages` (Phase 1)** — when an account is configured for IMAP, these two read paths run a **server-side IMAP search** (via `imapflow`) instead of
- **`send-email` SMTP transport — bypasses the macOS 15+ `<blockquote>` wrapping** — outgoing messages built through Mail.app's AppleScript path get wrapped in `<blockquote type="cite">` (Apple-Mail-U
| TM-007 | Network attacker or misconfigured provider | SMTP/IMAP configured without implicit TLS; endpoint can omit STARTTLS | Cause or exploit plaintext continuation
build/cli.js
build/index.js
This skill enables you to manage Apple Mail on macOS through natural language. Use it whenever the user mentions email, wants to send messages, or needs to read, search, or organize their inbox.
This skill enables you to manage Apple Mail on macOS through natural language. Use it whenever the user mentions email, wants to send messages, or needs to read, search, or organize their inbox.
This skill enables you to manage Apple Mail on macOS through natural language. Use it whenever the user mentions email, wants to send messages, or needs to read, search, or organize their inbox.
- Documented two previously read-but-undocumented environment variables in the README:
Gates applied: no_behavioural_pass.
04aef73ae695full audit observations/trust-audit/mcp-server/sweetrb__apple-mail-mcp.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-12 | 04aef73ae695 | CAUTION | B | 82 | first audit |
Questions
What is the apple-mail-mcp MCP server?
MCP server for Apple Mail - read, search, send, and manage emails via Claude and other AI assistants
What tools does apple-mail-mcp expose?
2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is apple-mail-mcp safe to connect to an agent?
With care. The audit graded it B (82/100) and found 25 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does apple-mail-mcp need?
It reads GREENMAIL_PASS from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does apple-mail-mcp run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as apple-mail-mcp at 2.20.9.
How current is this page?
The grade is for one exact copy of the source (04aef73ae695), read on 2026-10-12. The repository is watched and re-audited when it changes.