SMTP logo

SMTP

Sends SMTP mail through an allowlist, fixed sender, rate limits, previews, and human approval.

Install SMTP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "smtp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/smtp-mcp"
      ],
      "env": {
        "SMTP_HOST": "YOUR_VALUE_HERE",
        "SMTP_USER": "YOUR_VALUE_HERE",
        "SMTP_PASSWORD": "YOUR_VALUE_HERE",
        "SMTP_FROM": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env SMTP_HOST=YOUR_VALUE_HERE --env SMTP_USER=YOUR_VALUE_HERE --env SMTP_PASSWORD=YOUR_VALUE_HERE --env SMTP_FROM=YOUR_VALUE_HERE --transport stdio smtp -- npx -y @ni-c/smtp-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @ni-c/smtp-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

SMTP MCP server connects MCP clients to an authenticated SMTP submission server for sending mail from one fixed address. Sending is disabled by default, and enabled messages must pass recipient allowlist checks, configured limits, and human approval through MCP elicitation. It provides inspection and testing tools for server details, recipient validation, message previews, and TLS authentication without sending mail. Reach for SMTP when an agent needs controlled outbound email rather than mailbox access.

Use cases

  • Send approved notifications from a fixed SMTP address
  • Validate recipients before opening an SMTP connection
  • Preview generated messages before delivery
  • Test SMTP credentials and TLS negotiation
  • Restrict outbound mail to approved addresses or domains

Key features

  • SMTP submission with STARTTLS or implicit TLS
  • Fixed sender and optional Reply-To
  • Recipient allowlist for To, Cc, and Bcc
  • Human approval for every message
  • Recipient, rate, message-size, and attachment limits
  • Connection testing and message preview tools

Tools4

What SMTP lets your agent do. Expand a tool for its parameters.

Self-reported~108 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @ni-c/smtp-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1kPackage downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed4Callable tools this server registers over MCP.

How SMTP works

What SMTP MCP server does

SMTP MCP server gives an MCP client a controlled path to submit email through an SMTP server. It uses one configured sender and does not expose a from parameter to the model. The server can be used for outbound messages, while its controls constrain who may receive them and how much can be sent.

Sending is disabled unless SMTP_ALLOW_SEND=true. When enabled, SMTP_ALLOWED_RECIPIENTS defines the permitted recipients using individual addresses, domains such as @example.net, or * for unrestricted addressing. To, Cc, and Bcc recipients are checked before an SMTP connection is opened.

Each message requires human approval through MCP elicitation. The approval request presents the recipients, subject, and Bcc values on separate labelled lines. Configured recipient, message-size, attachment-size, and hourly-send limits are also applied.

How it works

The server connects to an SMTP submission service using the configured host, port, credentials, and TLS mode. Supported TLS modes are starttls, implicit, and none; STARTTLS is required rather than opportunistic when that mode is selected. The test_connection tool connects, negotiates TLS, authenticates, and disconnects without sending a message, with a ten-second minimum interval between tests.

Before sending, recipient validation and message construction checks can be run independently. preview_mail builds the same message that send_mail would build and displays it without delivery. The configured reply-to address, signature, attachment directory, attachment type allowlist, and size ceilings affect message composition when used.

Setup and configuration

Use Node.js 24 or newer and an SMTP account permitted to send through a submission server, commonly on port 587 or 465. Providers with two-factor authentication may require an app-specific password.

Required connection settings are SMTP_HOST, SMTP_USER, SMTP_PASSWORD, and SMTP_FROM. Set SMTP_REPLY_TO to direct replies elsewhere. SMTP_TLS defaults to starttls; SMTP_PORT selects the SMTP port and otherwise follows the documented port defaults for the TLS mode.

To register sending tools, set SMTP_ALLOW_SEND=true and provide SMTP_ALLOWED_RECIPIENTS. The default limits allow 10 distinct recipients per message, 20 sends per sliding hour, a 10 MiB composed-message maximum, and a 5 MiB maximum for each attachment. These values can be changed with the corresponding limit variables.

Attachments require SMTP_ATTACHMENT_DIR; unset, attachments are unavailable. SMTP_ATTACHMENT_TYPES controls permitted content types. SMTP_AUDIT_LOG adds an audit file alongside stderr output, and SMTP_SIGNATURE appends text after the standard signature delimiter.

Tools and capabilities

  • get_server_info reports the SMTP endpoint, fixed sender, recipient allowlist, limits, and whether sending is enabled.
  • validate_recipients checks which addresses are permitted without opening an SMTP connection.
  • preview_mail constructs and displays the message that sending would produce while running send checks.
  • test_connection verifies TLS negotiation and authentication without delivering mail.
  • send_mail submits an approved message through the configured SMTP server.

Limitations and notes

The sender is fixed by SMTP_FROM, and recipients outside the allowlist are rejected before connection setup. A wildcard recipient rule is available through SMTP_ALLOWED_RECIPIENTS=*, but it removes the address restriction. Sending remains unavailable until explicitly enabled.

Avoid SMTP_TLS=none for credentials or message delivery over an untrusted network. For self-signed certificates, the configuration guidance favors using a proper internal certificate authority over disabling certificate verification with an insecure TLS setting. Attachment availability and accepted types depend on the attachment directory and content-type configuration.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about SMTP

SMTP is an MCP server that connects AI clients to an authenticated SMTP submission server and provides tools to inspect configuration, validate recipients, preview messages, test TLS authentication, and send mail. It uses a fixed sender, checks an allowlist before connecting, and requires human approval for each message.

Install and run it with Node.js 24 or newer, then configure an SMTP host, username, password, and fixed sender. An SMTP account with permission to send through a submission server is required; two-factor-authenticated providers may require an app-specific password.

Set `SMTP_ALLOW_SEND=true` and provide `SMTP_ALLOWED_RECIPIENTS`. Sending tools are not registered while sending is disabled, and every enabled message still passes recipient checks, configured limits, and human approval.

Yes, but only when `SMTP_ALLOWED_RECIPIENTS=*` is configured. Otherwise, recipients must match an allowed address or domain, and To, Cc, and Bcc values are rejected before an SMTP connection is opened if they do not match.

Yes. SMTP is described as working with Claude Desktop through MCP, along with Claude Code and Codex. Configure it as an MCP server and provide the SMTP connection settings required by the deployment.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSMTP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/smtp?style=directory)](https://allmcps.com/mcp/smtp)
HTML Embed
<a href="https://allmcps.com/mcp/smtp"><img src="https://allmcps.com/api/badge/smtp?style=directory" alt="SMTP on AllMCPs" /></a>