Skip to main content
Glama
MailFlat

mailflat-mcp

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAILFLAT_API_KEYYesYour MailFlat account API key. Create one in the dashboard under Agents, API keys. Starts with mf_live_.
MAILFLAT_API_URLNoOverride the API base URL. Only needed for self-hosted or bring-your-own-domain setups.https://mailflat.net

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_inboxA

Open an email inbox and return its address. Use this when you need an address to sign up for a service or to receive a one-time code.

The address is permanent and stays until you delete it, so a test suite can reuse one address across runs instead of opening a new inbox each time. Only the messages inside expire, on the retention window you choose.

label needs a paid plan; on free it is reported back in ignored_fields. retention_hours is optional (0 = your plan's max); requests above your plan are capped.

list_inboxesA

List all inboxes available to this API key.

read_messagesA

Read messages in the given inbox address (newest first).

direction is "in" for received mail (default), "out" for mail sent from this address, or "all" for both. Received mail is the default so that a reply you are waiting for is not confused with a message you just sent.

wait_for_otpA

Poll the inbox until an OTP code arrives (or timeout). Returns {otp_code, email}.

wait_for_messageA

Poll the inbox until a new message ARRIVES (or timeout). Returns {email}.

Only received mail counts, so you can send to a peer and then wait for their reply without matching your own outgoing message.

send_emailA

Send an email FROM the given inbox address (DKIM-signed via MailFlat's MTA). Use for replies or outbound automation. html is optional.

Returns once the mail is ACCEPTED for delivery, not once it is delivered: delivery runs on a queue and the result arrives via webhook or by reading the message back.

cc addresses appear in the mail's headers; bcc addresses never do — not even in their own copy. Attachments are not available here; send those from the SDK.

replyA

Reply to a message so it stays in the SAME conversation.

Prefer this over send_email when answering: it fills in the recipient, an Re: subject and the threading headers. A plain send_email starts a new conversation in the recipient's client, which does not look like a reply.

wait_until_sentA

Find out whether a mail you sent was actually delivered.

send_email only means "accepted for delivery"; the mail goes out later on a queue. Call this with the message_id send_email returned to learn the outcome.

Returns delivered: true once it went out. If it is still queued when the timeout elapses you get timed_out: true with delivered: false — that is NOT a failure and you must NOT send the mail again; the queue is still retrying. status tells you whether it has been attempted yet (queued) or attempted and rescheduled (retrying), and error carries what the last attempt reported. Permanent failure comes back the same way, as status: failed with the reason in error — read note before you resend anything.

mark_readA

Mark one message as read so later polls can skip it.

burn_inboxA

Delete every message in an inbox but KEEP the address.

Use between scenarios: the address stays registered wherever you already used it.

delete_inboxA

Delete an inbox and all its messages by address. Irreversible.

delete_messageA

Delete a single message in an inbox by its id (the inbox itself stays).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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