MinuteMail

io.github.minutemailco由 GitHub 帳號 minutemailco 發布v1.1.3更新於 Oct 24, 2026

Ephemeral mailboxes and a mock OAuth IdP for testing email and auth flows — 39 API-driven tools

已驗證Streamable HTTP可網頁執行開發者工具溝通與協作安全與監控

概覽

AI 產生的概覽

MinuteMail 的遠端 MCP 伺服器,讓助理建立臨時信箱、讀取測試郵件並管理模擬 OAuth 身分,用於測試郵件與驗證流程。

可以做什麼
建立、列出、取得和刪除臨時信箱,包括批次刪除以及封存信箱的還原或永久刪除。列出、讀取、注入模擬收件郵件並刪除郵件,還可列出、新增、下載和刪除附件。註冊、驗證和刪除自訂網域,並查看其 DNS 驗證狀態。管理團隊成員與邀請,包括直接新增成員和撤銷邀請。建立和管理模擬身分與 OAuth 用戶端,更新個人資料欄位、啟用狀態、電子郵件驗證和自訂宣告,並輪換用戶端密鑰。
適用情境
適合需要測試註冊驗證、密碼重設等郵件驅動流程,或使用模擬身分測試 OAuth 與身分流程,而不想接觸真實信箱或正式身分提供者的情境。
執行需求
遠端 Streamable HTTP 端點,不需要本機執行環境。需要 MinuteMail 帳號,並以 Bearer 形式透過 Authorization 標頭提供 API 金鑰。需要連線至託管服務的網路;權限範圍與配額由 MinuteMail API 強制執行。
安裝前請注意
API 金鑰會轉送至 MinuteMail API,可存取該租用戶的信箱、網域、團隊和身分。許多工具會寫入或刪除資料,包括批次刪除信箱和郵件、永久刪除封存信箱。OAuth 用戶端密鑰在建立和輪換時以明文回傳一次。團隊邀請會由團隊服務寄送電子郵件。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MinuteMail,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.minutemailco%2Fmcp-server/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "minutemail": {
      "type": "http",
      "url": "https://mcp.minutemail.co/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

MinuteMail MCP Server

MinuteMail as MCP (Model Context Protocol) tools: let AI agents and MCP clients operate ephemeral mailboxes, emails, attachments, custom domains, teams, and mock OAuth identities for testing email and auth flows.

[License: MIT] [Docker] [smithery badge]

  • Endpoint: https://mcp.minutemail.co/mcp (Streamable HTTP, protocol revision 2025-06-18)
  • Auth: your MinuteMail API key (Bearer mmak_...). The server is a stateless proxy — it holds no credentials, sessions, or local storage of its own; your key is forwarded verbatim to the MinuteMail API, where scopes and quotas are enforced. All state (mailboxes, mails, identities) lives in the MinuteMail platform behind it.
  • Also listed in the official MCP Registry as io.github.minutemailco/mcp-server and on Smithery.

Get an API key

  1. Sign up at minutemail.co (free during early access)

  2. Create an API key in the dashboard

  3. Configure your MCP client to send it as the Authorization header:

    Authorization: Bearer mmak_XXXXXXXX

Connect your MCP client

Claude Code / Claude Desktop / Cursor / any Streamable HTTP client:

  • URL: https://mcp.minutemail.co/mcp
  • Header: Authorization: Bearer mmak_...

Claude Code CLI:

bash
claude mcp add --transport http minutemail https://mcp.minutemail.co/mcp \  --header "Authorization: Bearer mmak_XXXXXXXX"

Claude Desktop / clients with an mcpServers JSON config (e.g. claude_desktop_config.json / ~/.cursor/mcp.json):

json
{  "mcpServers": {    "minutemail": {      "type": "http",      "url": "https://mcp.minutemail.co/mcp",      "headers": {        "Authorization": "Bearer mmak_XXXXXXXX"      }    }  }}

Some clients (older Claude Desktop builds) only support local stdio servers in their JSON config. If yours rejects type: "http", use the built-in remote/connectors UI with the URL and header above, or run mcp-remote as a stdio bridge:

json
{  "mcpServers": {    "minutemail": {      "command": "npx",      "args": [        "mcp-remote",        "https://mcp.minutemail.co/mcp",        "--header",        "Authorization: Bearer mmak_XXXXXXXX"      ]    }  }}

For a guided walkthrough, see the docs: docs.minutemail.co/mcp/getting-started.

Raw JSON-RPC (what the clients do under the hood):

bash
curl -s https://mcp.minutemail.co/mcp \  -H 'Authorization: Bearer mmak_XXXXXXXX' \  -H 'Content-Type: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",       "params":{"name":"mailboxes.create","arguments":{"expiresIn":30}}}'

Tools (39)

Every tool maps 1:1 to a route of the MinuteMail API. All calls require the Bearer API key; write operations require the matching scope (mailboxes, domains, team, identities).

Mailboxes (mailboxes scope)

ToolPurpose
mailboxes.listList active mailboxes (optional exact-address lookup)
mailboxes.createCreate a mailbox (optional TTL, domain, recovery tag)
mailboxes.get / mailboxes.deleteFetch / delete one mailbox
mailboxes.delete_bulkDelete several mailboxes by ID
mails.list / mails.injectList mails / simulate an inbound email (multipart, with attachments)
mails.get / mails.delete / mails.delete_bulkRead / delete mails
attachments.list / attachments.add / attachments.get / attachments.delete / attachments.delete_bulkAttachment CRUD

Archived mailboxes (mailboxes scope)

archived.list, archived.get, archived.delete, archived.reactivate.

Custom domains (domains scope)

domains.list, domains.register, domains.verify, domains.delete.

Team (team scope)

team.members.list, team.members.add, team.members.get, team.members.delete, team.invitations.create, team.invitations.list, team.invitations.delete.

Mock identities & OAuth clients (identities scope)

identities.list, identities.create, identities.update, identities.get, identities.delete, oauth.clients.list, oauth.clients.create, oauth.clients.get, oauth.clients.delete, oauth.clients.rotate_secret. identities.update patches profile fields, isActive (activate/deactivate), emailVerified (drives the email_verified claim), and custom claims merged into issued ID tokens and userinfo responses.

Tool results are returned as MCP text content carrying the API's JSON response. Non-2xx responses become isError: true results with the HTTP status and body (401 invalid key, 403 scope/domain, 429 quota with remaining count, 502 upstream down).

Typical agent workflow

mailboxes.create (expiresIn 30)        ↓your app under test sends a verification email to the mailbox address        ↓mails.list → mails.get (extract the code / link)        ↓assert the flow completed — the mailbox expires on its own

Self-hosting

The server is a single static Go binary in a scratch image (~7 MB):

bash
docker run -p 8080:8080 \  -e API_BASE=https://api.minutemail.co \  ghcr.io/minutemailco/mcp-server:latest# or from Docker Hub:docker run -p 8080:8080 \  -e API_BASE=https://api.minutemail.co \  chrptvn/minutemail-mcp:latest

Self-hosting still requires MinuteMail API keys — the server is a stateless proxy over the hosted API, not a standalone implementation. It keeps no sessions or local data; every mailbox, mail, and identity is stored by the MinuteMail API it forwards to.

Env varDefaultPurpose
PORT8080Listen port
API_BASEhttp://api-gateway:80MinuteMail API base URL (use https://api.minutemail.co outside the cluster)
LOG_LEVELwarndebug/info/warn/error
LOG_FORMATjsonjson/text
PROFILEdevDeployment profile label

GET /health for liveness; GET /metrics for Prometheus counters. API-key management is not exposed via MCP — manage keys from the web app.

Development

Go 1.23, stdlib plus prometheus/client_golang.

bash
go test ./...     # unit testsgo vet ./...go run .          # local server on :8080

License

MIT — © MinuteMail.co

來源:README.md,提交 7a24b24

工具

40

mailboxes.list

List mailboxes

List the tenant's active mailboxes (owner is derived from the API key). Optionally look up a single mailbox by exact address.

輸入參數address

mailboxes.create

Create mailbox

Create a new temporary mailbox. The domain defaults to the tenant's default domain; the owner is always the API key's owner.

輸入參數tagdomainexpiresInrecoverablenoExpiration

mailboxes.get

Get mailbox

Fetch a single mailbox by ID.

輸入參數mailboxId必填

mailboxes.delete

Delete mailbox

Delete a mailbox and its contents by ID.

輸入參數mailboxId必填

mailboxes.delete_bulk

Bulk delete mailboxes

Delete several mailboxes at once by ID.

輸入參數ids必填

mails.list

List mails

List the emails in a mailbox, newest first.

輸入參數mailboxId必填

mails.inject

Inject test mail

Inject a simulated inbound email into a mailbox (multipart upload). No external mail is sent; use this to simulate inbound mail for flow testing.

輸入參數body必填sender必填subject必填expiresInmailboxId必填attachments

mails.get

Get mail

Fetch a single email by ID, including body and attachment metadata.

輸入參數mailId必填mailboxId必填

mails.delete

Delete mail

Delete a single email.

輸入參數mailId必填mailboxId必填

mails.delete_bulk

Bulk delete mails

Delete several emails of one mailbox at once.

輸入參數ids必填mailboxId必填

attachments.list

List attachments

List the attachments of an email (metadata only).

輸入參數mailId必填mailboxId必填

attachments.add

Add attachment

Attach a file to a test-injected email (base64 payload).

輸入參數data必填mailId必填filename必填expiresInmailboxId必填sizeBytescontentType

attachments.get

Get attachment

Download an attachment. The file contents are returned base64-encoded in the JSON "data" field.

輸入參數mailId必填mailboxId必填attachmentId必填

attachments.delete

Delete attachment

Delete a single attachment.

輸入參數mailId必填mailboxId必填attachmentId必填

attachments.delete_bulk

Bulk delete attachments

Delete several attachments of one email at once.

輸入參數ids必填mailId必填mailboxId必填

archived.list

List archived mailboxes

List the tenant's archived (expired but recoverable) mailboxes.

無需輸入參數。

archived.get

Get archived mailbox

Fetch a single archived mailbox by ID.

輸入參數mailboxId必填

archived.delete

Delete archived mailbox

Permanently delete an archived mailbox.

輸入參數mailboxId必填

archived.reactivate

Reactivate archived mailbox

Reactivate an archived mailbox back to active state.

輸入參數expiresInmailboxId必填

domains.list

List domains

List the tenant's custom domains with their DNS verification status.

無需輸入參數。

domains.register

Register domain

Register a new custom domain. DNS records (TXT token + MX) must then be added before verification can succeed.

輸入參數name必填

domains.verify

Verify domain

Trigger DNS verification (TXT + MX) of a registered domain.

輸入參數domainId必填

domains.delete

Delete domain

Delete a registered custom domain.

輸入參數domainId必填

team.members.list

List team members

List the tenant's team members.

無需輸入參數。

team.members.add

Add team member

Add a team member directly (no invitation flow).

輸入參數email必填status必填user_id必填username必填

team.members.get

Get team member

Fetch a single team member by ID.

輸入參數memberId必填

team.members.delete

Delete team member

Remove a team member.

輸入參數memberId必填

team.invitations.create

Create invitation

Create a team invitation for an email address (SMTP invite is sent by the team service).

輸入參數email必填

team.invitations.list

List invitations

List the tenant's team invitations.

無需輸入參數。

team.invitations.delete

Delete invitation

Revoke a team invitation.

輸入參數invitationId必填

identities.list

List identities

List the tenant's mock identities, optionally filtered by OAuth client or mailbox address.

輸入參數clientIdmailboxAddress

identities.create

Create identity

Create a mock identity bound to a mailbox for OAuth flow testing.

輸入參數nameclaimsclientId必填usernameavatarUrlemailVerifiedmailboxAddress必填

identities.get

Get identity

Fetch a single mock identity by ID.

輸入參數identityId必填

identities.update

Update identity

Update a mock identity: profile fields, isActive (activate/deactivate), emailVerified, and custom claims merged into the ID token and userinfo.

輸入參數nameclaimsisActiveusernameavatarUrlidentityId必填emailVerified

identities.delete

Delete identity

Delete a mock identity.

輸入參數identityId必填

oauth.clients.list

List OAuth clients

List the tenant's OAuth clients for mock identity testing.

無需輸入參數。

oauth.clients.create

Create OAuth client

Register an OAuth client for mock identity flows. The plaintext clientSecret is returned once at creation.

輸入參數name必填providerTyperedirectUris必填providerLabel

oauth.clients.get

Get OAuth client

Fetch a single OAuth client by its public client ID.

輸入參數clientId必填

oauth.clients.delete

Delete OAuth client

Delete an OAuth client by its public client ID.

輸入參數clientId必填

oauth.clients.rotate_secret

Rotate client secret

Rotate an OAuth client's secret. The new plaintext secret is returned once.

輸入參數clientId必填

版本歷史

1
  1. v1.1.3最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分