E

Email

by boutquin · io.github.boutquin/email

Multi-account IMAP/SMTP email MCP server with 22 tools — read, send, search, organize, thread, attachments, and batch operations. Features connection pooling, rate limiting, retry with backoff, and OAuth2 device-code flow. Written in Go.

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-boutquin-email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "EMAIL_CONFIG_FILE=<YOUR_VALUE>",
        "-e",
        "EMAIL_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_FORMAT=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEBUG=<YOUR_VALUE>",
        "-e",
        "MAX_DOWNLOAD_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEFAULT_ACCOUNT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_POOL_CLOSE_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_TOTAL_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-boutquin-email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "EMAIL_CONFIG_FILE=<YOUR_VALUE>",
        "-e",
        "EMAIL_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_FORMAT=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEBUG=<YOUR_VALUE>",
        "-e",
        "MAX_DOWNLOAD_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEFAULT_ACCOUNT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_POOL_CLOSE_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_TOTAL_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-boutquin-email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "EMAIL_CONFIG_FILE=<YOUR_VALUE>",
        "-e",
        "EMAIL_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_FORMAT=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEBUG=<YOUR_VALUE>",
        "-e",
        "MAX_DOWNLOAD_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEFAULT_ACCOUNT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_POOL_CLOSE_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_TOTAL_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-boutquin-email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "EMAIL_CONFIG_FILE=<YOUR_VALUE>",
        "-e",
        "EMAIL_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_FORMAT=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEBUG=<YOUR_VALUE>",
        "-e",
        "MAX_DOWNLOAD_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEFAULT_ACCOUNT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_POOL_CLOSE_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_TOTAL_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-boutquin-email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "EMAIL_CONFIG_FILE=<YOUR_VALUE>",
        "-e",
        "EMAIL_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_FORMAT=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEBUG=<YOUR_VALUE>",
        "-e",
        "MAX_DOWNLOAD_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEFAULT_ACCOUNT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_POOL_CLOSE_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_TOTAL_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-boutquin-email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "EMAIL_CONFIG_FILE=<YOUR_VALUE>",
        "-e",
        "EMAIL_ACCOUNTS=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_FORMAT=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEBUG=<YOUR_VALUE>",
        "-e",
        "MAX_DOWNLOAD_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_DEFAULT_ACCOUNT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_IMAP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_RATE_LIMIT=<YOUR_VALUE>",
        "-e",
        "EMAIL_SMTP_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "-e",
        "EMAIL_POOL_CLOSE_TIMEOUT_MS=<YOUR_VALUE>",
        "-e",
        "MAX_TOTAL_ATTACHMENT_SIZE_MB=<YOUR_VALUE>",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
EMAIL_CONFIG_FILE No Path to a JSON config file containing email account definitions.
EMAIL_ACCOUNTS secret No JSON array of account configurations (inline).
LOG_LEVEL No Log level (debug, info, warn, error). Default: info
LOG_FORMAT No Log format (json or text). Default: json
EMAIL_DEBUG No Enable debug logging to stderr. Default: false
MAX_DOWNLOAD_SIZE_MB No Max size allowed for attachment downloads in MB. Default: 25
EMAIL_DEFAULT_ACCOUNT No Default account ID to use when none is specified in tool calls.
EMAIL_IMAP_RATE_LIMIT No IMAP requests allowed per minute per account. Default: 60
EMAIL_IMAP_TIMEOUT_MS No IMAP operation timeout in milliseconds. Default: 30000
EMAIL_SMTP_RATE_LIMIT No SMTP sends allowed per hour per account. Default: 100
EMAIL_SMTP_TIMEOUT_MS No SMTP operation timeout in milliseconds. Default: 30000
MAX_ATTACHMENT_SIZE_MB No Max size allowed for a single attachment in MB. Default: 18
EMAIL_POOL_CLOSE_TIMEOUT_MS No Pool close timeout in milliseconds. Default: 5000
MAX_TOTAL_ATTACHMENT_SIZE_MB No Max total size for all attachments in a message in MB. Default: 18

Similar servers