临时邮箱验证服务

AntiTempMail MCP Server 是一个用于验证邮箱是否为临时/一次性邮箱的服务,通过AntiTempMail API实现,适用于Claude Desktop、Cline等MCP兼容客户端。

  • by EricMymj
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 EricMymj/antitempmail-mcp

使用说明

AntiTempMail MCP服务器

模型上下文协议(MCP)服务器,用于使用 反垃圾邮件 API

适用于Claude Desktop、Cline和任何兼容MCP的客户端。

🚀 快速开始

安装

npm install -g @orristech/antitempmail-mcp

配置

克劳德桌面版

添加到您的Claude Desktop配置文件中:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
视窗: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "antitempmail": {
      "command": "antitempmail-mcp",
      "env": {
        "ANTITEMPMAIL_API_KEY": "your_api_key_here"
      }
    }
  }
}

Cline(VS代码扩展)

添加到Cline的MCP设置中:

{
  "mcpServers": {
    "antitempmail": {
      "command": "antitempmail-mcp",
      "env": {
        "ANTITEMPMAIL_API_KEY": "your_api_key_here"
      }
    }
  }
}

获取API密钥

注册地址: 反垃圾邮件 并从 仪表盘.

🛠️ 可用工具

check_email

验证单个电子邮件地址。

输入:

{
  "email": "test@tempmail.com"
}

输出:

{
  "email": "test@tempmail.com",
  "isTemporary": true,
  "domain": "tempmail.com",
  "provider": "TempMail",
  "risk": "high",
  "confidence": 98
}

check_emails_bulk

一次验证多封电子邮件(最多100封)。

输入:

{
  "emails": [
    "user1@gmail.com",
    "user2@tempmail.com",
    "user3@10minutemail.com"
  ]
}

输出:

{
  "results": [
    {
      "email": "user1@gmail.com",
      "isTemporary": false,
      "domain": "gmail.com",
      "risk": "low"
    },
    {
      "email": "user2@tempmail.com",
      "isTemporary": true,
      "domain": "tempmail.com",
      "provider": "TempMail",
      "risk": "high"
    },
    {
      "email": "user3@10minutemail.com",
      "isTemporary": true,
      "domain": "10minutemail.com",
      "provider": "10MinuteMail",
      "risk": "high"
    }
  ],
  "summary": {
    "total": 3,
    "temporary": 2,
    "legitimate": 1
  }
}

💡 使用示例

使用克劳德桌面

“检查test@tempmail.com是临时电子邮件”

“验证这些电子邮件:user1@gmail.com, user2@10minutemail.com, user3@yahoo.com"

“我有一份注册表单上的50封电子邮件。你能检查一下哪些是临时的吗?”

与克莱恩

让Cline在编码时验证电子邮件:

“在处理此用户注册之前,请检查他们的电子邮件是否是临时的”

“使用antitempmail工具将电子邮件验证添加到此注册端点”

🔧 发展

从源代码构建

git clone https://github.com/EricMymj/antitempmail-mcp.git
cd antitempmail-mcp
npm install
npm run build

在本地运行

export ANTITEMPMAIL_API_KEY="your_api_key_here"
node dist/index.js

使用MCP检查员进行测试

npx @modelcontextprotocol/inspector antitempmail-mcp

📊 API限值

级别 请求/天 价格
免费 100 0美元
专业 10000 每月9美元
企业 定制 联系

请访问以下网址查看您的使用情况:https://antitempmail.com/dashboard/credits

🤝 贡献

欢迎投稿!请打开问题或PR。

📄 许可证

MIT许可证-请参阅 许可证 了解详情。

🔗 链接

🆘 故障排除

“需要ANTITEMPMAIL_API_KEY环境变量”

请确保已将API密钥添加到MCP服务器配置中。从以下位置获取密钥https://antitempmail.com/dashboard

“API错误(401):未经授权”

您的API密钥无效或已过期。从仪表板生成一个新的。

“API错误(429):请求太多”

您已超出费率限制。升级您的计划或等待限额重置。

服务器未显示在Claude Desktop中

  1. 完全重新启动克劳德桌面
  2. 检查配置文件语法(必须是有效的JSON)
  3. 验证命令路径是否正确
  4. 检查Claude Desktop日志是否有错误