Skip to main content
Glama

@mailsink/mcp

MailSink 用のModel Context Protocolサーバー — AIエージェントやテスト自動化のためのプログラム可能な使い捨てメールインボックスです。

使い捨てアドレスのプロビジョニング、サインアップメールの待機、OTPコードやマジックリンクの抽出、そして終了後のクリーンアップを行うための8つの型付きツールをエージェントに提供します。Claude Code、Claude Desktop、Cursor、Windsurf、その他MCP対応クライアントで動作します。

インストール

npm install -g @mailsink/mcp

または、インストールせずに npx で実行します:

npx @mailsink/mcp

Related MCP server: guerrillamail-mcp

APIキーの取得

  1. https://mailsink.dev/app にGitHubでサインインします。

  2. 1回限りの表示でキーをコピーします。パスワードマネージャーや .env に保存してください。

  3. MCPサーバーが読み取れるようにエクスポートします:

    export MAILSINK_API_KEY="msk_..."

無料プランは月間50インボックスまでで、MCPが含まれます。Pro(月額15ドル)およびTeam(月額49ドル)プランでは、インボックスの上限引き上げ、メールサイズ制限の緩和、TTLの延長、リクエストレートの向上が可能です。詳細は 価格ページ を参照してください。

クライアントの設定

Claude Code

claude mcp add mailsink -- npx -y @mailsink/mcp

Claude Desktop / Cursor / Windsurf

クライアントの設定ファイルの mcpServers セクションに追加します:

{
  "mcpServers": {
    "mailsink": {
      "command": "npx",
      "args": ["-y", "@mailsink/mcp"],
      "env": {
        "MAILSINK_API_KEY": "msk_..."
      }
    }
  }
}

クライアントを再起動してください。mailsink サーバーが8つのツールと共にリスト表示されるはずです。

ツール

ツール

目的

create_inbox

使い捨てアドレスをプロビジョニングします。email、id、expires_at を返します。

list_inboxes

アカウント上のアクティブなインボックスを一覧表示します。

wait_for_email

メールが届くまで最大 timeout 秒(最大120秒)待機します。

get_verification_code

インボックスから最新のOTPを抽出します(見つかるかタイムアウトするまでポーリングします)。

get_verification_link

最新のマジックリンクを抽出します。

list_messages

インボックス内の全メッセージの概要を表示します。

get_message

IDを指定して特定のメッセージの全内容を取得します。

delete_inbox

インボックスを即座に破棄します。

エージェントフローの例

> Sign me up for Figma, capture the verification code, confirm, and
> tell me the plan once you're in.

[agent invokes]
  create_inbox()                                → agent@codenotify.net
  [agent fills the Figma signup form with that address]
  wait_for_email(inbox_id)                      → blocks 30s…
                                                → returns email + OTP
  [agent types the OTP into the Figma form]
  delete_inbox(inbox_id)                        → cleanup

Webhookの配線は不要。IMAP認証情報も不要。MIMEの解析も不要です。

環境変数

  • MAILSINK_API_KEY (必須) — アカウントのAPIキー。

  • MAILSINK_API_URL (任意、デフォルト https://api.mailsink.dev) — セルフホストや開発用APIの場合に上書きします。

ソース

https://github.com/heocoi/mailsink/tree/main/mcp

ライセンス

MIT — LICENSE を参照してください。

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A minimal MCP server for reading and sending emails via IMAP/SMTP, supporting multiple accounts in a single instance with zero external dependencies.
    1
    -
  • A
    license
    A
    quality
    C
    maintenance
    MCP server for the Guerrilla Mail temporary/disposable email API. Spin up throwaway inboxes, poll for mail, and read messages from any MCP client.
    6
    10 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A minimal MCP server for reading, searching, managing, and sending email over IMAP and SMTP.
    MIT