mailsink
@mailsink/mcp
MailSink 的模型上下文协议 (MCP) 服务器 — 为 AI 智能体和测试自动化提供程序化的临时电子邮件收件箱。
为您的智能体提供八种类型化的工具,用于配置一次性地址、 等待注册邮件、提取 OTP 验证码和魔法链接,以及在任务完成后进行清理。 适用于 Claude Code、Claude Desktop、Cursor、Windsurf 以及任何其他支持 MCP 的客户端。
安装
npm install -g @mailsink/mcp或者通过 npx 运行,无需安装:
npx @mailsink/mcpRelated MCP server: guerrillamail-mcp
获取 API 密钥
使用 GitHub 登录 https://mailsink.dev/app。
从一次性显示中复制密钥。将其存储在您的密码管理器或
.env文件中。导出它以便 MCP 服务器可以读取:
export MAILSINK_API_KEY="msk_..."免费层级每月提供 50 个收件箱并包含 MCP 支持。专业版($15/月)和团队版($49/月)可提高收件箱上限、增加邮件大小限制、延长 TTL 并提高请求速率。请参阅 定价。
配置您的客户端
Claude Code
claude mcp add mailsink -- npx -y @mailsink/mcpClaude Desktop / Cursor / Windsurf
添加到客户端配置文件的 mcpServers 部分:
{
"mcpServers": {
"mailsink": {
"command": "npx",
"args": ["-y", "@mailsink/mcp"],
"env": {
"MAILSINK_API_KEY": "msk_..."
}
}
}
}重启客户端。您应该会看到 mailsink 服务器及其八个工具已列出。
工具
工具 | 用途 |
| 配置一个一次性地址。返回 |
| 列出账户上的活动收件箱。 |
| 阻塞最多 |
| 从收件箱中提取最新的 OTP(轮询直到找到或超时)。 |
| 提取最新的魔法链接。 |
| 收件箱中所有邮件的摘要。 |
| 通过 ID 获取特定邮件的完整内容。 |
| 立即销毁收件箱。 |
智能体流程示例
> 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。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for MailTempo's public free temporary email inboxes.
Hosted MCP server for custom-domain email: send, receive and wait for mail on your domain.
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server for reading and sending emails via IMAP/SMTP, supporting multiple accounts in a single instance with zero external dependencies.1-
- AlicenseAqualityCmaintenanceMCP server for the Guerrilla Mail temporary/disposable email API. Spin up throwaway inboxes, poll for mail, and read messages from any MCP client.614 npm1MIT
- FlicenseAqualityDmaintenanceProvides a dummy SMTP server for catching emails during development, with MCP tools to list, retrieve, and manage received messages.4-
- AlicenseNot gradedqualityDmaintenanceA minimal MCP server for reading, searching, managing, and sending email over IMAP and SMTP.MIT