プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のための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の3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: 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

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.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月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント ni-c で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの18333件のうち0%よりスターが多い
  • このカテゴリのほかの18333件のうち34%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの18333件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

SMTPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:SMTP_HOST, SMTP_USER, SMTP_PASSWORD, SMTP_FROM

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.2.0)がレジストリに届いたのは2 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.js, Dockerも必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Signoff

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

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

クラウドで動く★ 211一昨日更新
インストール

Signoff

作者:ayuanxx-max

Five gates that make an agent's 'done' provable: run them, read the verdict, audit the record.

パソコンで動く今日更新
インストール

作者の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に聞く