mailflat-mcp
OfficialMailFlat SDKs
MailFlat 的官方客户端库:你的代码拥有的电子邮件收件箱,支持一行代码获取 OTP。专为测试套件(Selenium、pytest、Playwright)和 AI 代理构建。
地址是永久的,因此测试套件无需每次运行都使用新地址。只有消息会过期,过期时间由你选择的保留窗口决定。
此仓库仅包含开源 SDK。MailFlat 服务本身是闭源的。
软件包
软件包 | 用途 | 安装 |
Python |
| |
JavaScript / TypeScript |
| |
AI 助手(Claude、Cursor)— MCP |
| |
Vercel AI SDK 智能体 |
| |
| LangChain 智能体 |
|
| Java / Selenium | 通过 JitPack — 见下文 |
每个客户端都是同一个 /api/v1 Agent API 的轻量、类型化包装器,因此它们的行为完全一致。使用仪表板(Agents → API keys)中的账户密钥(mf_live_…)进行身份验证。
Related MCP server: useblip/email
Java / Selenium(JitPack)
JitPack 从 GitHub 所有者派生
groupId。此仓库于 2026 年 8 月迁移到官方MailFlat账户,因此从v0.4.4开始的版本以com.github.MailFlat:mailflat-sdks发布。早期版本仍可通过旧坐标com.github.onderyentar21:mailflat-sdks解析;旧仓库会继续保留。客户端接下来将迁移到 Maven Central(net.mailflat),从而结束所有者耦合。
<repositories>
<repository><id>jitpack.io</id><url>https://jitpack.io</url></repository>
</repositories>
<dependency>
<groupId>com.github.MailFlat</groupId>
<artifactId>mailflat-sdks</artifactId>
<version>v0.4.5</version>
</dependency>MailFlat mf = new MailFlat("mf_live_…");
Inbox inbox = mf.create("signup");
driver.findElement(By.id("email")).sendKeys(inbox.address());
String otp = inbox.waitForOtp(30); // polls until the code arrives
driver.findElement(By.id("code")).sendKeys(otp);快速示例
Python
from mailflat import MailFlat
mf = MailFlat(api_key="mf_live_…")
inbox = mf.create(label="signup")
otp = inbox.wait_for_otp(timeout=30)JavaScript / TypeScript
import { MailFlat } from "@mailflat/sdk";
const mf = new MailFlat({ apiKey: process.env.MAILFLAT_API_KEY });
const inbox = await mf.create({ label: "signup" });
const otp = await inbox.waitForOtp({ timeout: 30000 });许可证
MIT。完整文本位于仓库根目录的 LICENSE 文件中;每个包目录都包含一份相同的副本。
Maintenance
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
- AlicenseAqualityCmaintenanceMCP server for disposable email — create inboxes, receive emails, and extract OTP codes. Let your AI agent sign up for services, wait for verification emails, and extract codes autonomously.7691MIT
- AlicenseNot gradedqualityAmaintenanceOpen-source, self-hosted Inbox-as-a-Service API for AI agents. It enables agents to manage email inboxes, send/receive emails, search messages, and wait for replies via REST or MCP.27Apache 2.0
- AlicenseNot gradedqualityBmaintenanceAn MCP server that provides AI agents with a persistent, agent-native email mailbox for sending, receiving, and managing emails through bounded-context retrieval, idempotent operations, and explicit acknowledgement.MIT
Related MCP Connectors
Give an agent its own inbox: send, receive, and pull signup codes from real email.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Give an AI agent its own email address: send, reply, read, and wait for mail.
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/MailFlat/mailflat-sdks'
If you have feedback or need assistance with the MCP directory API, please join our Discord server