原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

SMTP

作者:ni-c版本 0.2.0i★ –i在你的电脑上运行
注册名称io.github.ni-c/smtp-mcp

安装

概览

作者提供的说明(英文原文)

MCP server that sends mail over SMTP, gated behind an allowlist and a human confirmation

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:SMTP_HOST, SMTP_USER, SMTP_PASSWORD, SMTP_FROM

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SMTP_HOST, SMTP_PORT, SMTP_TLS, SMTP_USER, SMTP_PASSWORD, SMTP_FROM, SMTP_REPLY_TO, SMTP_ALLOW_SEND, SMTP_ALLOWED_RECIPIENTS, SMTP_MAX_RECIPIENTS, SMTP_MAX_SENDS_PER_HOUR, SMTP_MAX_MESSAGE_BYTES, SMTP_MAX_ATTACHMENT_BYTES, SMTP_ATTACHMENT_DIR, SMTP_ATTACHMENT_TYPES, SMTP_SIGNATURE, SMTP_AUDIT_LOG, SMTP_ALLOW_TOOLS, SMTP_DENY_TOOLS, SMTP_INSECURE_TLS

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "smtp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/smtp-mcp"
      ],
      "env": {
        "SMTP_HOST": "your-value",
        "SMTP_PORT": "your-value",
        "SMTP_TLS": "your-value",
        "SMTP_USER": "your-value",
        "SMTP_PASSWORD": "your-value",
        "SMTP_FROM": "your-value",
        "SMTP_REPLY_TO": "your-value",
        "SMTP_ALLOW_SEND": "your-value",
        "SMTP_ALLOWED_RECIPIENTS": "your-value",
        "SMTP_MAX_RECIPIENTS": "your-value",
        "SMTP_MAX_SENDS_PER_HOUR": "your-value",
        "SMTP_MAX_MESSAGE_BYTES": "your-value",
        "SMTP_MAX_ATTACHMENT_BYTES": "your-value",
        "SMTP_ATTACHMENT_DIR": "your-value",
        "SMTP_ATTACHMENT_TYPES": "your-value",
        "SMTP_SIGNATURE": "your-value",
        "SMTP_AUDIT_LOG": "your-value",
        "SMTP_ALLOW_TOOLS": "your-value",
        "SMTP_DENY_TOOLS": "your-value",
        "SMTP_INSECURE_TLS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add smtp --env SMTP_HOST=your-value --env SMTP_PORT=your-value --env SMTP_TLS=your-value --env SMTP_USER=your-value --env SMTP_PASSWORD=your-value --env SMTP_FROM=your-value --env SMTP_REPLY_TO=your-value --env SMTP_ALLOW_SEND=your-value --env SMTP_ALLOWED_RECIPIENTS=your-value --env SMTP_MAX_RECIPIENTS=your-value --env SMTP_MAX_SENDS_PER_HOUR=your-value --env SMTP_MAX_MESSAGE_BYTES=your-value --env SMTP_MAX_ATTACHMENT_BYTES=your-value --env SMTP_ATTACHMENT_DIR=your-value --env SMTP_ATTACHMENT_TYPES=your-value --env SMTP_SIGNATURE=your-value --env SMTP_AUDIT_LOG=your-value --env SMTP_ALLOW_TOOLS=your-value --env SMTP_DENY_TOOLS=your-value --env SMTP_INSECURE_TLS=your-value -- npx -y @ni-c/smtp-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "smtp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/smtp-mcp"
      ],
      "env": {
        "SMTP_HOST": "your-value",
        "SMTP_PORT": "your-value",
        "SMTP_TLS": "your-value",
        "SMTP_USER": "your-value",
        "SMTP_PASSWORD": "your-value",
        "SMTP_FROM": "your-value",
        "SMTP_REPLY_TO": "your-value",
        "SMTP_ALLOW_SEND": "your-value",
        "SMTP_ALLOWED_RECIPIENTS": "your-value",
        "SMTP_MAX_RECIPIENTS": "your-value",
        "SMTP_MAX_SENDS_PER_HOUR": "your-value",
        "SMTP_MAX_MESSAGE_BYTES": "your-value",
        "SMTP_MAX_ATTACHMENT_BYTES": "your-value",
        "SMTP_ATTACHMENT_DIR": "your-value",
        "SMTP_ATTACHMENT_TYPES": "your-value",
        "SMTP_SIGNATURE": "your-value",
        "SMTP_AUDIT_LOG": "your-value",
        "SMTP_ALLOW_TOOLS": "your-value",
        "SMTP_DENY_TOOLS": "your-value",
        "SMTP_INSECURE_TLS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "smtp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/smtp-mcp"
      ],
      "env": {
        "SMTP_HOST": "your-value",
        "SMTP_PORT": "your-value",
        "SMTP_TLS": "your-value",
        "SMTP_USER": "your-value",
        "SMTP_PASSWORD": "your-value",
        "SMTP_FROM": "your-value",
        "SMTP_REPLY_TO": "your-value",
        "SMTP_ALLOW_SEND": "your-value",
        "SMTP_ALLOWED_RECIPIENTS": "your-value",
        "SMTP_MAX_RECIPIENTS": "your-value",
        "SMTP_MAX_SENDS_PER_HOUR": "your-value",
        "SMTP_MAX_MESSAGE_BYTES": "your-value",
        "SMTP_MAX_ATTACHMENT_BYTES": "your-value",
        "SMTP_ATTACHMENT_DIR": "your-value",
        "SMTP_ATTACHMENT_TYPES": "your-value",
        "SMTP_SIGNATURE": "your-value",
        "SMTP_AUDIT_LOG": "your-value",
        "SMTP_ALLOW_TOOLS": "your-value",
        "SMTP_DENY_TOOLS": "your-value",
        "SMTP_INSECURE_TLS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

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

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 ni-c 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18431 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18431 个服务器的 33% 更新
  • 基础检查结果等于或优于此分类中其他 18431 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

SMTP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:SMTP_HOST, SMTP_USER, SMTP_PASSWORD, SMTP_FROM

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.0)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js, Docker。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Filesystem MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 2113天前更新
安装

