mailbox-org-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAILBOX_API_KEY | No | Business account API key that enables alias, spam, blocklist and backup tools. | |
| MAILBOX_SECRETS_FILE | No | Path to your .env file containing the mailbox.org credentials. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
mailbox.org account . Messages are addressed by folder + uid (from mailbox_search_messages). Search uses Gmail syntax (from:, to:, subject:, is:unread, has:attachment, newer_than:7d, larger:5M, label:, color:, in:folder, OR, -negation). Bulk tools take uids or a query, have a max cap and dry_run. Prefer drafts (mode "draft") for replies unless the user asked to send. PGP: encrypt/sign on send, reply, forward and drafts; mailbox_get_message decrypts and verifies; keys via mailbox_pgp_keys. Filters are server-side Sieve rules; aliases and temporary-alias expiry live in mailbox_list_aliases / mailbox_alias_reminders. Contacts/tasks/calendar and Drive need their own app passwords. Personal accounts have no API key: account settings (aliases, disposable addresses, spam, blocklist, recovery...) are changed in the browser; mailbox_account_settings gives each page address and steps, then record them with mailbox_add_alias / mailbox_update_alias. mailbox_check_connection shows which parts work.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mailbox_search_messagesA | 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. |
| mailbox_count_messagesA | 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. |
| mailbox_get_messageA | Read one message: headers, plain-text body (HTML converted), attachment list, and unsubscribe options. Does not mark it read unless mark_read is true. |
| mailbox_get_threadA | 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. |
| mailbox_download_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. |
| mailbox_send_messageA | 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. |
| mailbox_create_draftA | Save a new message in Drafts without sending it, so it can be reviewed in webmail or sent later with mailbox_send_draft. |
| mailbox_send_draftA | Send a message that is already in Drafts (by UID), save it to Sent and remove the draft. |
| mailbox_replyA | 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. |
| mailbox_forwardA | Forward a message with its attachments to new recipients, with an optional note above. mode 'draft' (default) saves for review; 'send' sends now. |
| mailbox_update_messagesA | 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. |
| mailbox_move_messagesA | 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. |
| mailbox_delete_messagesA | 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. |
| mailbox_list_sendersA | 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. |
| mailbox_list_foldersA | 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. |
| mailbox_get_storageA | 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. |
| mailbox_manage_folderA | 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). |
| mailbox_list_labelsA | 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. |
| mailbox_list_filtersA | 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. |
| mailbox_create_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. |
| mailbox_update_filterA | 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. |
| mailbox_filter_scriptA | 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). |
| mailbox_set_vacationA | 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 |
| mailbox_list_subscriptionsA | 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. |
| mailbox_unsubscribeA | 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. |
| mailbox_list_aliasesA | 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. |
| mailbox_add_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. |
| mailbox_update_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. |
| mailbox_remove_aliasA | 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. |
| mailbox_alias_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. |
| mailbox_get_accountA | Show the mailbox.org account record: plan, aliases, forwarding, quota usage (mail and drive) and other settings. Needs MAILBOX_API_KEY. |
| mailbox_spam_settingsA | 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. |
| mailbox_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. |
| mailbox_list_collectionsA | 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. |
| mailbox_search_contactsA | 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. |
| mailbox_save_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. |
| mailbox_delete_contactA | Delete a contact by href (from mailbox_search_contacts). |
| mailbox_list_tasksA | List mailbox.org tasks: open (default), completed or all; optionally due before a date or matching text. Sorted by due date. |
| mailbox_save_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. |
| mailbox_list_eventsA | List mailbox.org calendar events between two dates (default: today through 30 days ahead). |
| mailbox_save_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. |
| mailbox_delete_itemC | Delete a task or calendar event by href. |
| mailbox_drive_listA | 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. |
| mailbox_drive_downloadA | Download a file from mailbox.org Drive to a local folder (default your Downloads/mailbox-org). Returns the saved path. |
| mailbox_drive_uploadA | Upload a local file to a mailbox.org Drive folder. Refuses to overwrite unless overwrite=true. |
| mailbox_drive_manageA | Drive housekeeping: mkdir (path), move (path -> to, also renames), delete (path; folders recursively). |
| mailbox_pgp_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. |
| mailbox_account_settingsA | 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. |
| mailbox_read_noteA | 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). |
| mailbox_check_connectionA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.