Mailoo - Email MCP Server
by github.com/Bitfloo · v0.3.6 · updated Nov 24, 2026
Email MCP server for AI agents: IMAP/SMTP, Gmail, Outlook, calendar, ManageSieve, AI triage, OAuth2.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @bitfloo/[email protected]Environment variables
MCP_EMAIL_ADDRESSrequiredEmail address. Required for the environment-variable account.
MCP_EMAIL_PASSWORDsecretPassword or app password. Required unless MCP_EMAIL_OAUTH2_PROVIDER is set.
MCP_EMAIL_IMAP_HOSTrequiredIMAP server hostname.
MCP_EMAIL_SMTP_HOSTrequiredSMTP server hostname.
MCP_EMAIL_ACCOUNT_NAMEAccount name. Defaults to default.
MCP_EMAIL_FULL_NAMEDisplay name on sent mail.
MCP_EMAIL_USERNAMELogin username. Defaults to the email address.
MCP_EMAIL_IMAP_PORTIMAP port. Defaults to 993.
MCP_EMAIL_IMAP_TLSSet to false to turn off implicit IMAP TLS. Defaults to true.
MCP_EMAIL_IMAP_STARTTLSSet to true to upgrade IMAP with STARTTLS. Defaults to false.
MCP_EMAIL_IMAP_VERIFY_SSLSet to false to skip IMAP certificate verification. Defaults to true.
MCP_EMAIL_IMAP_DISABLE_IMAP4REV2Set to true to force IMAP4rev1 SEARCH.
MCP_EMAIL_SIEVE_HOSTManageSieve hostname. Defaults to the IMAP host.
MCP_EMAIL_SIEVE_PORTManageSieve port. Defaults to 4190.
MCP_EMAIL_SMTP_PORTSMTP port. Defaults to 465.
MCP_EMAIL_SMTP_TLSSet to false to turn off implicit SMTP TLS. Defaults to true.
MCP_EMAIL_SMTP_STARTTLSSet to true to upgrade SMTP with STARTTLS. Defaults to false.
MCP_EMAIL_SMTP_VERIFY_SSLSet to false to skip SMTP certificate verification. Defaults to true.
MCP_EMAIL_SMTP_POOL_ENABLEDSet to false to disable SMTP connection pooling. Defaults to true.
MCP_EMAIL_SMTP_POOL_MAX_CONNECTIONSMaximum pooled SMTP connections. Defaults to 1.
MCP_EMAIL_SMTP_POOL_MAX_MESSAGESMaximum messages per pooled SMTP connection. Defaults to 100.
MCP_EMAIL_OAUTH2_PROVIDEROAuth2 provider: google, microsoft, or custom. Configure custom in the config file: an account in the environment replaces the config file, so custom set here has no token_url or auth_url.
MCP_EMAIL_OAUTH2_CLIENT_IDOAuth2 client id.
MCP_EMAIL_OAUTH2_CLIENT_SECRETsecretOAuth2 client secret.
MCP_EMAIL_OAUTH2_REFRESH_TOKENsecretOAuth2 refresh token.
MCP_EMAIL_RATE_LIMITMaximum sends per minute. Defaults to 10.
MCP_EMAIL_READ_ONLYSet to true to omit write tools and mailbox writers.
MCP_EMAIL_SAVE_TO_SENTSet to false to skip the IMAP Sent copy after SMTP. Defaults to true.
MCP_EMAIL_WATCHER_ENABLEDSet to true to start the IMAP IDLE watcher.
MCP_EMAIL_WATCHER_FOLDERSComma-separated folders to watch. Defaults to INBOX.
MCP_EMAIL_WATCHER_IDLE_TIMEOUTIMAP IDLE timeout in seconds. Defaults to 1740.
MCP_EMAIL_HOOK_ON_NEW_EMAILWhat to do on arrival: triage, notify, or none.
MCP_EMAIL_HOOK_PRESETHook preset: inbox-zero, gtd, priority-focus, notification-only, or custom.
MCP_EMAIL_HOOK_AUTO_LABELSet to true to apply labels from hook triage.
MCP_EMAIL_HOOK_AUTO_FLAGSet to true to flag mail from hook triage.
MCP_EMAIL_HOOK_BATCH_DELAYSeconds to batch arrivals before hooks run. Defaults to 5.
MCP_EMAIL_HOOK_CUSTOM_INSTRUCTIONSExtra instructions appended to the hook preset.
MCP_EMAIL_ALERT_DESKTOPSet to true for desktop notifications.
MCP_EMAIL_ALERT_SOUNDSet to true to play a sound with desktop notifications.
MCP_EMAIL_ALERT_URGENCY_THRESHOLDMinimum urgency for an alert: urgent, high, normal, or low.
MCP_EMAIL_ALERT_WEBHOOK_URLsecretHTTP or HTTPS URL that receives alert POSTs.
MCP_EMAIL_ALERT_WEBHOOK_ALLOW_PRIVATESet to true to allow webhook targets on a LAN, VPN, or tailnet.
MCP_EMAIL_HOOK_AUTO_CALENDARSet to true to create calendar events from hook triage.
MCP_EMAIL_HOOK_CALENDAR_NAMECalendar name for automatic events.
MCP_EMAIL_HOOK_CALENDAR_ALARM_MINUTESMinutes before an automatic event to alarm. Defaults to 15.
MCP_EMAIL_HOOK_CALENDAR_CONFIRMSet to false to skip confirming automatic calendar events. Defaults to true.
MCP_EMAIL_SYSTEM_ONE_ENABLEDSet to true to classify residue mail with System One. Off by default.
MCP_EMAIL_HTTP_HOSTHTTP listen address. Defaults to loopback. The host argument wins.
MCP_EMAIL_HTTP_TOKENsecretBearer token. Required when the HTTP listen address is not loopback or MCP_EMAIL_HTTP_ALLOWED_HOSTS lists a non-loopback name.
MCP_EMAIL_HTTP_ALLOWED_HOSTSComma-separated Host names. Required for 0.0.0.0 and ::.
MCP_EMAIL_DEFAULT_ACCOUNTDefault account name or email address when the account parameter is omitted.
MCP_EMAIL_TOOLSETToolset profile to register: full, core, or minimal. Defaults to full.
More MCP servers
Bitget Agent Mcp
github.com/Bitget-AI
Official Bitget MCP Server for the Unified Trading Account (UTA v3) API.
Block Genomics — Nexus Protocol
github.com/BitmapAsset
Prove Bitcoin block ownership via BIP-322 and register sovereign AI agents on the Nexus Protocol.
Dear Agent
github.com/BitmapAsset
Your AI agent keeps your diary for you. Local-first, private, works in any agent.
probbit
github.com/BitmapAsset
A personality, mood and memory layer for AI agents, plus exact plans under hard rules. Offline.
Batcave Agent Services
github.com/Bjorn2-sol
MCP discovery and x402 checkout handoff for five paid Batcave agent products.
Batcave Detective Basic
github.com/Bjorn2-sol
Evidence-bound second-opinion audit of an agent conclusion against caller-supplied evidence.