mcp-email-server
Verified Safeby 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
docker run -it ghcr.io/ai-zerolab/mcp-email-server:latestEnvironment 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
zeromcp
A minimal, pure Python Model Context Protocol (MCP) server for exposing tools, resources, and prompts via HTTP/SSE and Stdio transports.
memory-mcp-server
Provides a long-term memory server using the Model Context Protocol (MCP) to store and retrieve context for Large Language Models (LLMs).
polybrain-mcp
Connects AI agents to multiple LLM models, providing conversation history management and model switching capabilities.
imap-readonly-mcp
Exposes read-only access to email mailboxes (IMAP, POP3, Microsoft Graph) via Model Context Protocol for AI agents.