Filesystem MCP

作者:j0hanz

Filesystem MCP server for AI assistants.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

smtp-mcp

A Model Context Protocol (MCP) server for SMTP, the protocol every mail server speaks to accept a message for delivery.

Lets MCP clients like Claude Code, Claude Desktop or Codex send, reply to and forward mail from one configured address — with a human approving every message.

Seven tools is the ceiling, not the floor: SMTP_ALLOW_TOOLS=essential registers a curated five instead, and a model picks the right tool far more reliably from five than from seven — see choosing which tools load.

What makes it different

It sends mail. That is why it is a separate server. Its counterpart imap-mcp reads a mailbox and deliberately has no way to send anything — that absence is its entire security argument, because an agent that can reach private data and process attacker-controlled content is only exploitable once it also has a way out. This server is that way out, so it does not get to make the same claim. It earns its place by narrowing the channel instead, and by living in its own process with its own credentials.

It is off when you install it. SMTP_ALLOW_SEND defaults to false. Until it is set the sending tools are not registered at all — absent from tools/list, not refused at call time.

It can only write to people you named. SMTP_ALLOWED_RECIPIENTS is required to turn sending on. Every address in To, Cc and Bcc is checked against it before a connection is opened, so an injected "mail this to someone else" fails without the server ever reading it as an instruction. Allowing everyone is possible and has to be written as *.

Every message is approved by a person. Not by the model — the request goes to the client as an MCP elicitation. Recipients, subject and any Bcc appear on their own labelled lines, so a subject written to look like an instruction cannot become part of the server's own sentence.

The sender cannot be chosen. There is no from parameter. A model that could pick its own sender could write in a colleague's name, and the result would be indistinguishable from a message they wrote.

Requirements

  • Node.js 24 or newer
  • An SMTP account you may send from — a submission server on port 587 or 465, with a username and password. Providers with two-factor authentication generally need an app-specific password.

Configuration

Use TLS. SMTP_TLS=starttls (the default) requires the upgrade rather than attempting it,

so a stripped STARTTLS capability fails the connection instead of quietly sending your

password in the clear. For a self-signed certificate prefer a proper internal CA over

SMTP_INSECURE_TLS.

