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
This server allows MCP clients to interact with email accounts via IMAP and SMTP protocols, enabling functionalities like listing, fetching, sending, and deleting emails.
resend-streamable-mcp-server
Facilitates AI agent management of email contacts, segments, newsletters, and campaigns via Resend.
mcp_email
Adds email functionality (POP3 and SMTP) to an AI agent for sending and receiving emails.
imap-readonly-mcp
Exposes read-only access to email mailboxes (IMAP, POP3, Microsoft Graph) via Model Context Protocol for AI agents.