SMTP MCP Server

Integrations

  • Provides SMTP configuration for Gmail as an email sending service that can be used by the MCP server

SMTP電子メールMCPサーバー

Claude やその他の MCP 互換 AI アシスタントに電子メール送信機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • 複数のSMTP構成: 複数のSMTPサーバーを構成および管理します
  • メールテンプレート: 再利用可能なメールテンプレートを作成、更新、使用する
  • 一括メール送信: バッチ処理とレート制限を使用して複数の受信者にメールを送信します
  • HTML サポート: リッチなメール コンテンツのための完全な HTML サポート
  • ログ記録: すべてのメールアクティビティの包括的なログ記録
  • テンプレート変数: テンプレート変数を使用した動的コンテンツ

インストール

# Clone the repository git clone https://github.com/samihalawa/mcp-server-smtp.git cd mcp-server-smtp # Install dependencies npm install # Build the server npm run build

使用法

サーバーの起動

npm start

構成

サーバーを MCP 構成に追加します。

{ "servers": { "smtp-email-server": { "command": "/path/to/node", "args": ["/path/to/mcp-server-smtp/build/index.js"], "enabled": true, "port": 3007, "environment": { "NODE_PATH": "/path/to/node_modules", "PATH": "/usr/local/bin:/usr/bin:/bin" } } } }

利用可能なツール

メールを送信

1 人以上の受信者に電子メールを送信します。

パラメータ:

  • to : メールアドレスとオプションの名前を持つ受信者の配列
  • subject : メールの件名
  • body : メール本文(HTML 対応)
  • from : (オプション) 送信者のメールアドレスと名前
  • cc : (オプション) CC受信者
  • bcc : (オプション) BCC受信者
  • templateId : (オプション) 使用するテンプレートのID
  • templateData : (オプション) テンプレート変数に入力するデータ
  • smtpConfigId : (オプション) 使用するSMTP構成のID
一括メール送信

複数の受信者に電子メールを一括送信します。

パラメータ:

  • recipients : メールアドレスとオプションの名前を持つ受信者の配列
  • subject : メールの件名
  • body : メール本文(HTML 対応)
  • from : (オプション) 送信者のメールアドレスと名前
  • cc : (オプション) CC受信者
  • bcc : (オプション) BCC受信者
  • templateId : (オプション) 使用するテンプレートのID
  • templateData : (オプション) テンプレート変数に入力するデータ
  • batchSize : (オプション) バッチごとに送信するメールの数
  • delayBetweenBatches : (オプション) バッチ間の遅延(ミリ秒)
  • smtpConfigId : (オプション) 使用するSMTP構成のID
SMTP設定を取得する

設定されているすべての SMTP サーバーを取得します。

パラメータ: なし

SMTP設定の追加

新しい SMTP サーバー構成を追加します。

パラメータ:

  • name : 設定の名前
  • host : SMTPサーバーのホスト名
  • port : SMTPサーバーのポート
  • secure : SSL/TLSを使用するかどうか
  • auth : 認証資格情報(ユーザー名とパスワード)
  • isDefault : (オプション) これがデフォルト設定かどうか
アップデート-SMTP-config

既存の SMTP サーバー構成を更新します。

パラメータ:

  • id : 更新する構成のID
  • name : 設定の名前
  • host : SMTPサーバーのホスト名
  • port : SMTPサーバーのポート
  • secure : SSL/TLSを使用するかどうか
  • auth : 認証資格情報(ユーザー名とパスワード)
  • isDefault : (オプション) これがデフォルト設定かどうか
SMTP設定の削除

SMTP サーバー構成を削除します。

パラメータ:

  • id : 削除する構成のID
メールテンプレートを取得する

すべての電子メール テンプレートを取得します。

パラメータ: なし

メールテンプレートの追加

新しい電子メール テンプレートを追加します。

パラメータ:

  • name : テンプレート名
  • subject : メール件名テンプレート
  • body : メール本文テンプレート(HTML 対応)
  • isDefault : (オプション) これがデフォルトのテンプレートかどうか
更新メールテンプレート

既存の電子メール テンプレートを更新します。

パラメータ:

  • id : 更新するテンプレートのID
  • name : テンプレート名
  • subject : メール件名テンプレート
  • body : メール本文テンプレート(HTML 対応)
  • isDefault : (オプション) これがデフォルトのテンプレートかどうか
メールテンプレートの削除

電子メール テンプレートを削除します。

パラメータ:

  • id : 削除するテンプレートのID
メールログの取得

送信したメールのログを取得します。

パラメータ: なし

使用例

  1. SMTP サーバーを構成します。
    add-smtp-config( name: "Gmail", host: "smtp.gmail.com", port: 587, secure: false, auth: { user: "your-email@gmail.com", pass: "your-app-password" }, isDefault: true )
  2. メール テンプレートを作成します。
    add-email-template( name: "Welcome Email", subject: "Welcome to {{company}}!", body: "<h1>Hello {{name}},</h1><p>Welcome to {{company}}!</p>", isDefault: false )
  3. テンプレートを使用してメールを送信します。
    send-email( to: [{ email: "recipient@example.com", name: "John Doe" }], templateId: "welcome-email", templateData: { name: "John", company: "ACME Corp" } )
  4. 一括メールを送信する:
    send-bulk-emails( recipients: [ { email: "user1@example.com", name: "User 1" }, { email: "user2@example.com", name: "User 2" } ], subject: "Important Announcement", body: "<p>This is an important announcement.</p>", batchSize: 10, delayBetweenBatches: 1000 )

要件

  • Node.js 14以上
  • メール送信用のNodemailer
  • SMTPサーバーへのアクセス

ライセンス

マサチューセッツ工科大学

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

テンプレート管理を使用した SMTP 経由の電子メール送信、複数の SMTP 構成のサポート、変数置換によるテンプレート作成、レート制限による一括電子メール送信を可能にします。

  1. 特徴
    1. インストール
      1. 使用法
        1. サーバーの起動
        2. 構成
        3. 利用可能なツール
      2. 使用例
        1. 要件
          1. ライセンス

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              Integrates with Gmail to enable sending, reading, drafting, and managing emails via the Model Context Protocol (MCP), allowing users to interact with email tasks through automated client prompts.
              Last updated -
              Python
              GPL 3.0
            • -
              security
              A
              license
              -
              quality
              Provides IMAP and SMTP capabilities, enabling developers to manage email services with seamless integration and automated workflows.
              Last updated -
              27
              Python
              BSD 3-Clause
              • Apple
              • Linux
            • A
              security
              F
              license
              A
              quality
              A simple MCP server that enables users to send emails using Resend's API, integrating with tools like Cursor and Claude Desktop for seamless email composition and delivery.
              Last updated -
              1
              6
              321
              TypeScript
              • Apple
            • -
              security
              A
              license
              -
              quality
              MCP server that integrates with Gmail to enable sending, reading, and managing emails through tools like send-email, trash-email, get-unread-emails, and read-email.
              Last updated -
              17
              Python
              GPL 3.0
              • Apple

            View all related MCP servers

            ID: 9u1qq6tli6