This MCP server provides a multi-account email service for the Model Context Protocol, allowing LLMs to read, send, search, and organize emails via IMAP/SMTP with features like connection pooling and rate limiting.
From the registry: Multi-account IMAP/SMTP email server with 22 tools for reading, sending, searching, and organizing.
$ go install github.com/boutquin/mcp-server-email/cmd/mcp-server-email@latesthttps://github.com/boutquin/mcp-server-email/releases$ chmod 600 ~/.config/mcp-email/accounts.jsonPlease install the `email-boutquin` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install mcp-server-email binary** — Install via Go, Homebrew, or download prebuilt binary. Run: `go install github.com/boutquin/mcp-server-email/cmd/mcp-server-email@latest` (https://github.com/boutquin/mcp-server-email/releases)
- **Create accounts config file** — Create ~/.config/mcp-email/accounts.json with your IMAP/SMTP account credentials, then chmod 600. Run: `chmod 600 ~/.config/mcp-email/accounts.json`
Canonical MCP server config (stdio transport):
- command: `mcp-server-email`
- args: []
- required environment variables:
- `EMAIL_CONFIG_FILE`: Path to JSON config file with accounts. One of EMAIL_CONFIG_FILE or EMAIL_ACCOUNTS required. (example: `<path-to-accounts.json>`)
- optional environment variables:
- `EMAIL_ACCOUNTS`: Inline JSON array of account configs (alternative to EMAIL_CONFIG_FILE). (example: `<inline-accounts-json>`)
- `EMAIL_DEFAULT_ACCOUNT`: Default account ID (defaults to first account). (example: `<your-account-id>`)
- `EMAIL_IMAP_TIMEOUT_MS`: IMAP operation timeout in ms. (example: `30000`)
- `EMAIL_SMTP_TIMEOUT_MS`: SMTP operation timeout in ms. (example: `30000`)
- `EMAIL_IMAP_RATE_LIMIT`: IMAP requests per minute per account. (example: `60`)
- `EMAIL_SMTP_RATE_LIMIT`: SMTP sends per hour per account. (example: `100`)
- `MAX_ATTACHMENT_SIZE_MB`: Max size per attachment in MB. (example: `18`)
- `MAX_TOTAL_ATTACHMENT_SIZE_MB`: Max total attachment size per message in MB. (example: `18`)
- `MAX_DOWNLOAD_SIZE_MB`: Max attachment download size in MB. (example: `25`)
- `EMAIL_POOL_CLOSE_TIMEOUT_MS`: Connection pool close timeout in ms. (example: `5000`)
- `EMAIL_DEBUG`: Enable debug logging to stderr. (example: `false`)
- `LOG_LEVEL`: Log level: debug, info, warn, error. (example: `info`)
- `LOG_FORMAT`: Log format: json or text. (example: `json`)
Note: Multi-account IMAP/SMTP email server in Go. Auto-detects settings for Gmail/Outlook/Yahoo/iCloud/Fastmail/Zoho. Supports OAuth2 device flow for Gmail/Outlook.
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_CONFIG_FILErequiredPath to JSON config fileEMAIL_ACCOUNTSrequiredJSON array of account configs (inline)MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API