Back to Home
gaddobenedetti icon

mcp_email

Verified Safe

by gaddobenedetti

Overview

Adds email functionality (POP3 and SMTP) to an AI agent for sending and receiving emails.

Installation

Run Command
uv --directory /Absolute/path/to/server/directory/mcp_email run main.py

Environment 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

Stats

Interest Score30
Security Score8
Cost ClassMedium
Avg Tokens1500
Stars1
Forks2
Last Update2025-11-27

Tags

EmailPOP3SMTPCommunicationAI Agent Tool