mail-mcp
by martinzarfl
Overview
Enables AI assistants to securely send, read, manage, and organize emails via SMTP and IMAP.
Installation
npx -y martinzarfl/mail-mcpEnvironment Variables
- SMTP_HOST
- SMTP_PORT
- SMTP_USER
- SMTP_PASS
- SMTP_FROM
- SMTP_SECURE
- IMAP_HOST
- IMAP_PORT
- IMAP_USER
- IMAP_PASS
- IMAP_TLS
- TRANSPORT
- PORT
- SSE_PATH
- HOST
- AUTH_HOST
- AUTH_PORT
- AUTH_REALM
- OAUTH_CLIENT_ID
- OAUTH_CLIENT_SECRET
Security Notes
The server hardcodes `tlsOptions: { rejectUnauthorized: false }` for IMAP connections within `createImapConnection`. This critical vulnerability disables TLS certificate validation, making IMAP connections susceptible to Man-in-the-Middle (MITM) attacks, even if TLS is ostensibly enabled. While credentials are managed via environment variables and the SSE transport supports OAuth 2.0, this IMAP flaw severely compromises the overall security for sensitive email data.
Similar Servers
mcp-email-server
This server allows MCP clients to interact with email accounts via IMAP and SMTP protocols, enabling functionalities like listing, fetching, sending, and deleting emails.
gmail-mcp
Manages Gmail emails programmatically, enabling AI systems to read, send, archive, and perform other email operations on behalf of a user.
outlook-mcp-server
AI-powered local email management for Microsoft Outlook, enabling search, composition, organization, and batch forwarding of emails using natural language commands.
resend-streamable-mcp-server
Facilitates AI agent management of email contacts, segments, newsletters, and campaigns via Resend.