AT&T Mail MCP Server
Provides tools for interacting with AT&T Mail through a local MCP mail server, including reading conversations, managing and discarding drafts, and configurable read-only, draft-only, or full mail-operation modes.
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.
AT&T Mail MCP
A local MCP server that lets Claude and other AI assistants search, read, draft and (only if you allow it) send email from an AT&T Mail account. A server-enforced operation mode decides what the assistant is allowed to change.
It runs on your own computer and connects directly to AT&T's IMAP and SMTP servers over TLS. There's no hosted service in between, and your secure mail key stays in the macOS Keychain.
The repository also includes an optional Claude plugin with skills for drafting mail and for saving reply drafts in Yahoo Mail.
What you can ask
Goal | Example |
Catch up | "Summarize my unread email from this week." |
Find something | "Find the messages from my landlord about the lease renewal." |
Follow a thread | "Show me the whole conversation for that message, including what I sent." |
Find loose ends | "Which emails from last week haven't I replied to?" |
Draft without sending | "Draft a reply to Dana and attach the quote PDF from my attachments folder. Don't send it." |
Revise a draft | "Change the subject of that draft to Kitchen quote and remove the old attachment." |
Send (full mode only) | "Send the draft text above to dana@example.com." |
Related MCP server: imap-mcp
Safety model
Set MAIL_OPERATION_MODE to choose what the assistant can do. The server hides blocked tools and also rejects them if they're called anyway.
Mode | Allows | Tools |
| Searching and reading. Messages stay unread, and no SMTP connection is made. | 10 |
| Everything in | 14 |
| Everything, including sending, replying, moving, permanently deleting and saving attachments to disk. | 20 |
IfMAIL_OPERATION_MODE isn't set, the server runs in full mode for compatibility with earlier versions. Set it explicitly. draft-only is a good place to start.
Other safeguards:
Credentials: on macOS the secure mail key is read from the Keychain at startup and is never written to config files or passed as a command-line argument. On other systems the server falls back to the
EMAIL_PASSenvironment variable.Files: attachments can only be read from or saved to folders listed in
MAIL_ALLOWED_ROOTS. Local file access is off when it's unset.Transport: TLS certificates are verified by default, and IMAP requires implicit TLS (port 993).
Drafts: edits must supply the draft's current revision, so a stale edit fails instead of overwriting newer changes. A replaced draft only moves to Trash after the new copy has been read back and verified. Draft tools never delete permanently.
Limits: message, attachment, body and response sizes are capped and configurable.
Testing:
MAIL_TEST_SCOPErestricts a separate server process to one of your own test conversations and turns SMTP off. See docs/MAIL-WORKFLOWS.md.
The server enforces the mode. Asking you to confirm a send, move or delete before it happens is up to your MCP client, so pick a mode that only allows what you're comfortable with. Treat email content as untrusted: a message can contain instructions aimed at the assistant.
Tools
Group | Tools |
Read (all modes) |
|
Drafts ( |
|
Changes ( |
|
Parameters for each tool are in the server reference and docs/MAIL-WORKFLOWS.md.
Supported accounts and platforms
Accounts: built and tested with a bellsouth.net address. AT&T's other legacy addresses (att.net, sbcglobal.net, pacbell.net and so on) use the same
imap.mail.att.netandsmtp.mail.att.netservers, so they should work, but they haven't been tested. Please open an issue with your results.Sign-in: AT&T secure mail key only. OAuth isn't supported.
Platforms: macOS is the main target (Keychain). Linux works with
EMAIL_PASS, and CI runs on both. Windows isn't tested.
Quick start
Requirements
Git, and nvm or another way to install the exact Node.js version in
.nvmrcOpenSSL and Python 3 (the test suite runs during release preparation)
An AT&T Mail address and a secure mail key
1. Create a secure mail key
AT&T doesn't accept your regular password from third-party apps. In your AT&T account profile, choose Settings, select Add secure mail key, give it a nickname, and copy the 16-character key. AT&T's Create a secure mail key article has the details.
2. Store it in the macOS Keychain
security add-generic-password -s att-mail-mcp -a you@bellsouth.net -wLeaving -w at the end makes security prompt for the key, so it doesn't end up in your shell history. You can choose any service name in place of att-mail-mcp; you'll use it again in step 5.
3. Get the source
git clone https://github.com/spowers16/att-mail-mcp.git
cd att-mail-mcp
nvm install
npm --prefix server ci --ignore-scripts4. Install a verified release
npm run release:prepare
npm run release:activate -- <release name printed by prepare>release:prepare exports the current commit to a temporary folder, runs the secret scan and the full test suite there, and installs the result under ~/.local/share/codex-att-mail-mcp/releases/. release:activate checks the release again and points ~/.local/share/codex-att-mail-mcp/current at it. Your MCP client runs current/dist/index.js, so later work in your checkout can't change the code it's running. npm run release:rollback switches back to the previous release. See docs/RELEASING.md.
5. Add the server to your MCP client
This works as-is in Claude Desktop's claude_desktop_config.json and in a Claude Code .mcp.json. Other clients take the same command, arguments and environment variables in their own format.
{
"mcpServers": {
"att_mail": {
"command": "/absolute/path/to/node",
"args": [
"/Users/you/.local/share/codex-att-mail-mcp/current/dist/index.js"
],
"env": {
"IMAP_HOST": "imap.mail.att.net",
"IMAP_PORT": "993",
"IMAP_SECURE": "true",
"SMTP_HOST": "smtp.mail.att.net",
"SMTP_PORT": "465",
"SMTP_SECURE": "true",
"EMAIL_USER": "you@bellsouth.net",
"EMAIL_ADDRESS": "you@bellsouth.net",
"EMAIL_KEYCHAIN_SERVICE": "att-mail-mcp",
"EMAIL_KEYCHAIN_ACCOUNT": "you@bellsouth.net",
"MAIL_OPERATION_MODE": "draft-only",
"MAIL_APPEND_SENT_COPY": "false",
"MAIL_ALLOWED_ROOTS": "/Users/you/MailAttachments",
"MAIL_MAX_ATTACHMENT_BYTES": "15728640"
}
}
}
}command: the Node.js you built with.nvm whichprints its path.MAIL_APPEND_SENT_COPY:falsebecause AT&T already saves sent mail to your Sent folder.MAIL_ALLOWED_ROOTS: an existing folder for attachments you want to send or save. Leave it out to turn off file access.
Restart your client, then ask: "Check my AT&T mail connection."
6. (Optional) Install the Claude plugin
cowork-plugin/ adds three skills for the Claude desktop app:
/draft-mailsaves a new draft, with attachments, for you to review and send yourself in Yahoo Mail./reply-draftcreates a reply draft through Yahoo Mail's own Reply button using browser control, so threading survives later edits (see known limitations)./test-mailchecks the connection and the available tools without sending or creating anything.
The plugin is built locally because its configuration contains your paths. Create local/host.json, which Git ignores:
{
"NODE_COMMAND": "/absolute/path/to/node",
"SERVER_ENTRY": "/Users/you/.local/share/codex-att-mail-mcp/current/dist/index.js",
"EMAIL_ADDRESS": "you@bellsouth.net",
"KEYCHAIN_SERVICE": "att-mail-mcp",
"ATTACHMENT_ROOT": "/Users/you/MailAttachments"
}Then build the ZIP and install it as a custom plugin, following cowork-plugin/README.md:
npm run plugin:package -- local/host.json artifacts/att-mail-plugin.zipThe plugin'sconfiguration template sets MAIL_OPERATION_MODE to full. Change it before packaging if you want a stricter mode.
Configuration
These variables are specific to this edition. The full list, including size limits, is in the server reference.
Variable | Purpose |
|
|
| The macOS Keychain item holding your secure mail key. When the service is unset, |
| Folders the server may read attachments from or save them to. File access is off when unset. |
| Override automatic discovery of the Drafts and Trash folders. |
| Maximum size of a complete encoded draft. Defaults to 25,000,000 bytes. |
| Strict test scope configuration. See docs/MAIL-WORKFLOWS.md. |
Known limitations
Yahoo removes reply headers from IMAP-created drafts when you edit them.
create_reply_draftwrites correctIn-Reply-ToandReferencesheaders, but editing and saving that draft in Yahoo Mail strips them. For a reply you'll edit before sending, use the plugin's/reply-draftworkflow.reply_to_emailandcontinue_email_threadcan't add new attachments yet.Updating a draft isn't a single transaction. If it's interrupted, you can end up with two drafts; the tool reports this so you can check before retrying.
IMAP needs an implicit TLS endpoint (port 993). STARTTLS for IMAP isn't supported.
Documentation
docs/MAIL-WORKFLOWS.md: capability reports, conversations, draft revisions and strict test scope
docs/RELEASING.md: preparing, activating and rolling back releases, and packaging the plugin
docs/ACCEPTANCE.md: optional live testing against a real mailbox
server/README.md: server reference inherited from upstream
Contributing and security
Contributions are welcome. See CONTRIBUTING.md for setup, checks and the pull request process. Please report vulnerabilities privately as described in SECURITY.md.
Credits and license
Based on yunfeizhu/mcp-mail-server; see UPSTREAM.md for provenance. Released under the MIT License.
This is an independent project. It isn't affiliated with or endorsed by AT&T or Yahoo.
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
Your mailbox for MCP clients: search, read, draft, send, rules and notes. Sending is off by default.
Hosted email MCP for your own Gmail, Outlook.com, Microsoft 365, iCloud or IMAP inbox: read, search, draft, reply in thread, forward and file mail. It moves or flags up to 500 messages in one call, and a send leaves exactly one copy in Sent. A calendar is a separate connection, and connecting one adds diary and scheduling tools.
Your own IMAP mailbox in any MCP client: search, read, flag, move; send and delete need confirm.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables MCP clients to read, search, organise, and manage IMAP mailbox messages, including saving attachments and drafting replies, while treating mail content as untrusted and keeping write capabilities opt-in.6496 npm4MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to check, list, search, read, send, draft, and trash email in a single IMAP mailbox using standard IMAP and SMTP settings, with sending and trash moves enabled only when explicitly allowed.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to manage multiple IMAP/SMTP mailboxes by listing folders, searching and reading messages, preparing Markdown drafts and replies, and sending only a draft the user has reviewed and confirmed.914 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to access and manage email over IMAP, POP3, and SMTP, including listing, searching, reading, sending, downloading attachments, and managing flags, moves, and deletions using environment-based credentials and TLS.1MIT