email-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| IMAP_HOST | No | IMAP server hostname. | |
| IMAP_PORT | No | IMAP port. Default 993 (always TLS). | |
| SMTP_HOST | No | SMTP server hostname. | |
| SMTP_PORT | No | SMTP port. Default 465 (implicit TLS); any other port uses STARTTLS. | |
| EMAIL_FROM | No | From header when it differs from the login, e.g. "Alex <me@mydomain.com>". | |
| EMAIL_ADDRESS | No | Your email address, also the login username. | |
| EMAIL_ACCOUNTS | No | Comma-separated short names for several mailboxes. For each name, prefix every mailbox variable with the upper-cased name, e.g. WORK_EMAIL_ADDRESS, WORK_EMAIL_PASSWORD, WORK_IMAP_HOST, WORK_SMTP_HOST. | |
| EMAIL_PASSWORD | No | App password or authorization code. Not needed when OUTLOOK_CLIENT_ID is set. | |
| OUTLOOK_TENANT | No | Outlook tenant. Default common. | |
| EMAIL_SAVE_SENT | No | true / false: save a copy of sent mail to Sent. Default: off for Gmail and Outlook, on elsewhere. | |
| OUTLOOK_CLIENT_ID | No | Outlook only. Setting it switches the mailbox to OAuth2. | |
| EMAIL_TRASH_FOLDER | No | Folder used by delete_emails. Default: the server's Trash. | |
| OUTLOOK_TOKEN_CACHE | No | Token cache path. Default ~/.email-mcp/msal-cache.json. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read, search, organize and send email. UIDs are per folder: always pass the folder they came from. Mailboxes: WORK, PERSONAL (default WORK); pick one with the account parameter.
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 |
|---|---|
| list_foldersB | List all folders. specialUse marks Inbox/Sent/Drafts/Trash/Junk/Archive. |
| search_emailsB | Search a folder, newest first. All filters are optional and combined with AND. |
| read_emailB | Read one email: headers, text body (HTML converted to text) and attachment list. |
| download_attachmentB | Save an email attachment to a local directory. Returns the saved path. |
| send_emailB | Send an email, optionally as a reply (pass reply_to_uid) and with attachments. |
| save_draftA | Save an email to the Drafts folder without sending it, so a human can review and send it. |
| forward_emailB | Forward an email (with its attachments) to new recipients, with an optional note on top. |
| move_emailsB | Move emails to another folder (archive, categorize). |
| delete_emailsA | Delete emails by moving them to Trash (recoverable; never permanent). |
| set_flagsA | Mark emails read/unread (seen) and starred/unstarred (flagged). Omitted values stay unchanged. |
| create_folderD | Create a folder. |
| rename_folderC | Rename or move a folder. |
| delete_folderA | Delete an EMPTY folder. Move or delete its emails first. |
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 13 tools
Each tool has a clearly distinct operation: folder listing/creation/renaming/deletion, email search/read/send/save/forward/move/delete, flag updates, and attachment download. There is minimal overlap because reply is handled as an option on send_email, while save_draft and forward_email remain clearly separate workflows.
All tool names use a consistent snake_case verb_noun pattern such as list_folders, read_email, move_emails, and delete_folder. This makes the set predictable and easy to scan.
The server exposes 13 tools, which is well-scoped for email management. Folders, messages, drafts, attachments, and flags each get focused operations without an excessive number of tools.
The tool set covers the main email lifecycle: folder CRUD, search/read, send/reply, save draft, forward, move, delete, flags, and attachment download. Minor gaps exist, such as explicit draft editing or reply-all, but core workflows are well supported.