Mailsink

io.github.heocoi由 GitHub 帳號 heocoi 發布v0.1.5更新於 Oct 24, 2026

Disposable inboxes for AI agents and CI: catch the verification email, read the OTP or link.

已驗證STDIO僅桌面開發者工具溝通與協作

概覽

AI 產生的概覽

MailSink MCP 為助理提供一次性信箱,用來接收註冊信件、讀取驗證碼或魔法連結,並在用完後清理。

可以做什麼
建立與列出臨時信箱,每個信箱回傳位址、ID 與到期時間,並可在用完後刪除信箱。等待新信件送達,逾時時間最長 120 秒。從信箱中擷取最近的一次性驗證碼或魔法連結。列出信箱中的信件摘要,並依 ID 讀取某封信件的完整內容。
適用情境
適合助理或測試自動化需要完成依賴信件驗證的註冊或登入流程時使用,例如取得驗證碼或確認連結,而不必設定 webhook、IMAP 憑證或解析 MIME。
執行需求
以 npm 套件形式在本機執行(需要 Node.js),可全域安裝或透過 npx 執行,並在 Claude Code、Claude Desktop、Cursor 或 Windsurf 等 MCP 用戶端中設定。需要 MailSink 帳號與 API 金鑰,透過環境變數 MAILSINK_API_KEY 提供;MAILSINK_API_URL 可覆寫 API 基礎位址。需要能連線至 MailSink API 的網路。
安裝前請注意
MailSink API 金鑰(MAILSINK_API_KEY)屬於機密,應存放在密碼管理員或環境檔案中,不要提交到程式碼庫。免費方案每月 50 個信箱;付費的 Pro 與 Team 方案提高上限。信箱會在帳號上建立與刪除,收到的信件內容會從 MailSink 伺服器取得。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mailsink,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@mailsink/mcp

Model Context Protocol server for MailSink — programmatic temporary email inboxes for AI agents and test automation.

Gives your agent eight typed tools for provisioning disposable addresses, waiting on signup emails, extracting OTP codes and magic links, and cleaning up after itself. Works in Claude Code, Claude Desktop, Cursor, Windsurf, and any other MCP-aware client.

Install

bash
npm install -g @mailsink/mcp

Or run via npx without installing:

bash
npx @mailsink/mcp

Get an API key

  1. Sign in at https://mailsink.dev/app with GitHub.

  2. Copy the key from the one-time reveal. Store it in your password manager or .env.

  3. Export it so the MCP server can read it:

    bash
    export MAILSINK_API_KEY="msk_..."

Free tier is 50 inboxes/month and includes MCP. Pro ($15/mo) and Team ($49/mo) lift the inbox cap, raise email size limits, extend TTL, and bump request rates. See pricing.

Configure your client

Claude Code

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

Claude Desktop / Cursor / Windsurf

Add to the mcpServers section of the client's config file:

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

Restart the client. You should see the mailsink server listed with its eight tools.

Tools

ToolPurpose
create_inboxProvision a throwaway address. Returns email, id, expires_at.
list_inboxesList active inboxes on the account.
wait_for_emailBlock up to timeout seconds (max 120) for any email to arrive.
get_verification_codeExtract the most recent OTP from the inbox (polls until found or timeout).
get_verification_linkExtract the most recent magic link.
list_messagesSummaries of all messages in an inbox.
get_messageFull content of a specific message by ID.
delete_inboxBurn an inbox immediately.

Example agent flow

> Sign me up for Figma, capture the verification code, confirm, and> tell me the plan once you're in.
[agent invokes]  create_inbox()                                → [email protected]  [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

No webhook plumbing. No IMAP credentials. No parsing MIME.

Environment variables

  • MAILSINK_API_KEY (required) — your account's API key.
  • MAILSINK_API_URL (optional, default https://api.mailsink.dev) — override for self-hosted or dev API.

Source

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

License

MIT — see LICENSE.

來源:README.md,提交 1df0da2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分