SMTP
io.github.ni-c/smtp-mcp
v0.3.0Updated Nov 24, 2026stdio · npmstdio · Docker
MCP server that sends mail over SMTP, gated behind an allowlist and a human confirmation
Install
Needs 1 secret. Replace 4 placeholders with your own values.
Run in your terminal. Replace 4 placeholders.
claude mcp add smtp-mcp -e 'SMTP_HOST=<your-smtp-host>' -e 'SMTP_USER=<your-smtp-user>' -e 'SMTP_PASSWORD=<your-smtp-password>' -e 'SMTP_FROM=<your-smtp-from>' -- npx -y @ni-c/[email protected]Configuration
20 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
SMTP_PASSWORDEnv var· required· secretPassword or app-specific password for SMTP authentication.SMTP_HOSTEnv var· requiredHostname of the SMTP server, e.g. smtp.example.net.SMTP_USEREnv var· requiredUsername for SMTP authentication.SMTP_FROMEnv var· requiredThe only sender this server will use, e.g. "Name <[email protected]>". There is no from parameter.SMTP_PORTEnv var· optionalPort. Defaults to 587 for starttls, 465 for implicit, 25 for none.SMTP_TLSEnv var· optionalstarttls (default), implicit or none. STARTTLS is required, never opportunistic.
Show 14 moreShow fewer
SMTP_REPLY_TOEnv var· optionalReply-To header on every message, e.g. "Team <[email protected]>". Unset means no Reply-To header and replies go to SMTP_FROM. There is no reply_to parameter.SMTP_ALLOW_SENDEnv var· optionalSet to "true" to register the sending tools. Defaults to false: the server cannot send until it is set.SMTP_ALLOWED_RECIPIENTSEnv var· optionalComma-separated addresses and @domains this server may write to. Required with SMTP_ALLOW_SEND=true; "*" allows any.SMTP_MAX_RECIPIENTSEnv var· optionalMaximum distinct recipients across To, Cc and Bcc in one message. Default 10.SMTP_MAX_SENDS_PER_HOUREnv var· optionalSliding hourly cap on messages sent. Default 20.SMTP_MAX_MESSAGE_BYTESEnv var· optionalMaximum size of the composed message. Default 10485760.SMTP_MAX_ATTACHMENT_BYTESEnv var· optionalMaximum size of a single attachment. Default 5242880.SMTP_ATTACHMENT_DIREnv var· optionalDirectory attachments are read from. Unset means attachments are unavailable.SMTP_ATTACHMENT_TYPESEnv var· optionalComma-separated content types that may be attached. Defaults to a document and image allowlist.SMTP_SIGNATUREEnv var· optionalText appended below the standard signature delimiter of every message.SMTP_AUDIT_LOGEnv var· optionalFile the audit lines are appended to, in addition to stderr.SMTP_ALLOW_TOOLSEnv var· optionalComma-separated tool names, a prefix with one trailing *, or "essential" for the curated preset.SMTP_DENY_TOOLSEnv var· optionalComma-separated tool names or prefixes to remove, applied after SMTP_ALLOW_TOOLS.SMTP_INSECURE_TLSEnv var· optionalSet to "true" to accept self-signed certificates. Prefer a proper internal CA.
Links
Listed in the official MCP Registry since Nov 24, 2026. Mirrored daily; last checked Nov 26, 2026.