by gomcpgo
Overview
A Model Context Protocol (MCP) server for managing email operations via IMAP and SMTP, designed for LLM integration with multi-account support, caching, and draft management.
Installation
./run.sh runEnvironment Variables
- DEFAULT_ACCOUNT_ID
- ACCOUNT_{account_id}_EMAIL
- ACCOUNT_{account_id}_PASSWORD
- ACCOUNT_{account_id}_PROVIDER
- ACCOUNT_{account_id}_IMAP_SERVER
- ACCOUNT_{account_id}_IMAP_PORT
- ACCOUNT_{account_id}_SMTP_SERVER
- ACCOUNT_{account_id}_SMTP_PORT
- FILES_ROOT
- EMAIL_CACHE_MAX_SIZE
- EMAIL_MAX_ATTACHMENT_SIZE
Security Notes
The server explicitly uses app passwords for Gmail/Outlook for enhanced security. Sensitive credentials are read from environment variables and are stated to never be logged or exposed in error messages. Communication uses TLS for IMAP/SMTP. Cache files are stored with standard 0644 permissions. No obvious use of 'eval' or other highly dangerous dynamic execution methods within the Go source code. The `.env` file should be secured and not committed to version control.
Similar Servers
mcp-email-server
Provides IMAP and SMTP functionality as an MCP server, allowing clients to list, retrieve, send, delete, and download attachments from email accounts.
postmark-mcp
Provides a Model Context Protocol (MCP) server to enable AI assistants to send emails and manage templates via Postmark.
mcp_email
Adds email functionality (POP3 and SMTP) to an AI agent for sending and receiving emails.
microsoft-mcp
A comprehensive AI assistant toolkit for managing Microsoft 365 services including Outlook emails, Calendar events, OneDrive files, and Contacts.