mailbox-org-mcp
Provides Gmail-style control of a mailbox.org account over IMAP, SMTP, ManageSieve, CalDAV, CardDAV, and WebDAV: search/read/write mail, bulk organize, folders, filters, newsletters, aliases, PGP, contacts, tasks, calendar, Drive, notes, and account settings mapping.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mailbox-org-mcp archive all unread newsletters older than 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mailbox-org-mcp
An MCP server that gives AI assistants (Claude, Codex and other MCP clients) Gmail-style control of a mailbox.org account: search, sort, label, filter, unsubscribe, aliases with expiry reminders, PGP, contacts, tasks, calendar and Drive.
Unofficial community project. Not affiliated with or endorsed by mailbox.org (Heinlein Hosting GmbH).
It talks to mailbox.org only through standard protocols (IMAP, SMTP, ManageSieve, CalDAV, CardDAV, WebDAV) with app passwords, so your main password is never needed.
Features (50 tools)
Area | What you can do |
Search and read | Gmail-style queries ( |
Write | Send, reply, reply-all, forward, drafts, send drafts; send as any alias; copies saved in Sent |
Organize in bulk | Read/unread, star, webmail color labels, labels/categories (IMAP keywords), move, archive, trash, spam / not spam, permanent delete. Every bulk action takes UIDs or a query, has a safety cap and a dry run |
Folders and storage | List with counts and sizes, create, rename, delete, subscribe; quota used vs. plan and largest folders |
Filters | Server-side Sieve rules: list, create (optionally applied to existing mail), edit, enable/disable, reorder, delete, bounce senders; out-of-office reply. Every change is validated by the server and the previous script is backed up locally |
Newsletters | List subscriptions by sender, one-click unsubscribe (RFC 8058) or by email, re-subscribe, auto-file future mail from a sender |
Aliases | Register of permanent aliases and disposable |
PGP | PGP/MIME encrypt and sign on send/reply/forward/drafts, automatic decrypt and signature check when reading, key lookup through the recipient's Web Key Directory, import/export keys. Refuses to fall back to clear text |
Contacts, tasks, calendar | Search/create/edit/delete contacts (edits keep untouched fields); list/create/complete/delete tasks; list/create/delete events, including repeating ones |
Drive | List, upload, download, rename, delete files (documents, spreadsheets, presentations) |
Notes | Read mailbox.org shared notes |
Account settings map | Every manage.mailbox.org setting (aliases, disposable addresses, spam, blocklist, encrypted sending, trash, backup recovery, POP3 fetch...) with its address, what it controls and the steps, for assistants that can drive a browser |
Not covered: Chat, Meet and Polls (no interface). Account settings on manage.mailbox.org have no API for personal accounts; business accounts can set MAILBOX_API_KEY to enable alias, spam, blocklist and backup tools.
Related MCP server: Fastmail MCP Server (Unofficial)
Install
Requires Node.js 20.3 or later.
git clone https://github.com/getrdone/mailbox-org-mcp.git
cd mailbox-org-mcp
npm install
npm run buildConfigure
In mailbox.org create an app password with IMAP and SMTP rights (manage.mailbox.org > Email app-passwords). For contacts/tasks/calendar and Drive, also create "Calendar and Addressbook Client (CalDAV/CardDAV)" and "WebDAV Client" passwords (app.mailbox.org > All settings > Security > Application Passwords).
Copy
.env.exampleto~/.mailbox-org-mcp/.envand fill it in (or set the same variables in your MCP client'senv).Check:
node dist/cli.js doctorshows which services work and what is missing. It sends no mail.
Add to your MCP client
Claude Code:
claude mcp add mailbox-org -- node /path/to/mailbox-org-mcp/dist/index.jsClaude Desktop (claude_desktop_config.json) and most other clients:
{
"mcpServers": {
"mailbox-org": {
"command": "node",
"args": ["/path/to/mailbox-org-mcp/dist/index.js"],
"env": { "MAILBOX_SECRETS_FILE": "/path/to/your/.env" }
}
}
}Codex (~/.codex/config.toml):
[mcp_servers.mailbox_org]
command = "node"
args = ["/path/to/mailbox-org-mcp/dist/index.js"]Alias expiry reminders
mailbox.org disposable addresses are receive-only, live 90 days and are deleted unless extended. The server keeps a local register (var/mailbox-org-mcp.sqlite) of aliases you record, and node dist/cli.js alias-reminders (or the mailbox_alias_reminders tool) puts one flagged note in your inbox when any are close to expiry. Run it daily from Task Scheduler or cron. The note is stored with IMAP, never sent.
Safety
Replies and forwards default to drafts; permanent deletion needs
confirm: true.Bulk tools cap how many messages a query may touch and support
dry_run.Filter changes are validated by the server first; the last 10 scripts are kept in
var/sieve-backups/.Encryption never silently falls back to clear text; replies to encrypted mail are encrypted.
Keyserver lookups (which reveal recipient addresses to keys.openpgp.org) are off unless you enable them.
Credentials stay in your local
.envor client config;var/and.envare git-ignored.
Development
npm run build # compile
node scripts/test.mjs # offline tests (query parser, Sieve editor, vCard)
node scripts/test.mjs --live # also validates your real filter script with the server (saves nothing)
node scripts/smoke.mjs TOOL '{"arg":1}' # call tools through a real MCP clientLicense
MIT
Available Tools
50 toolsmailbox_account_settingsAccount settings mapARead-only
Where every mailbox.org account setting lives (aliases, disposable addresses, spam, blocklist, encrypted sending, trash auto-delete, backup recovery, POP3 fetch, alternative sender, app passwords, notes, newsletters, plan) with its console address, what it controls, what this server can do instead, and the browser steps. These pages need the owner's signed-in browser; personal accounts have no API for them.
Inputs: topic, response_format.
mailbox_add_aliasAdd an aliasA
Create a new alias on mailbox.org (needs MAILBOX_API_KEY) or record one you made in the web settings, as permanent or temporary. Disposable addresses (...@temp.mailbox.org) are always temporary with a 90-day life and can only be created in the web settings; record them here after creating. For other temporary aliases give expires_in_days or expires_on, and a purpose (e.g. "signup for X shop"); you get an inbox reminder remind_days before it expires. Set create_on_server=false to only record an existing alias.
Inputs: address (required), kind, purpose, expires_on, +3 more.
mailbox_alias_remindersCheck alias expiry remindersA
Find temporary aliases that expire soon (inside their reminder window) or just expired. deliver=true puts one flagged note in your INBOX listing them and asking whether to extend or let each expire (stored with IMAP, not sent). Safe to run daily; each alias is reminded at most every 3 days, plus on its last day and once after expiry.
Inputs: deliver, response_format.
mailbox_backupsRestore mail from mailbox.org backupsA
mailbox.org keeps daily backups. action list shows available backup times; restore imports one back into the mailbox (optionally only a folder, via filter). Use when mail was deleted by mistake. Needs MAILBOX_API_KEY.
Inputs: action (required), id, time, filter.
mailbox_check_connectionCheck connectionARead-only
Check which mailbox.org services work with the configured credentials (mail, sending, filters, contacts/calendar/drive, account interface) and what to set up for the rest. Sends no mail.
Inputs: no named parameters.
mailbox_count_messagesCount messagesARead-only
Count messages matching a Gmail-style query per folder, without listing them. Good for 'how many unread newsletters' or sizing a cleanup before a bulk action.
Inputs: query, folders.
mailbox_create_draftSave a draftA
Save a new message in Drafts without sending it, so it can be reviewed in webmail or sent later with mailbox_send_draft.
Inputs: cc, to, bcc, body, +8 more.
mailbox_create_filterCreate a filterA
Add a server-side filter that runs on all new mail (like a Gmail filter). Conditions + actions, optional position, and apply_to_existing to also sort mail already received. Example: field from, match domain, values ["temu.com"] -> move_to "INBOX/my-purchases/Temu", add_labels ["$purchases"]. The script is validated by the server and backed up locally before saving.
Inputs: name (required), actions (required), conditions (required), match, +2 more.
mailbox_delete_contactDelete a contactADestructive
Delete a contact by href (from mailbox_search_contacts).
Inputs: href (required), confirm (required).
mailbox_delete_itemDelete a task or eventCDestructive
Delete a task or calendar event by href.
Inputs: href (required), confirm (required).
mailbox_delete_messagesDelete messages permanentlyADestructive
PERMANENTLY delete messages (no Trash, cannot be undone except from mailbox.org backups). Prefer mailbox_move_messages to='trash'. Typical use: emptying Trash or Junk with query '' in that folder. Requires confirm=true.
Inputs: confirm (required), max, uids, query, +2 more.
mailbox_download_attachmentsSave attachmentsA
Save a message's attachments to a local folder (default /root/Downloads/mailbox-org). Returns the saved file paths. Use mailbox_get_message to see attachment indexes.
Inputs: uid (required), folder, indexes, save_dir.
mailbox_drive_downloadDownload a Drive fileARead-only
Download a file from mailbox.org Drive to a local folder (default your Downloads/mailbox-org). Returns the saved path.
Inputs: path (required), save_dir.
mailbox_drive_listList Drive filesARead-only
List files and folders in mailbox.org Drive (documents, spreadsheets and presentations live here too). path is relative to your own folder (My files), e.g. "" or "Documents/2026"; start with "Userstore/", "Public infostore/" or "Trash" for other areas. Needs a DAV-enabled app password.
Inputs: path, response_format.
mailbox_drive_manageCreate, move or delete in DriveADestructive
Drive housekeeping: mkdir (path), move (path -> to, also renames), delete (path; folders recursively).
Inputs: path (required), action (required), to, confirm.
mailbox_drive_uploadUpload to DriveA
Upload a local file to a mailbox.org Drive folder. Refuses to overwrite unless overwrite=true.
Inputs: local_path (required), name, folder, overwrite.
mailbox_filter_scriptRead or replace the whole filter scriptADestructive
Advanced: action 'get' returns the full Sieve script and the list of scripts on the server; 'check' validates Sieve code without saving; 'put' replaces the whole active script (validated, backed up locally first).
Inputs: action (required), script.
mailbox_forwardForward a messageA
Forward a message with its attachments to new recipients, with an optional note above. mode 'draft' (default) saves for review; 'send' sends now.
Inputs: to (required), uid (required), from, mode, +5 more.
mailbox_get_accountAccount detailsARead-only
Show the mailbox.org account record: plan, aliases, forwarding, quota usage (mail and drive) and other settings. Needs MAILBOX_API_KEY.
Inputs: response_format.
mailbox_get_messageRead a messageAIdempotent
Read one message: headers, plain-text body (HTML converted), attachment list, and unsubscribe options. Does not mark it read unless mark_read is true.
Inputs: uid (required), folder, mark_read, include_html, +4 more.
mailbox_get_storageCheck mail storageARead-only
Show mail storage used vs. the plan limit (IMAP quota) and the largest folders, so you can see what to clean up. Use mailbox_search_messages with larger:5M to find big messages.
Inputs: top_folders, response_format.
mailbox_get_threadRead a conversationARead-only
Find every message in the same conversation as one message (by Message-ID, In-Reply-To and References) across INBOX, Sent, Archive and the message's own folder, oldest first.
Inputs: uid (required), folder, response_format.
mailbox_list_aliasesList aliasesAIdempotent
List your email aliases: permanent and temporary, purpose, expiry and days left, and (with check_usage) how much mail each received in the last 90 days, so you can decide what to keep. Syncs with mailbox.org when MAILBOX_API_KEY is set; otherwise shows the local alias register.
Inputs: check_usage, include_removed, response_format.
mailbox_list_collectionsList address books, calendars and task listsARead-only
List mailbox.org address books, calendars and task lists (names to use in the contact, task and event tools). Needs a DAV-enabled app password.
Inputs: response_format.
mailbox_list_eventsList calendar eventsARead-only
List mailbox.org calendar events between two dates (default: today through 30 days ahead).
Inputs: end, query, start, calendar, +1 more.
mailbox_list_filtersList filtersARead-only
List the server-side mail filters (Sieve rules) in order, with number, name, on/off, conditions and actions. Rules run top to bottom; most end with stop. Use the number or name with the other filter tools.
Inputs: include_sieve, response_format.
mailbox_list_foldersList foldersARead-only
List every mail folder with its exact path (use these paths in other tools), special role (Inbox, Sent, Archive, Junk, Trash, Drafts), total and unread counts, and optionally size.
Inputs: include_size, include_counts, response_format.
mailbox_list_labelsList labels and colorsARead-only
List the labels (IMAP keywords) and OX color labels used in a folder with message counts, plus the color names accepted by mailbox_update_messages. Categories such as $social and $purchases are keywords too.
Inputs: folder, response_format.
mailbox_list_sendersTop sendersARead-only
Group messages matching a query by sender address with counts, newest date and unread count. Use it to find who fills the inbox, then act with mailbox_move_messages, mailbox_create_filter or mailbox_unsubscribe.
Inputs: limit, query, folders, group_by, +2 more.
mailbox_list_subscriptionsList newsletter subscriptionsARead-only
Find mailing lists and newsletters you receive (messages with List-Unsubscribe), grouped by sender with message count, unread count, newest date, list id and which unsubscribe methods work. Pick a row's folder+uid for mailbox_unsubscribe.
Inputs: limit, query, offset, folders, +2 more.
mailbox_list_tasksList tasksARead-only
List mailbox.org tasks: open (default), completed or all; optionally due before a date or matching text. Sorted by due date.
Inputs: limit, query, status, task_list, +2 more.
mailbox_manage_folderCreate, rename, delete or subscribe a folderADestructive
Folder housekeeping. action: create (path like "INBOX/receipts/2026"), rename (path -> new_path, also moves it), delete (must be empty unless force=true; force deletes every message in it permanently), subscribe / unsubscribe (whether mail apps show it).
Inputs: path (required), action (required), force, new_path.
mailbox_move_messagesMove, archive, trash or report spamA
Move many messages: to any folder, or archive / trash / junk (spam) / not_junk (back to INBOX). Select by uids or a Gmail-style query. Use dry_run first for big query selections. Trash can be undone by moving back.
Inputs: to (required), max, uids, query, +3 more.
mailbox_pgp_keysPGP keysA
Manage PGP keys for encrypted and signed mail. status: is your private key set up (needed to decrypt and sign) and is your public key findable; list: public keys in the local keyring; lookup: find someone's key (local keyring, then their own Web Key Directory; keys.openpgp.org only with keyserver=true) and save it; import: add a key from armored text, a .asc file, or a message's key attachment (folder+uid); export_own: write your public key to a file to share. Encrypt/sign when sending with encrypt/sign on mailbox_send_message, mailbox_reply, mailbox_forward and mailbox_create_draft; mailbox_get_message decrypts and checks signatures automatically.
Inputs: action (required), uid, file, email, +4 more.
mailbox_read_noteRead a shared noteARead-only
Read a mailbox.org shared note (notes.mailbox.org link or note id) as plain text or HTML. Note links are listed on the console Notes page (mailbox_account_settings topic notes).
Inputs: note (required), format.
mailbox_remove_aliasRemove an aliasADestructive
Delete an alias from mailbox.org (needs MAILBOX_API_KEY; mail to it will bounce, and mailbox.org blocks the name for a while) and mark it removed in the register. Use this to let a temporary alias go now.
Inputs: address (required), confirm (required), forget_only.
mailbox_replyReply to a messageA
Reply (or reply-all) to a message with correct threading headers and the original quoted below. mode 'send' sends now; 'draft' saves to Drafts for review.
Inputs: uid (required), body (required), from, mode, +6 more.
mailbox_save_contactCreate or update a contactA
Create a contact (omit href) or update one (give href from mailbox_search_contacts). On update only the fields you pass change; everything else in the card is kept.
Inputs: href, note, title, emails, +9 more.
mailbox_save_eventCreate or update a calendar eventA
Create an event (omit href) or update one (href from mailbox_list_events). start/end as YYYY-MM-DD for all-day, or ISO times with offset (2026-11-24T15:00:00-08:00). Only passed fields change.
Inputs: end, href, notes, start, +3 more.
mailbox_save_taskCreate, update or complete a taskA
Create a task (omit href) or update one (href from mailbox_list_tasks): title, notes, due date, priority, and done=true/false to complete or reopen. Only passed fields change.
Inputs: due, done, href, notes, +3 more.
mailbox_search_contactsSearch contactsARead-only
Search the mailbox.org address book(s) by name, email, phone, company or category. Empty query lists everyone. Returns each contact's href for mailbox_save_contact / mailbox_delete_contact.
Inputs: limit, query, offset, address_book, +1 more.
mailbox_search_messagesSearch messagesARead-only
Search mail with Gmail-style syntax and list matches newest first (subject, sender, date, folder, UID, read/star/color/labels, attachments, newsletter). Use the folder + UID with the other mailbox_ tools. Gmail-style query. Examples: from:amazon is:unread | subject:"invoice" newer_than:30d | has:attachment larger:5M | label:$purchases | color:red | is:starred -from:me | has:unsubscribe older_than:6m | (from:a OR from:b) | in:Archive. Bare words search headers and body. Empty = all messages.
Inputs: limit, query, offset, folders, +1 more.
mailbox_send_draftSend a draftADestructive
Send a message that is already in Drafts (by UID), save it to Sent and remove the draft.
Inputs: uid (required).
mailbox_send_messageSend an emailA
Send a new email through mailbox.org SMTP and save a copy in Sent. Supports aliases as sender (from), cc, bcc, HTML, local file attachments, and PGP encrypt/sign. For replies use mailbox_reply so threading headers are set.
Inputs: cc, to, bcc, body, +8 more.
mailbox_set_vacationOut-of-office auto-replyAIdempotent
Turn the automatic vacation reply on or off (a Sieve rule named 'Vacation notice', placed first). Optional start/end dates limit when it answers; each sender gets at most one reply per days.
Inputs: enabled (required), end, days, start, +3 more.
mailbox_spam_settingsSpam protection and blocked sendersA
Read or change mailbox.org spam protection, and manage the blocked-sender list. action: get, set (greylist, rbl, smtp_plausibility, tag2level, killevel, route_to), list_blocked, block (address), unblock (id from list_blocked). Needs MAILBOX_API_KEY.
Inputs: action (required), id, address, settings.
mailbox_unsubscribeUnsubscribe (or subscribe) from a mailing listA
Unsubscribe using a message's List-Unsubscribe header: one-click web unsubscribe (RFC 8058) when offered, else an unsubscribe email, else returns the link to open in the browser. Optional cleanup: also_filter files future mail from that sender into a folder (e.g. Trash), also_move moves existing mail from that sender. action=subscribe uses List-Subscribe when present.
Inputs: uid (required), action, folder, method, +2 more.
mailbox_update_aliasExtend or change an aliasA
Extend a temporary alias (extend_days or new expires_on), make it permanent or temporary, change its purpose or reminder lead time. Updates the local register. For a disposable address (...@temp.mailbox.org), extend it in the mailbox.org settings first (Disposable addresses > Extend) and pass the new expires_on it shows.
Inputs: address (required), kind, purpose, expires_on, +2 more.
mailbox_update_filterChange, switch off, move or delete a filterADestructive
Change one filter, chosen by number or name. action: enable, disable (kept but inactive), delete, move (to new position), rename, or replace (new conditions/actions, or raw Sieve code for advanced rules). Backed up locally before saving.
Inputs: action (required), name, index, match, +5 more.
mailbox_update_messagesMark, star, color or label messagesAIdempotent
Change state on many messages at once: read/unread, star, OX color (red, orange, yellow, light green, green, light blue, blue, purple, pink, gray), and labels (IMAP keywords such as $purchases, $social or your own words; shown as categories/labels). Select by uids or by a Gmail-style query. Nothing is moved or deleted.
Inputs: max, star, uids, color, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 50 tools
Most tools have clearly distinct resource/action targets, and descriptions explain when to use search vs. get, send vs. draft, move vs. delete, etc. Some boundaries still require care, especially around mailbox_list_senders vs. mailbox_list_subscriptions and the generic save/update patterns for events, tasks, and contacts.
Names consistently use the mailbox_ prefix and snake_case, with most following verb_noun patterns such as mailbox_search_messages and mailbox_create_filter. A few are noun-only or diagnostic (mailbox_backups, mailbox_spam_settings, mailbox_pgp_keys, mailbox_check_connection), and save_* is used for create-or-update, but the convention remains readable.
50 tools is far above the typical 3-15 range and feels heavy even for a broad mailbox.org suite. Several areas could be consolidated or grouped more tightly, such as account diagnostics, alias reminders, filter management, and drive housekeeping.
The surface covers mail lifecycle, folders, filters, vacation, aliases, subscriptions, account diagnostics, spam, backups, contacts, tasks, calendar events, Drive, PGP, notes, and connection checks. Core CRUD and lifecycle workflows are present across the major domains, with only minor limitations such as notes being read-only.
Maintenance
Related MCP Connectors
Your mailbox at GMX, Yahoo, AOL, IONOS, Bluewin or your web host, for your AI assistant.
Give AI agents their own email inboxes: list, read and send mail via scoped, revocable OAuth grants.
Private, EU-hosted email for AI agents over JMAP: read, search, reply, draft, organize, send.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and manage email, contacts, and calendar data, including sending/reply, search, attachments, drafts, labels, and CalDAV events.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to read, search, send, draft, reply to, and organize email, manage contacts, and handle calendar events through the JMAP and CalDAV APIs. It also supports attachments, bulk operations, mailbox/label management, and account statistics.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to manage email, contacts, and calendar data through JMAP, CalDAV, and WebDAV APIs, including sending, replying, searching, attachments, labels, and bulk operations.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and manage email, contacts, and calendar data over JMAP/CalDAV/WebDAV, including searching, sending, threading, attachments, contacts, events, and mailbox operations.MIT