Better Email MCP is an IMAP/SMTP email server designed for AI agents, supporting multi-account management and auto-discovery of provider settings.
From the registry: IMAP/SMTP MCP server for Email with composite tools. Multi-account, auto-discovery.
Please install the `better-email-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Email account + app password** — Generate an app password for each email account (Gmail, Yahoo, iCloud, Zoho). Outlook uses OAuth2 device code flow automatically.
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","@n24q02m/better-email-mcp"]
- optional environment variables:
- `EMAIL_CREDENTIALS`: Comma-separated credentials in email:app-password form (or email:pass:imap.host for custom IMAP). Optional — server can instead use a browser-based relay setup on first run. (example: `<your-email>:<your-app-password>`)
Note: Hosted multi-user HTTP endpoint uses OAuth 2.1 for credentials. stdio npx path is the default local install; zero-config relay setup is offered if EMAIL_CREDENTIALS is unset.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.EMAIL_CREDENTIALSrequiredEmail credentials in the format `user@gmail.com:app-password`, comma-separated for multi-accountPUBLIC_URLrequiredServer's public URL for OAuth redirectsDCR_SERVER_SECRETrequiredHMAC secret for stateless client registrationLightweight DMARC parser: auto-fetch email reports, visualize compliance in a single all-in-one app