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_USEREnv var· requiredLogin name for IMAP and SMTPIMAP_HOSTEnv var· requiredIMAP server host nameserveArgument· requiredRun the MCP server--stdioArgument· requiredSpeak MCP over stdin/stdout with one mailbox from the environmentMAIL_PASSWORDEnv var· optional· secretPassword or app password (set this or MAIL_OAUTH_TOKEN)MAIL_OAUTH_TOKENEnv var· optional· secretOAuth 2.0 access token for XOAUTH2, instead of a password (Gmail, Microsoft 365)
Show 14 moreShow fewer
MAIL_FROMEnv var· optionalFrom address when the login name is not an address (default: the login name)IMAP_PORTEnv var· optionalIMAP port (default 993, or 143 with starttls)IMAP_SECURITYEnv var· optionalIMAP connection security; plain only for a loopback host (default tls, starttls on port 143)SMTP_HOSTEnv var· optionalSMTP server host name, needed only for sendSMTP_PORTEnv var· optionalSMTP port (default 465, or 587 with starttls)SMTP_SECURITYEnv var· optionalSMTP connection security; plain only for a loopback host (default tls, starttls on ports 587 and 25)MAIL_WRITABLEEnv var· optionaltrue offers the draft tool; unset, empty, false, 0, no or off keep the server read-onlyDefault:falseMAIL_ALLOW_SENDEnv var· optionaltrue offers the send tool and draft; unset, empty, false, 0, no or off keep send out of the tool listDefault:falseMAIL_SEND_ALLOWEnv var· optionalComma-separated recipients send may write to: addresses ([email protected]) or domains (@example.org). With sending on and none set, every recipient is refusedMAIL_FROM_ALLOWEnv var· optionalComma-separated From addresses send and draft may use: addresses or domains (@example.org). Unset: any--writableArgument· optionalOffer the draft tool (same as MAIL_WRITABLE=true); without it the server is read-only--allow-sendArgument· optionalOffer the send tool, and draft with it (same as MAIL_ALLOW_SEND=true); without it send is not offered--send-allowArgument· optionalRecipients send may write to: an address ([email protected]) or a domain (@example.org); repeatable or comma-separated (same as MAIL_SEND_ALLOW)--from-allowArgument· optionalFrom addresses send and draft may use: an address or a domain (@example.org); repeatable or comma-separated (same as MAIL_FROM_ALLOW). Unset: any
Links
Listed in the official MCP Registry since Nov 2, 2026. Mirrored daily; last checked Nov 26, 2026.