emperor-mail
Email over IMAP and SMTP: search, read messages and attachments, draft, and send when allowed
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
emperor-mailEnvironment variables
MAIL_USERrequired Login name for IMAP and SMTPMAIL_PASSWORDsecret Password or app password (set this or MAIL_OAUTH_TOKEN)MAIL_OAUTH_TOKENsecret OAuth 2.0 access token for XOAUTH2, instead of a password (Gmail, Microsoft 365)MAIL_FROMFrom address when the login name is not an address (default: the login name)IMAP_HOSTrequired IMAP server host nameIMAP_PORTIMAP port (default 993, or 143 with starttls)IMAP_SECURITYIMAP connection security; plain only for a loopback host (default tls, starttls on port 143)SMTP_HOSTSMTP server host name, needed only for sendSMTP_PORTSMTP port (default 465, or 587 with starttls)SMTP_SECURITYSMTP connection security; plain only for a loopback host (default tls, starttls on ports 587 and 25)
Frequently asked questions
What is emperor-mail?
Email over IMAP and SMTP: search, read messages and attachments, draft, and send when allowed
How do I install emperor-mail?
Follow the installation steps in its documentation, shown on this page and in its repository.
Does emperor-mail need an API key?
Yes. It expects MAIL_USER, MAIL_PASSWORD, MAIL_OAUTH_TOKEN, IMAP_HOST, which you set in its configuration.
Is emperor-mail open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains emperor-mail?
It is published by yarenty. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.