Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

apple-mail-mcp

by sweetrb/apple-mail-mcpMIT licenceAudited 12 Oct 2026 · source 04aef73ae695

npm apple-mail-mcp 2.20.9stdio★ 91
!CAUTIONGrade B · 82/100 · 12 Oct 2026 · 04aef73
91GitHub stars

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score82/100!CAUTION B
0 critical0 high2 medium17 low10 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 3 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 14 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 8 findings
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

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 npmapple-mail-mcp at 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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

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
F-13 Inventory / provenanceCWE-1104Layer L0
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const file = "/etc/hosts";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.system_paths · src/services/appleMailManager.replyAttachments.test.ts:124
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const file = "/etc/hosts";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.system_paths · src/tools/compose.issue267.test.ts:192
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const outside = "/etc/hosts";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/security.test.ts:114
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
expect(isInvalidAttachmentName("../../etc/passwd")).toBe(true);
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/security.test.ts:153
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
expect(isAllowedPath("/tmp/../../etc")).toBe(false);
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/integration.test.ts:133
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
tls: { rejectUnauthorized: false },
Why
certificate verification is disabled
Fix
leave verification on
LOWNetwork egressnet.tls_off · test/imap.integration.test.ts:72
F-04 Network egressCWE-200 · CWE-319Layer L1
tls: { rejectUnauthorized: false },
Why
certificate verification is disabled
Fix
leave verification on
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **"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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **`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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
| 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
F-13 Inventory / provenanceCWE-1104Layer L0
build/cli.js
Why
2494211 bytes not read
Fix
—
INFOInventory / provenanceinv.oversize · build/index.js
F-13 Inventory / provenanceCWE-1104Layer L0
build/index.js
Why
3681120 bytes not read
Fix
—
INFOPrompt injectionprompt.conditional_escalation · .antigravity-plugin/skills/apple-mail/SKILL.md:8
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 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

2 read0 write0 destructive
ToolRiskWhat it does
fastreadNo description in the source
slowreadNo 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]

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

  1. !CAUTION B 82 / 100

    First audit · 04aef73ae695

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/sweetrb/apple-mail-mcp/badge.svg)](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?
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.

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.