Skip to main content
Glama
email-mcp

email-mcp

by a1exsun

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IMAP_HOSTNoIMAP server hostname.
IMAP_PORTNoIMAP port. Default 993 (always TLS).
SMTP_HOSTNoSMTP server hostname.
SMTP_PORTNoSMTP port. Default 465 (implicit TLS); any other port uses STARTTLS.
EMAIL_FROMNoFrom header when it differs from the login, e.g. "Alex <me@mydomain.com>".
EMAIL_ADDRESSNoYour email address, also the login username.
EMAIL_ACCOUNTSNoComma-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_PASSWORDNoApp password or authorization code. Not needed when OUTLOOK_CLIENT_ID is set.
OUTLOOK_TENANTNoOutlook tenant. Default common.
EMAIL_SAVE_SENTNotrue / false: save a copy of sent mail to Sent. Default: off for Gmail and Outlook, on elsewhere.
OUTLOOK_CLIENT_IDNoOutlook only. Setting it switches the mailbox to OAuth2.
EMAIL_TRASH_FOLDERNoFolder used by delete_emails. Default: the server's Trash.
OUTLOOK_TOKEN_CACHENoToken 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 13 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues