Skip to main content

emperor-mail

io.github.yarenty/emperor-mail

v0.1.3Updated Nov 2, 2026stdio · Cargo

Email over IMAP and SMTP: search and read messages and attachments; draft and send when switched on

Install

This server doesn't publish a package or endpoint we can turn into a one-line install. See its links below.

Configuration

20 settings.

  • MAIL_USER
    Env var· required
    Login name for IMAP and SMTP
  • IMAP_HOST
    Env var· required
    IMAP server host name
  • serve
    Argument· required
    Run the MCP server
  • --stdio
    Argument· required
    Speak MCP over stdin/stdout with one mailbox from the environment
  • MAIL_PASSWORD
    Env var· optional· secret
    Password or app password (set this or MAIL_OAUTH_TOKEN)
  • MAIL_OAUTH_TOKEN
    Env var· optional· secret
    OAuth 2.0 access token for XOAUTH2, instead of a password (Gmail, Microsoft 365)
Show 14 more
  • MAIL_FROM
    Env var· optional
    From address when the login name is not an address (default: the login name)
  • IMAP_PORT
    Env var· optional
    IMAP port (default 993, or 143 with starttls)
  • IMAP_SECURITY
    Env var· optional
    IMAP connection security; plain only for a loopback host (default tls, starttls on port 143)
  • SMTP_HOST
    Env var· optional
    SMTP server host name, needed only for send
  • SMTP_PORT
    Env var· optional
    SMTP port (default 465, or 587 with starttls)
  • SMTP_SECURITY
    Env var· optional
    SMTP connection security; plain only for a loopback host (default tls, starttls on ports 587 and 25)
  • MAIL_WRITABLE
    Env var· optional
    true offers the draft tool; unset, empty, false, 0, no or off keep the server read-onlyDefault: false
  • MAIL_ALLOW_SEND
    Env var· optional
    true offers the send tool and draft; unset, empty, false, 0, no or off keep send out of the tool listDefault: false
  • MAIL_SEND_ALLOW
    Env var· optional
    Comma-separated recipients send may write to: addresses ([email protected]) or domains (@example.org). With sending on and none set, every recipient is refused
  • MAIL_FROM_ALLOW
    Env var· optional
    Comma-separated From addresses send and draft may use: addresses or domains (@example.org). Unset: any
  • --writable
    Argument· optional
    Offer the draft tool (same as MAIL_WRITABLE=true); without it the server is read-only
  • --allow-send
    Argument· optional
    Offer the send tool, and draft with it (same as MAIL_ALLOW_SEND=true); without it send is not offered
  • --send-allow
    Argument· optional
    Recipients send may write to: an address ([email protected]) or a domain (@example.org); repeatable or comma-separated (same as MAIL_SEND_ALLOW)
  • --from-allow
    Argument· optional
    From addresses send and draft may use: an address or a domain (@example.org); repeatable or comma-separated (same as MAIL_FROM_ALLOW). Unset: any

Listed in the official MCP Registry since Nov 2, 2026. Mirrored daily; last checked Nov 26, 2026.