email_add_account
Add a new IMAP or iCloud email account (Gmail and Outlook require the setup wizard for OAuth)
One mail client for Gmail, Outlook, iCloud and plain IMAP — search, read, send, organise, and move hundreds of messages in a single call.
LABSCO SUMMARY
Two decisions carry it. Search returns compact results and only pulls bodies when you ask, so scanning an inbox does not fill the context window. And email_transfer moves messages between accounts by their raw MIME, which is why sender, date and threading survive a consolidation that would otherwise rewrite every header.
A multi-account email server that uses each provider's native API where one exists — Gmail's REST API, Microsoft Graph — and falls back to IMAP and SMTP everywhere else.
One setup pass per mailbox, through the wizard: npx @marlinjai/email-mcp setup. Gmail and Outlook go through a browser OAuth flow using built-in PKCE credentials, so there is nothing to register unless you want your own app — a Desktop OAuth client with the Gmail API enabled, or an Azure app with Mail.ReadWrite, Mail.Send and offline_access. iCloud takes an app-specific password from appleid.apple.com; a generic IMAP account takes host, port and credentials, plus SMTP details for sending. Credentials are stored encrypted at rest with AES-256-GCM under machine-derived keys. The server itself runs over stdio via npx @marlinjai/email-mcp.
Follow the published steps
USE CASES
Search on sender and a date range, then pull the whole conversation once you have the ID.
Read the message in full, then reply with threading preserved and reply-all if it needs it.
Search for them, then move or delete the whole set in one batch call.
Transfer the messages as raw MIME so headers and threading survive, trashing the source only after the import lands.
Read the message for its attachment metadata, then fetch the file by ID.
Add the IMAP or iCloud account, test the connection, then list its folders.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
email_add_accountAdd a new IMAP or iCloud email account (Gmail and Outlook require the setup wizard for OAuth)
email_batch_deleteDelete multiple emails at once. Much faster than individual deletes.
email_batch_markMark multiple emails at once (read/unread, starred, flagged). Much faster than individual marks.
email_batch_moveMove multiple emails to a folder at once. Much faster than individual moves.
email_deleteDelete an email (moves to trash by default, or permanently deletes)
email_draft_createCreate a new email draft
email_draft_listList email drafts
email_folder_createCreate a new email folder
email_forwardForward an email to new recipients
email_getGet a single email by ID
email_get_attachmentGet an email attachment by ID, returns base64 encoded data
email_get_categoriesList all categories for an email account (Outlook only)
email_get_labelsList all labels for an email account (Gmail only)
email_get_threadGet an email thread by thread ID
email_labelAdd or remove labels on an email (Gmail only)
email_list_accountsList all configured email accounts and their connection status
email_list_foldersList all email folders for an account
email_markMark an email as read/unread, starred, or flagged
email_moveMove an email to a different folder
email_remove_accountRemove an email account
email_replyReply to an existing email
email_searchSearch emails with filters. By default returns compact results without full body content to save context. Set returnBody=true to include full email bodies.
email_sendSend a new email
email_test_accountTest an email account connection
email_transferMove or copy emails BETWEEN accounts, preserving the original message intact (sender, date, threading) by transferring the raw MIME. Fetches each message from the source account and imports it into the target account. With deleteAfter=true the source copy is sent to trash only after a confirmed import, making this a safe cross-account move.
BEFORE YOU INSTALL
25 tools when we connected.
npx on PATH
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 25 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install -g @marlinjai/email-mcp
npx @marlinjai/email-mcp setup{
"mcpServers": {
"email": {
"command": "npx",
"args": [
"@marlinjai/email-mcp"
]
}
}
}