MinuteMail MCP
Officialmcp-server
MCP(Model Context Protocol)服务器,将 MinuteMail 公开 API 暴露为工具。它让 AI 代理和 MCP 客户端能够通过 mm-api-gateway 操作 MinuteMail 邮箱、邮件、附件、域名、团队和模拟 OAuth 身份。
端点:
https://mcp.minutemail.co/mcp(Streamable HTTP,协议修订版2025-06-18)认证: MCP 客户端的
Authorization: Bearer mmak_...请求头会原样转发给 api-gateway——此服务器不持有任何凭据。作用域和配额由 api-gateway 强制实施,与任何 API 客户端完全相同。无状态: 无会话,无服务端推送 SSE(
GET /mcp和DELETE /mcp返回 405)。健康检查:GET /health。
工具集(39 个工具)
每个工具与 api-gateway 的 /v1 路由一一对应。所有调用都需要 Bearer API 密钥;写操作需要匹配的作用域(mailboxes、domains、team、identities)。
邮箱(mailboxes 作用域)
工具 | 网关路由 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
归档邮箱(mailboxes 作用域)
mm_list_archived_mailboxes、mm_get_archived_mailbox、mm_delete_archived_mailbox、mm_reactivate_archived_mailbox。
域名(domains 作用域)
mm_list_domains、mm_register_domain、mm_verify_domain、mm_delete_domain。
团队(team 作用域)
mm_list_members、mm_add_member、mm_get_member、mm_delete_member、mm_create_invitation、mm_list_invitations、mm_delete_invitation。
模拟身份(identities 作用域)
mm_list_identities、mm_create_identity、mm_get_identity、mm_delete_identity、mm_list_oauth_clients、mm_create_oauth_client、mm_get_oauth_client、mm_delete_oauth_client、mm_rotate_client_secret。
未暴露
/v1/api-keys增删改查——API 密钥管理不通过 MCP 暴露;请从 Web 应用管理密钥。/internal/*——仅限内部使用。/metrics提供 Prometheus 指标(运行时go_*/process_*计数器)供抓取;参见 METRICS.md。
Related MCP server: ldm-email-deliverability
示例
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":"mm_create_mailbox","arguments":{"expiresIn":30}}}'工具结果以 MCP 文本内容返回,其中携带网关的 JSON 响应。非 2xx 的网关响应会变成 isError: true 的结果,并附带 HTTP 状态码和响应体(401 无效密钥、403 作用域/域权限、429 配额不足并附剩余计数、502 上游不可用)。
配置
环境变量 | 默认值 | 用途 |
|
| 监听端口 |
|
| api-gateway 基础 URL(集群内) |
|
| 日志级别: |
|
| 日志格式: |
|
| 部署环境标签 |
开发
Go 1.23。使用标准库加 prometheus/client_golang 提供 /metrics。遵循 MinuteMail 服务标准(参见 mm-mailbox-service)。
go test ./... # unit tests
go vet ./...
go run . # local server on :8080This server cannot be deployed
Maintenance
Related MCP Connectors
Disposable test mailboxes on a real domain: send, receive and assert on real email.
Test-inbox API for email and SMS: create inboxes, long-poll messages, extract OTPs and links.
Webhook, email, WebSocket and tunnel testing for AI agents: capture, wait, verify, replay.
Email API + newsletters. 17 MCP tools. OAuth 2.1 PKCE or API key. EU-hosted (Hetzner + SES).
Related MCP Servers
- AlicenseBqualityCmaintenanceDisposable email MCP server for autonomous AI agents. Create labeled temporary inboxes, wait for verification emails, extract OTP codes and confirmation links — zero human intervention required.6MIT
- AlicenseAqualityDmaintenanceProgrammatic email deliverability testing for AI agents. Create inbox placement tests across Gmail, Outlook, Yahoo, Mail.ru, Yandex — get per-provider placement (Inbox/Spam/Promotions), SPF/DKIM/DMARC auth, Rspamd & SpamAssassin verdicts, DNS health (MX, PTR, DNSBL), and live SSE results.561 npm2MIT

AgenticMailofficial
AlicenseAqualityAmaintenanceReal email and SMS for AI agents. Run a local mail server with disposable inboxes — agents send and receive real email, fetch verification codes, and drive a real inbox without going through any third-party email API.100229MIT- AlicenseNot gradedqualityDmaintenanceA headless, disposable email inbox that an AI agent drives over MCP, enabling temporary email addresses and email receipt for testing signup flows.81 npmMIT