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: mcp-imap
获取 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。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseDqualityDmaintenanceAn MCP server implementation that allows sending emails over MailPace's fast transactional email API.11MIT- Flicense-qualityBmaintenanceA minimal MCP server for reading and sending emails via IMAP/SMTP, supporting multiple accounts in a single instance with zero external dependencies.1
- AlicenseAqualityBmaintenanceMCP server for the Guerrilla Mail temporary/disposable email API. Spin up throwaway inboxes, poll for mail, and read messages from any MCP client.6151MIT
- FlicenseAqualityBmaintenanceProvides a dummy SMTP server for catching emails during development, with MCP tools to list, retrieve, and manage received messages.4
Related MCP Connectors
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
MCP server for URL shortening and management
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/heocoi/mailsink-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server