SMTP
by github.com/ni-c · v0.3.0 · updated Nov 24, 2026
MCP server that sends mail over SMTP, gated behind an allowlist and a human confirmation
Run it locally
Install the package and point your AI client at it.
npm
npx -y @ni-c/[email protected]Environment variables
SMTP_HOSTrequiredHostname of the SMTP server, e.g. smtp.example.net.
SMTP_PORTPort. Defaults to 587 for starttls, 465 for implicit, 25 for none.
SMTP_TLSstarttls (default), implicit or none. STARTTLS is required, never opportunistic.
SMTP_USERrequiredUsername for SMTP authentication.
SMTP_PASSWORDrequiredsecretPassword or app-specific password for SMTP authentication.
SMTP_FROMrequiredThe only sender this server will use, e.g. "Name <[email protected]>". There is no from parameter.
SMTP_REPLY_TOReply-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_SENDSet to "true" to register the sending tools. Defaults to false: the server cannot send until it is set.
SMTP_ALLOWED_RECIPIENTSComma-separated addresses and @domains this server may write to. Required with SMTP_ALLOW_SEND=true; "*" allows any.
SMTP_MAX_RECIPIENTSMaximum distinct recipients across To, Cc and Bcc in one message. Default 10.
SMTP_MAX_SENDS_PER_HOURSliding hourly cap on messages sent. Default 20.
SMTP_MAX_MESSAGE_BYTESMaximum size of the composed message. Default 10485760.
SMTP_MAX_ATTACHMENT_BYTESMaximum size of a single attachment. Default 5242880.
SMTP_ATTACHMENT_DIRDirectory attachments are read from. Unset means attachments are unavailable.
SMTP_ATTACHMENT_TYPESComma-separated content types that may be attached. Defaults to a document and image allowlist.
SMTP_SIGNATUREText appended below the standard signature delimiter of every message.
SMTP_AUDIT_LOGFile the audit lines are appended to, in addition to stderr.
SMTP_ALLOW_TOOLSComma-separated tool names, a prefix with one trailing *, or "essential" for the curated preset.
SMTP_DENY_TOOLSComma-separated tool names or prefixes to remove, applied after SMTP_ALLOW_TOOLS.
SMTP_INSECURE_TLSSet to "true" to accept self-signed certificates. Prefer a proper internal CA.
Docker
docker run -i --rm ghcr.io/ni-c/smtp-mcp:0.3.0Environment variables
SMTP_HOSTrequiredHostname of the SMTP server, e.g. smtp.example.net.
SMTP_PORTPort. Defaults to 587 for starttls, 465 for implicit, 25 for none.
SMTP_TLSstarttls (default), implicit or none. STARTTLS is required, never opportunistic.
SMTP_USERrequiredUsername for SMTP authentication.
SMTP_PASSWORDrequiredsecretPassword or app-specific password for SMTP authentication.
SMTP_FROMrequiredThe only sender this server will use, e.g. "Name <[email protected]>". There is no from parameter.
SMTP_REPLY_TOReply-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_SENDSet to "true" to register the sending tools. Defaults to false: the server cannot send until it is set.
SMTP_ALLOWED_RECIPIENTSComma-separated addresses and @domains this server may write to. Required with SMTP_ALLOW_SEND=true; "*" allows any.
SMTP_MAX_RECIPIENTSMaximum distinct recipients across To, Cc and Bcc in one message. Default 10.
SMTP_MAX_SENDS_PER_HOURSliding hourly cap on messages sent. Default 20.
SMTP_MAX_MESSAGE_BYTESMaximum size of the composed message. Default 10485760.
SMTP_MAX_ATTACHMENT_BYTESMaximum size of a single attachment. Default 5242880.
SMTP_ATTACHMENT_DIRDirectory attachments are read from. Unset means attachments are unavailable.
SMTP_ATTACHMENT_TYPESComma-separated content types that may be attached. Defaults to a document and image allowlist.
SMTP_SIGNATUREText appended below the standard signature delimiter of every message.
SMTP_AUDIT_LOGFile the audit lines are appended to, in addition to stderr.
SMTP_ALLOW_TOOLSComma-separated tool names, a prefix with one trailing *, or "essential" for the curated preset.
SMTP_DENY_TOOLSComma-separated tool names or prefixes to remove, applied after SMTP_ALLOW_TOOLS.
SMTP_INSECURE_TLSSet to "true" to accept self-signed certificates. Prefer a proper internal CA.
More from github.com/ni-c
IMAP mailbox
github.com/ni-c
Read, search and organise any IMAP mailbox, with writes off by default
CalDAV calendars
github.com/ni-c
Read and write CalDAV calendars: events, tasks and journal entries over the open standard
mcp-hub
github.com/ni-c
Many stdio MCP servers from one container, published over HTTPS with OAuth 2.1 for any MCP client
CardDAV address books
github.com/ni-c
Read and write CardDAV address books: contacts, groups and photos over the open standard
Woodpecker CI
github.com/ni-c
Read Woodpecker CI repositories, pipelines and logs, and drive builds, secrets and crons
OpenStreetMap
github.com/ni-c
Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM
More MCP servers
Yugalinks Commerce Intelligence
github.com/nibinglobal
Read-only OECD trade research for countries, products, corridors, lane risk, and opportunities.
Noc Mcpserver
github.com/nice-one-code
MCP server exposing NiceOneCode's JSON-to-C# converter as an AI-callable tool.
Nicelydone
github.com/nicelydoneapp
Search real web app screens, UI elements, and user flows. Requires Premium access and OAuth.
NiceNIC MCP
github.com/nicenic-official
Check domain availability and prices, register and renew domains, and manage DNS through NiceNIC.
Commutescout
github.com/nicglazkov
Trip planning and best time to leave, with live road data from 37 US states, traffic, weather.
Gnosis MCP
github.com/nicholasglazer
Zero-config MCP server for searchable documentation. SQLite or PostgreSQL.