# @1amsheldon/mail-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/1amSheldon/mail-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 777  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/1amsheldon-mail-mcp

## Description
Mail MCP: IMAP/SMTP, Zimbra, Apple Mail, Microsoft and Mailtrap for Codex and Claude

## Tools
Capabilities this server exposes over MCP:

- **list_accounts** — List configured mail accounts, backends, and capabilities. Call this before mail_query or mail_mutate.
- **mail_query** — Read mail through IMAP, Apple Mail, Microsoft, Mailtrap, or Zimbra. Choose an operation and pass its fields in input. Provider operations use apple.*, microsoft.*, mailtrap.*, or zimbra.*. Read mail://agent-guide, then the needed mail://reference/<topic> for input shapes.
- **mail_mutate** — Draft, send, organize, or configure mail through any supported backend. Choose an operation and pass its fields in input. Provider operations use apple.*, microsoft.*, mailtrap.*, or zimbra.*. Read mail://agent-guide and the needed mail://reference/<topic> before unfamiliar writes.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mail-mcp": {
    "command": "npx",
    "args": ["-y","@1amsheldon/mail-mcp@latest"]
  }
}
```

## Documentation

## What @1amsheldon/mail-mcp does

@1amsheldon/mail-mcp gives MCP clients a common interface for working with several mail systems. The available backends are IMAP with SMTP, Zimbra SOAP/REST, ManageSieve, Apple Mail, Microsoft Graph, Exchange Web Services, and Mailtrap.

The standard IMAP/SMTP backend covers cursor-based listing and search, stable message locators, folders, threads, flags, copying, moving, trashing, permanent deletion, raw RFC 822 retrieval, contacts, MIME drafts, replies, attachments, sending, and delivery verification. Standards-based providers such as Gmail, Google Workspace, iCloud, Fastmail, Yahoo, Zoho, and Mail.ru can use this backend when they expose IMAP and SMTP.

Backend-specific functions extend beyond ordinary mail. Zimbra includes contacts, groups, filters, settings, sharing, calendars, tasks, invitations, Briefcase items, tags, and scheduled delivery. Apple Mail supports native accounts, mailboxes, messages, drafts, composition, replies, forwarding, flags, movement, trash, and rules. Microsoft Graph and EWS provide provider-specific message search, reading, and sending. Mailtrap exposes email testing and platform administration features including sandboxes, templates, logs, inbound streams, domains, suppressions, webhooks, contacts, lists, campaigns, imports, and exports.

## How it works

Accounts are selected through the server rather than by embedding secrets in an MCP client file. Agents should first call `list_accounts` and inspect the reported backend capabilities, then use backend-appropriate operations. For IMAP, mailbox discovery should precede operations that depend on folder names; Apple Mail uses `apple.listMailboxes` for the equivalent lookup.

The server publishes an agent workflow through the `mail://agent-guide` resource and the `mail_agent_workflow` prompt. Backend contracts and operational guidance are available on demand through `mail://reference/<topic>` resources and corresponding prompts. Read-only installation flags can expose only read tools, while confirmation and audit-log options support more controlled deployments.

## Setup and configuration

Node.js 20.19 or newer and an operating-system credential store supported by `cross-keychain` are required. Install the package with npm or run it through `npx`, then add an account with the interactive `accounts add` wizard. The wizard covers IMAP/SMTP, Zimbra, Apple Mail, Microsoft Graph, EWS, and Mailtrap. Accounts can be listed or removed with the matching account commands.

Account definitions are kept in `~/.config/mail-mcp/accounts.json`. Passwords, OAuth2 credentials, and API tokens are stored in the operating-system credential store under `com.1amsheldon.mail-mcp`. MCP configuration should contain commands and options, not passwords, refresh tokens, client secrets, API tokens, or bearer tokens.

Dedicated installers configure Codex, Claude Desktop, and Claude Code. Codex uses stdio on macOS and Linux; Windows uses a local Streamable HTTP endpoint. Other clients can launch the package over stdio with `npx`. Apple Mail requires macOS Mail.app and Automation permission. Microsoft Graph and EWS require pre-provisioned OAuth2 credentials, while Mailtrap requires an API token.

## Tools and capabilities

- Read, search, thread, compose, reply, forward, send, move, copy, flag, trash, and delete mail where the selected backend supports each operation.
- Work with MIME content, raw message source, attachments, drafts, and delivery verification.
- Manage Zimbra contacts, groups, filters, calendars, tasks, invitations, sharing, Briefcase items, and scheduled messages.
- Manage Apple Mail mailboxes and rules, subject to the account’s global-rule permission.
- Use Microsoft Graph message lookup, replies, inline attachments, and large-attachment upload sessions.
- Operate Mailtrap templates, sandboxes, logs, inbound streams, domains, suppressions, webhooks, contacts, lists, fields, campaigns, imports, and exports.

## Limitations and notes

POP3 and JMAP are not implemented. Zimbra compatibility depends on the server edition, enabled features, authentication extensions, and mailbox permissions; SAML/SSO, email OTP, and 2FA enrollment are not implemented. Zimbra login stores the completed local session by default, while trusted-device login can separately request permission to store the main password for reauthentication.

Apple Mail rules are application-global and may affect every native account. Rule access is disabled by default and requires `allowGlobalRules: true`; duplicate rule names must be resolved in Mail.app before updates or deletion. Existing IMAP/SMTP app-password accounts are separate from Zimbra authentication.

_Full upstream README: https://allmcps.com/mcp/1amsheldon-mail-mcp/readme_

