Skip to main content

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_PASSWORD
    Env var· required· secret
    Password or app-specific password for SMTP authentication.
  • SMTP_HOST
    Env var· required
    Hostname of the SMTP server, e.g. smtp.example.net.
  • SMTP_USER
    Env var· required
    Username for SMTP authentication.
  • SMTP_FROM
    Env var· required
    The only sender this server will use, e.g. "Name <[email protected]>". There is no from parameter.
  • SMTP_PORT
    Env var· optional
    Port. Defaults to 587 for starttls, 465 for implicit, 25 for none.
  • SMTP_TLS
    Env var· optional
    starttls (default), implicit or none. STARTTLS is required, never opportunistic.
Show 14 more
  • SMTP_REPLY_TO
    Env var· optional
    Reply-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_SEND
    Env var· optional
    Set to "true" to register the sending tools. Defaults to false: the server cannot send until it is set.
  • SMTP_ALLOWED_RECIPIENTS
    Env var· optional
    Comma-separated addresses and @domains this server may write to. Required with SMTP_ALLOW_SEND=true; "*" allows any.
  • SMTP_MAX_RECIPIENTS
    Env var· optional
    Maximum distinct recipients across To, Cc and Bcc in one message. Default 10.
  • SMTP_MAX_SENDS_PER_HOUR
    Env var· optional
    Sliding hourly cap on messages sent. Default 20.
  • SMTP_MAX_MESSAGE_BYTES
    Env var· optional
    Maximum size of the composed message. Default 10485760.
  • SMTP_MAX_ATTACHMENT_BYTES
    Env var· optional
    Maximum size of a single attachment. Default 5242880.
  • SMTP_ATTACHMENT_DIR
    Env var· optional
    Directory attachments are read from. Unset means attachments are unavailable.
  • SMTP_ATTACHMENT_TYPES
    Env var· optional
    Comma-separated content types that may be attached. Defaults to a document and image allowlist.
  • SMTP_SIGNATURE
    Env var· optional
    Text appended below the standard signature delimiter of every message.
  • SMTP_AUDIT_LOG
    Env var· optional
    File the audit lines are appended to, in addition to stderr.
  • SMTP_ALLOW_TOOLS
    Env var· optional
    Comma-separated tool names, a prefix with one trailing *, or "essential" for the curated preset.
  • SMTP_DENY_TOOLS
    Env var· optional
    Comma-separated tool names or prefixes to remove, applied after SMTP_ALLOW_TOOLS.
  • SMTP_INSECURE_TLS
    Env var· optional
    Set to "true" to accept self-signed certificates. Prefer a proper internal CA.

Listed in the official MCP Registry since Nov 24, 2026. Mirrored daily; last checked Nov 26, 2026.