E

Emperor Mail

by yarenty · io.github.yarenty/emperor-mail

Enables agents to search, read, and draft email over IMAP and SMTP, including attachments and OAuth, with sending disabled by default and restricted to allowlisted recipients when enabled.

cargo Local · stdio GlamaOfficial MCP Registry High confidence

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MAIL_USER Yes Mailbox login (usually the address).
MAIL_PASSWORD secret No Password or app password; or use MAIL_OAUTH_TOKEN.
MAIL_OAUTH_TOKEN secret No OAuth2 access token (Gmail, Microsoft 365) instead of a password.
MAIL_FROM No From address for draft and send.
IMAP_HOST Yes IMAP server host.
IMAP_PORT No IMAP port (default 993).
IMAP_SECURITY No tls, starttls or plain.
SMTP_HOST No SMTP server host.
SMTP_PORT No SMTP port (default 465).
SMTP_SECURITY No tls, starttls or plain.
MAIL_WRITABLE No List the draft tool. true, 1, yes or on turns it on; unset or false leaves it off. Default: false
MAIL_ALLOW_SEND No List the send tool (implies writable). true, 1, yes or on turns it on; unset or false leaves it off. Default: false
MAIL_SEND_ALLOW No Recipients send may write to: addresses or @domains, comma-separated.
MAIL_FROM_ALLOW No From addresses send and draft may use: addresses or @domains.
RUST_LOG No Log level; logs go to stderr. Default: info

Similar servers