Back to Home
ai-zerolab icon

mcp-email-server

Verified Safe

by ai-zerolab

Overview

This MCP server enables interaction with email services (IMAP for incoming, SMTP for outgoing) through programmatic tools, allowing users to list, retrieve, send, and delete emails, and manage attachments. It's designed for integration with AI clients like Claude Desktop.

Installation

Run Command
docker run -it ghcr.io/ai-zerolab/mcp-email-server:latest

Environment Variables

  • MCP_EMAIL_SERVER_ACCOUNT_NAME
  • MCP_EMAIL_SERVER_FULL_NAME
  • MCP_EMAIL_SERVER_EMAIL_ADDRESS
  • MCP_EMAIL_SERVER_USER_NAME
  • MCP_EMAIL_SERVER_PASSWORD
  • MCP_EMAIL_SERVER_IMAP_HOST
  • MCP_EMAIL_SERVER_IMAP_PORT
  • MCP_EMAIL_SERVER_IMAP_SSL
  • MCP_EMAIL_SERVER_IMAP_USER_NAME
  • MCP_EMAIL_SERVER_IMAP_PASSWORD
  • MCP_EMAIL_SERVER_SMTP_HOST
  • MCP_EMAIL_SERVER_SMTP_PORT
  • MCP_EMAIL_SERVER_SMTP_SSL
  • MCP_EMAIL_SERVER_SMTP_START_SSL
  • MCP_EMAIL_SERVER_SMTP_USER_NAME
  • MCP_EMAIL_SERVER_SMTP_PASSWORD
  • MCP_EMAIL_SERVER_ENABLE_ATTACHMENT_DOWNLOAD
  • MCP_EMAIL_SERVER_CONFIG_PATH
  • MCP_EMAIL_SERVER_LOG_LEVEL
  • MCP_HOST
  • MCP_PORT

Security Notes

The server uses standard Python libraries for IMAP and SMTP (aioimaplib, aiosmtplib). Sensitive credentials are configured via a TOML file or environment variables, rather than being hardcoded in the source. A 'masked()' method is used for displaying account details without exposing passwords. A critical security control is the 'enable_attachment_download' setting, which is set to 'false' by default and must be explicitly enabled, mitigating risks associated with arbitrary file writes. Input validation is present through Pydantic models. No 'eval' statements or obfuscation were found. The primary network interactions are limited to IMAP/SMTP.

Similar Servers

Stats

Interest Score53
Security Score8
Cost ClassMedium
Avg Tokens5000
Stars113
Forks44
Last Update2025-12-09

Tags

MCPEmailIMAPSMTPPythonClaude DesktopCommunicationServer