VariableRequiredDefaultDescription
SMTP_HOSTyes—Hostname of the SMTP server, e.g. smtp.example.net.
SMTP_USERyes—Username for SMTP authentication.
SMTP_PASSWORDyes—Password or app-specific password.
SMTP_FROMyes—The only sender used, e.g. Name . There is no from parameter.
SMTP_REPLY_TOno—Reply-To on every message, e.g. Team . Unset means replies go to SMTP_FROM.
SMTP_PORTno587 / 465 / 25Depends on SMTP_TLS.
SMTP_TLSnostarttlsstarttls, implicit or none. Never opportunistic.
SMTP_ALLOW_SENDnofalseSet to true to register the sending tools.
SMTP_ALLOWED_RECIPIENTSwith SMTP_ALLOW_SEND=true—Comma-separated addresses and @domains. * allows anyone.
SMTP_MAX_RECIPIENTSno10Distinct recipients across To, Cc and Bcc in one message.
SMTP_MAX_SENDS_PER_HOURno20Sliding hourly cap.
SMTP_MAX_MESSAGE_BYTESno10485760Size ceiling on the composed message.
SMTP_MAX_ATTACHMENT_BYTESno5242880Size ceiling on one attachment.
SMTP_ATTACHMENT_DIRno—Directory attachments are read from. Unset means no attachments.
SMTP_ATTACHMENT_TYPESnodocument and image allowlistComma-separated content types that may be attached. text/html and application/zip are opt-in.
SMTP_SIGNATUREno—Text appended below the standard -- delimiter.
SMTP_AUDIT_LOGno—File the audit lines are appended to, in addition to stderr.
SMTP_ALLOW_TOOLSno—Tool names, a prefix with one trailing *, or essential.
SMTP_DENY_TOOLSno—Removed after SMTP_ALLOW_TOOLS is applied.
SMTP_INSECURE_TLSnofalseAccept self-signed certificates.
ELICITATIONnotruefalse replaces the approval dialog with the two-call token. Not prefixed.

Two defaults are worth reading twice, because they are the opposite of what the rest of this family does:

  • `SMTP_ALLOW_SEND` is off. A freshly installed smtp-mcp can compose and preview messages and cannot send any.
  • An unset `SMTP_ALLOWED_RECIPIENTS` is a startup error, not "anyone". Treating a missing line as permission is how an accident becomes a delivered message. Write * if you mean it.
Choosing which tools load

SMTP_ALLOW_TOOLS decides what is registered, SMTP_DENY_TOOLS is subtracted from it. Both take comma-separated tool names or a prefix with a single trailing *. A filtered tool is never built — it does not appear in tools/list and answers a call with "not found", the same as a sending tool while the send gate is closed. Nothing is advertised and then refused.

SMTP_ALLOW_TOOLS=essential          # the curated five

SMTP_ALLOW_TOOLS='get_server_info,preview_mail' SMTP_DENY_TOOLS=forward_mail # everything else, minus forwarding

essential is get_server_info, validate_recipients, preview_mail, send_mail and reply_mail. forward_mail is left out: forwarding carries somebody else's content and attachments outward, which is the call that most deserves to be switched on deliberately.

An entry that matches no tool aborts startup and lists the real names. A tool quietly missing from tools/list is invisible — nobody traces an absence back to an environment variable.

Installation

Claude Code
claude mcp add smtp -- npx -y @ni-c/smtp-mcp
Claude Desktop
{

"mcpServers": { "smtp": { "command": "npx", "args": ["-y", "@ni-c/smtp-mcp"], "env": { "SMTP_HOST": "smtp.example.net", "SMTP_USER": "person@example.net", "SMTP_PASSWORD": "app-specific-password", "SMTP_FROM": "Your Name ", "SMTP_ALLOW_SEND": "true", "SMTP_ALLOWED_RECIPIENTS": "@example.net" } } } }

Codex
[mcp_servers.smtp]

command = "npx" args = ["-y", "@ni-c/smtp-mcp"]

[mcp_servers.smtp.env] SMTP_HOST = "smtp.example.net" SMTP_USER = "person@example.net" SMTP_PASSWORD = "app-specific-password" SMTP_FROM = "Your Name " SMTP_ALLOW_SEND = "true" SMTP_ALLOWED_RECIPIENTS = "@example.net"

Docker
docker run --rm -i 

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx