Skip to main content
Glama
brobin002

SandMail — Disposable Email API for AI Agents

SandMail MCP 服务器

为 AI 智能体提供具备 OTP 提取功能的临时邮箱收件箱。

适用于 Claude CodeCursorWindsurf 以及任何兼容 MCP 的 AI 工具。

安装

npm install -g sandmail-mcp

设置

Claude Code / Claude Desktop

添加到您的 MCP 配置文件 (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "sandmail": {
      "command": "sandmail-mcp",
      "env": {
        "SANDMAIL_API_KEY": "sk_live_your_key"
      }
    }
  }
}

Cursor

添加到 .cursor/mcp.json

{
  "mcpServers": {
    "sandmail": {
      "command": "sandmail-mcp",
      "env": {
        "SANDMAIL_API_KEY": "sk_live_your_key"
      }
    }
  }
}

可用工具

工具

描述

create_inbox

创建一个临时邮箱收件箱

wait_for_otp

等待邮件并提取 OTP 验证码

get_otp

从最新邮件中提取 OTP

get_emails

列出收件箱中的所有邮件

wait_for_email

等待任何新邮件到达

delete_inbox

删除收件箱

list_inboxes

列出所有活跃的收件箱

get_quota

检查 API 使用情况

使用示例

询问您的 AI 智能体:

"创建一个临时邮箱,在 example.com 注册,并获取验证码给我"

智能体将执行:

  1. 调用 create_inbox → 获取 test123@tempyx.com

  2. 使用该邮箱在网站上注册

  3. 调用 wait_for_otp → 等待验证邮件

  4. 将 OTP 验证码返回给您

获取 API 密钥

请前往 sandmail.dev 获取您的免费 API 密钥

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - A tier

Latest Blog Posts

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/brobin002/sandmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server