mcp_email
Verified Safeby gaddobenedetti
Overview
Adds email functionality (POP3 and SMTP) to an AI agent for sending and receiving emails.
Installation
uv --directory /Absolute/path/to/server/directory/mcp_email run main.pyEnvironment Variables
- EMAIL_USER
- EMAIL_PASS
- POP3_SERVER
- POP3_PORT
- SMTP_SERVER
- SMTP_PORT
Security Notes
Credentials are securely loaded from environment variables. However, the manual construction of email headers in the `sendEmail` helper function (using string concatenation for `fromAddress`, `toAddresses`, and `subject`) could potentially be vulnerable to header injection if the AI agent provides malformed inputs containing newline characters. Relying on standard email libraries' `MIMEMultipart` or `MIMEText` structures instead of raw string concatenation would improve robustness against such crafted inputs.
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.
whatsapp-mcp-ts
Connects a personal WhatsApp account to an AI agent, enabling the agent to search messages and contacts, list chats, retrieve message history, and send messages via WhatsApp.
outlook-mcp-server
The Outlook MCP Server provides a Model Context Protocol interface, allowing AI assistants to interact with Microsoft Outlook for email search, retrieval, composition, and sending functions.
acs-email-mcp-server
Provides an MCP (Model Context Protocol) server to enable AI agents to send emails using Azure Communication Services, supporting templates and attachments.