MCP server · Audited from source
apple-mail-mcp
by sweetrb/apple-mail-mcpMIT licenceAudited 12 Oct 2026 · source 04aef73ae695
Is it safe? With care — CAUTION, grade B (82/100). It exposes 2 tools: 2 read, 0 write and 0 destructive. The audit recorded 29 findings (0 critical, 0 high, 2 medium, 17 low). Maintainer's description: MCP server for Apple Mail - read, search, send, and manage emails via Claude and other AI assistants
Cite
Cite this page
ModelsAtlas. “apple-mail-mcp (sweetrb/apple-mail-mcp)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/sweetrb/apple-mail-mcp
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
29 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared1 observation
- ShellDeclared2 observations
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 3 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 14 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 8 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
sweetrbUser accountAccount type recorded when we read the repository. - PackagePublished on npm
apple-mail-mcpat version 2.20.9 - LicenceMITFrom the repository, as read at the audited commit.
- Last push2 days agoActivity of the repository when we read it.
- Source commit read04aef73ae695The audit covers exactly this commit, read on 12 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory2 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (29)
Sorted by severity · the 25 most severe of 29 are listed
MEDIUMHard-coded secretssecret.generic · src/services/imapClient.ts:59
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · src/services/smtpMailer.ts:148
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInventory / provenanceinv.binary · src/services/hardening.test.ts
hardening.test.ts
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
LOWFilesystem / pathfs.system_paths · src/services/appleMailManager.attachmentPath.test.ts:53
symlinkSync("/etc/hosts", join(root, "hosts"));- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.system_paths · src/services/appleMailManager.attachmentPath.test.ts:71
const file = "/etc/hosts";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.system_paths · src/services/appleMailManager.replyAttachments.test.ts:124
expect(() => mgr.replyToMessage("42", "body", false, false, ["/etc/hosts"])).toThrow(- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.system_paths · src/services/smtpMailer.test.ts:298
const file = "/etc/hosts";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.system_paths · src/tools/compose.issue267.test.ts:192
const outside = "/etc/hosts";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/security.test.ts:114
expect(isInvalidAttachmentName("../../etc/passwd")).toBe(true);- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/security.test.ts:153
expect(isAllowedPath("/tmp/../../etc")).toBe(false);- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/integration.test.ts:133
const result = mgr.saveAttachment(BOGUS_ID, "test.pdf", "/tmp/../../etc");
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/integration.test.ts:138
const result = mgr.saveAttachment(BOGUS_ID, "../../etc/passwd", "/tmp");
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.tls_off · test/imap.integration.test.ts:61
tls: { rejectUnauthorized: false },- Why
- certificate verification is disabled
- Fix
- leave verification on
LOWNetwork egressnet.tls_off · test/imap.integration.test.ts:72
tls: { rejectUnauthorized: false },- Why
- certificate verification is disabled
- Fix
- leave verification on
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, imapflow, nodemailer, zod, @eslint/js, @types/node, @types/nodemailer, @typescript-eslint/eslint-plugin
- Why
- 21 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:2326
- **"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...`
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:2627
- **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
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:2698
- **`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
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/THREAT-MODEL.md:127
| TM-007 | Network attacker or misconfigured provider | SMTP/IMAP configured without implicit TLS; endpoint can omit STARTTLS | Cause or exploit plaintext continuation
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOInventory / provenanceinv.oversize · build/cli.js
build/cli.js
- Why
- 2494211 bytes not read
- Fix
- —
INFOInventory / provenanceinv.oversize · build/index.js
build/index.js
- Why
- 3681120 bytes not read
- Fix
- —
INFOPrompt injectionprompt.conditional_escalation · .antigravity-plugin/skills/apple-mail/SKILL.md:8
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.
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.conditional_escalation · codex/skills/apple-mail/SKILL.md:8
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.
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.conditional_escalation · skills/apple-mail/SKILL.md:8
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.
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.credential_read · CHANGELOG.md:2413
- Documented two previously read-but-undocumented environment variables in the README:
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
2 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
fast | read | No description in the source |
slow | read | No description in the source |
Install
Package version 2.20.9 · audited commit 04aef73
Read the findings first. The most severe is Hard-coded secrets (medium) at src/services/imapClient.ts.
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.20.9. The audit covers commit 04aef73 only.
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}"
}
}
}
}The command pins the package version recorded in the source (2.20.9); the audit covers commit 04aef73ae695. Transport: stdio. Reads this environment variable: GREENMAIL_PASS. Give it the narrowest token it needs.
Audit history
- !CAUTION B 82 / 100
First audit ·
04aef73ae695
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/sweetrb/apple-mail-mcp/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about apple-mail-mcp
What is the apple-mail-mcp MCP server?
What tools does apple-mail-mcp expose?
Is apple-mail-mcp safe to connect to an agent?
What credentials does apple-mail-mcp need?
How does apple-mail-mcp run?
How current is this page?
Sources
- sweetrb/apple-mail-mcp on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 04aef73ae695Observed · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the apple-mail-mcp MCP server?
- What tools does apple-mail-mcp expose?
- Is apple-mail-mcp safe to connect to an agent?