Skip to main content
Glama
MailFlat

mailflat-mcp

Official

MailFlat SDKs

MailFlat 的官方客户端库:你的代码拥有的电子邮件收件箱,支持一行代码获取 OTP。专为测试套件(Selenium、pytest、Playwright)和 AI 代理构建。

地址是永久的,因此测试套件无需每次运行都使用新地址。只有消息会过期,过期时间由你选择的保留窗口决定。

此仓库仅包含开源 SDK。MailFlat 服务本身是闭源的。

软件包

软件包

用途

安装

mailflat

Python

pip install mailflat

@mailflat/sdk

JavaScript / TypeScript

npm i @mailflat/sdk

mailflat-mcp

AI 助手(Claude、Cursor)— MCP

uvx mailflat-mcp

@mailflat/ai-sdk

Vercel AI SDK 智能体

npm i @mailflat/ai-sdk

mailflat.langchain

LangChain 智能体

pip install "mailflat[langchain]"

mailflat-sdk (Java)

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 文件中;每个包目录都包含一份相同的副本。

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
2Releases (12mo)
Commit activity

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    Disposable 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.
    6
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    MCP 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.
    7
    69
    1
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Open-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.
    27
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    An 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

View all related MCP servers

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.

View all MCP Connectors

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/MailFlat/mailflat-sdks'

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