Skip to main content
Glama

Mailtrap Email Sending

by railsware

タイプスクリプト

MCP メールトラップサーバー

Mailtrap経由でトランザクションメールを送信するためのツールを提供するMCPサーバー

設定

クロードデスクトップまたはカーソル

次の構成を追加します。

{ "mcpServers": { "mailtrap": { "command": "npx", "args": ["-y", "mcp-mailtrap"], "env": { "MAILTRAP_API_TOKEN": "your_mailtrap_api_token", "DEFAULT_FROM_EMAIL": "your_sender@example.com" } } } }

Node.jsの管理にasdfを使用している場合は、実行可能ファイルへの絶対パスを使用する必要があります(Macの例)

{ "mcpServers": { "mailtrap": { "command": "/Users/<username>/.asdf/shims/npx", "args": ["-y", "mcp-mailtrap"], "env": { "PATH": "/Users/<username>/.asdf/shims:/usr/bin:/bin", "ASDF_DIR": "/opt/homebrew/opt/asdf/libexec", "ASDF_DATA_DIR": "/Users/<username>/.asdf", "ASDF_NODEJS_VERSION": "20.6.1", "MAILTRAP_API_TOKEN": "your_mailtrap_api_token", "DEFAULT_FROM_EMAIL": "your_sender@example.com" } } } }
Claude Desktop の設定ファイルの場所

Mac : ~/Library/Application Support/Claude/claude_desktop_config.json

Windows : %APPDATA%\Claude\claude_desktop_config.json

カーソル設定ファイルの場所

Mac : ~/.cursor/mcp.json

Windows : %USERPROFILE%\.cursor\mcp.json

VSコード

コマンドパレットで実行: Preferences: Open User Settings (JSON)

次に、設定ファイルに次の構成を追加します。

{ "mcp": { "servers": { "mailtrap": { "command": "npx", "args": ["-y", "mcp-mailtrap"], "env": { "MAILTRAP_API_TOKEN": "your_mailtrap_api_token", "DEFAULT_FROM_EMAIL": "your_sender@example.com" } } } } }

[!TIP] 「env」セクションを変更した後は、MCP サーバーを再起動することを忘れないでください。

使用法

設定が完了したら、エージェントに電子メールの送信を依頼できます。例:

  • john.doe@example.comに、「明日の会議」という件名で、今後の会議についてのお知らせを記載したメールを送信してください。」
  • 「プロジェクトの最新情報についてsarah@example.comにメールを送信し、 team@example.comのチームにCCしてください。」

利用可能なツール

メールを送信

Mailtrap を通じてトランザクション メールを送信します。

パラメータ:

  • to (必須): 受信者のメールアドレス
  • subject (必須): メールの件名
  • from (オプション): 送信者のメールアドレス。指定しない場合は「DEFAULT_FROM_EMAIL」が使用されます。
  • text (オプション): メール本文、「html」が空の場合は必須
  • html (オプション): メール本文の HTML バージョン。「text」が空の場合は必須です。
  • cc (オプション): CC受信者のメールアドレスの配列
  • bcc (オプション): BCC受信者のメールアドレスの配列
  • category (オプション): 追跡するメールのカテゴリ

発達

  1. リポジトリをクローンします。
git clone https://github.com/railsware/mailtrap-mcp.git cd mailtrap-mcp
  1. 依存関係をインストールします:
npm install

Claude DesktopまたはCursorを使用した構成

[!TIP] 設定ファイルの場所については、 「セットアップ」セクションを参照してください。

次の構成を追加します。

{ "mcpServers": { "mailtrap": { "command": "node", "args": ["/path/to/mailtrap-mcp/dist/index.js"], "env": { "MAILTRAP_API_TOKEN": "your_mailtrap_api_token", "DEFAULT_FROM_EMAIL": "your_sender@example.com" } } } }

Node.js の管理にasdfを使用している場合は、実行可能ファイルへの絶対パスを使用する必要があります。

(Macの例)

{ "mcpServers": { "mailtrap": { "command": "/Users/<username>/.asdf/shims/node", "args": ["/path/to/mailtrap-mcp/dist/index.js"], "env": { "PATH": "/Users/<username>/.asdf/shims:/usr/bin:/bin", "ASDF_DIR": "/opt/homebrew/opt/asdf/libexec", "ASDF_DATA_DIR": "/Users/<username>/.asdf", "ASDF_NODEJS_VERSION": "20.6.1", "MAILTRAP_API_TOKEN": "your_mailtrap_api_token", "DEFAULT_FROM_EMAIL": "your_sender@example.com" } } } }

VSコード

[!TIP] 設定ファイルの場所については、 「セットアップ」セクションを参照してください。

{ "mcp": { "servers": { "mailtrap": { "command": "node", "args": ["/path/to/mailtrap-mcp/dist/index.js"], "env": { "MAILTRAP_API_TOKEN": "your_mailtrap_api_token", "DEFAULT_FROM_EMAIL": "your_sender@example.com" } } } } }

テスト

MCP Inspectorを使用してサーバーをテストできます。

npm run dev

貢献

バグ報告とプルリクエストはGitHubで歓迎します。このプロジェクトは、安全で協力的な場となることを目指しており、貢献者は行動規範を遵守することが求められます。

ライセンス

このパッケージは、 MIT ライセンスの条件に基づいてオープンソースとして利用できます。

行動規範

Mailtrap プロジェクトのコードベース、問題追跡システム、チャット ルーム、メーリング リストでやりとりするすべての人は、行動規範に従うことが求められます。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
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.

Mailtrap Email Platform と統合し、API 経由でトランザクション メールを送信できるようにします。

  1. 設定
    1. クロードデスクトップまたはカーソル
    2. VSコード
  2. 使用法
    1. 利用可能なツール
      1. メールを送信
    2. 発達
      1. Claude DesktopまたはCursorを使用した構成
      2. VSコード
    3. テスト
      1. 貢献
        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
              F
              license
              -
              quality
              Allows sending emails through the Resend service using a standardized Model Context Protocol (MCP) interface, with TypeScript support.
              Last updated -
              13
              5
              TypeScript
            • -
              security
              A
              license
              -
              quality
              Provides IMAP and SMTP capabilities, enabling developers to manage email services with seamless integration and automated workflows.
              Last updated -
              35
              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

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/railsware/mailtrap-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server