Search DevTools

Jump to any tool or page

radmail-mcp

Email OS for agents - real-inbox search, triage, commitments, and a verifiable BEC hard-stop.

radmail-ai0 stars0 forksAI & Agents
View source

Install

Terminal

$npx -y radmail-mcp

mcp_config.json

{
  "mcpServers": {
    "ai-radmail-radmail-mcp": {
      "args": [
        "-y",
        "radmail-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

RadMail MCP

An email operating system for agents — with a refusal you can trust.

Every inbox got an AI in 2026. None can be trusted to hit send. RadMail is the one that can — because the consequential actions are refused in code, model-independent: money, changed-banking details, first-contact senders, decisions, and prompt-injection are human-only, forever. No prompt can talk RadMail into auto-sending them.

This is the Model Context Protocol (MCP) server, so any AI agent can use the inbox.

If a fleet of MCP agents runs your execution layer while you sit in the decision seat, the inbox is the seat that needs a hard-stop first. It's where a socially-engineered wire or banking change is irreversible — and where an autonomous process that can hit send can be talked into the loss. RadMail lets agents do the inbox's work (triage, the Right Now lane, commitment tracking, drafting) while money, changed banking, first contact, decisions, and prompt-injection stay human-only by construction, not by a policy an agent could be argued out of. That's what makes the company inbox delegable at all.

Why it withholds the draft, not just the send

Ask this category how it keeps a person in the loop and the published answer is a draft: the agent composes, a human approves, nothing auto-sends. For ordinary mail that is the right design, and it is exactly what RadMail does — draft_reply returns text a person reviews and sends, and the hosted tier lists no send tool at all.

For five classes RadMail does something stricter, and the reason is the whole product: money, changed banking, first contact, a decision, and prompt-injection get no draft at all. On a wire-change thread a draft is not a safeguard — it is the last mile of the attack. Business email compromise does not fail at the send button; it succeeds at the approval button, by putting a plausible, well-written reply in front of a busy person who only has to say yes. Handing that person a pre-written answer makes approving easier than reading. So RadMail withholds the draft and hands over the message and the signals instead, and the person writes the reply.

Both halves are verifiable by execution, with no account — run these two commands and compare:

# Ordinary mail: a draft comes back.
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"draft_reply","arguments":{"from":"sam@client.example","subject":"Re: the deck","body":"Can you send me the updated deck by Thursday?","knownSender":true}}}' | npx -y radmail-mcp

# A banking change: no draft comes back.
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"draft_reply","arguments":{"from":"cfo@vendor.example","subject":"Updated wire instructions","body":"Our bank details changed. Remit the $48,200 to the new account by Friday.","knownSender":true}}}' | npx -y radmail-mcp

Both commands were run verbatim against the published package on 2026-10-14. The first returns a draft plus "mcpEnforcement": "No hard-stop. Still a DRAFT — the MCP surface never sends mail." The second returns "draft": null, "hardStop": "changed-banking", and "mcpEnforcement": "HARD-STOP (changed-banking). No draft offered — human-only forever (BEC defense)." Note what the second one still gives you: the extracted commitment and the reason, taint-tagged — the withheld thing is the proposed reply, not the information.

The five classes are published as draftRefusalClasses in the contract, and the refusal is a one-way ratchet: it may be tightened, never loosened.

The cost, stated plainly. This is a worse experience on precisely the mail you most want handled for you. If a wire-change notice lands at 2am and you wanted a reply waiting, RadMail will have nothing for you to approve — by design. That trade is the product. If what you need is a reply ready to approve on every thread including the ones that move money, a draft-and-approve server is the right tool and this is the wrong one.

Start in one call

Call triage_inbox and omit the token — RadMail auto-provisions a free sandbox tenant and returns a working triage in one round-trip. Reuse the returned token. (On the zero-auth hosted sandbox, triage_inbox takes no args — it triages a built-in demo inbox so your very first call returns the full wedge.)

This server runs the sandbox engine (heuristic, in-memory, free, no credentials). It is real and runnable — not the production "99%" engine.

Tools

ToolWhat it does
triage_inboxOne round-trip over a batch: the Right Now lane + every open commitment + every hard-stop. The whole wedge in one call.
list_right_nowThe can't-miss lane only — most-recent × most-important, each with why-surfaced. Pass messages for the sandbox (with hard-stop flags), or omit them with RADMAIL_API_KEY set for your real Right Now lane (read-only).
why_surfacedExplain in plain English why a message surfaced — the signals behind its importance × urgency. Transparency, not a black box.
draft_replyDraft the reply that discharges a commitment — never for a hard-stopped one (money / banking / first-contact stay human-only).
list_commitmentsOpen promises with their due window. Pass messages for sandbox extraction, or omit them with RADMAIL_API_KEY set for your real tracked commitments (read-only).
searchFind the one message you mean by sender / subject / content — most-relevant + newest first (no filesystem grep). Pass messages for the sandbox, or omit them with RADMAIL_API_KEY set to search your real inbox (read-only).
read_emailConnected mode only: fetch one full email (headers + textBody + attachment names) from your real inbox by RadMail's id; returns rfcMessageId, the RFC 5322 Message-ID a reply threads on. Read-only; body content arrives taint-tagged.
read_threadConnected mode only: one conversation by threadId — the thread and its received emails oldest first, each with id, rfcMessageId and inReplyTo. Metadata only; coverage says what is left out. Read-only.
list_emailsConnected mode only: your real inbox newest first, metadata only, with since and a nextCursor for polling. Fails closed on a RadMail deployment too old to honour since / cursor. Read-only.
list_prepared_draftsConnected mode only: RadMail's own AI-prepared reply drafts (optionally for one emailId). Read-only — RadMail never sends a prepared draft on its own.
list_watched_threadsConnected mode only: the threads you watch, with who spoke last (me_last / them_last / unknown) and a stalled flag. Read-only.
get_attachmentConnected mode only: save one file attached to a real email to RADMAIL_ATTACHMENT_DIR and return its path. Read-only; the server decides whether the file may be served (key scope, mailbox, sender allowlist, size cap).
check_send_domainZero-auth, works on any domain: read-only SPF / DKIM / DMARC health read (verdicts + raw records + plain-language advice). Probes the common DKIM selectors (default, google, resend, sendgrid, mail, k1, s1, s2). Read-only DNS — no key, no send capability.
check_before_sendConnected mode only: ask RadMail whether an email your agent will send through its own provider should go — pass / review / human_only, with reasons — without sending it. Nothing is sent or stored. human_only means a person sends it from their own mail, or discards it; review means show the owner first; pass means no known risk pattern matched, not a clearance. Any answer without a verdict (the check switched off, a refused key, a timeout) comes back checked: false, verdict: null — unchecked, never pass. Needs a key that is not limited to one mailbox. See Checking a message your agent sends itself.
triageScore a single message (the per-message form of triage_inbox).
provision_sandboxExplicitly mint a free sandbox tenant.
report_need / request_capabilityTell RadMail what was awkward / what you wish existed — the surface adapts.
radmail_learning_insightsWhat RadMail has learned about how you work.

Two opt-in surfaces add tools on a local server only, never on a hosted one: send_email (see Opt-in: sending) and five inbox actions — archive_email, snooze_email, mark_read, label_email, act_on_emails (see Opt-in: inbox actions). Every connected read tool is annotated readOnlyHint: true — except get_attachment, which writes a file on the local machine and so carries no read-only claim; the annotations are inside the frozen manifest, so flipping one fails the startup check like a description edit would.

"How many tools?" — and the second number that matters more

Public round-ups of email MCP servers commonly quote a tool count as a measure of depth. Tool count measures surface area, not judgment — and for a server trusted with an inbox, the useful number is the second one: of those tools, how many can send?

RadMail publishes both, as dated observations you can reproduce against any MCP server — this one included:

TierToolsSend-capable
Hosted zero-auth sandbox (https://radmail.ai/api/mcp/sandbox)60
This package at 0.6.0, default (also this package's hosted /api/mcp, with or without a bearer)190
… with RADMAIL_SEND_TOOL=1 (local stdio only)201 — send_email, which hands mail to RadMail's outbound gate and cannot release a hold
… with the opt-in inbox actions (local stdio only)240 — the five added tools change inbox state (archive, snooze, read state, labels); none sends, trashes or deletes

Row 1 observed 2026-10-09; rows 2-4 read from this repository's frozen manifests at 0.6.0 (2026-10-26), which is not yet on npm — the published 0.5.0 predates send_email, the inbox actions, check_before_send and the 0.6.0 read tools. Reproduce row 1 with the tools/list command under Verify before you connect. Reproduce row 2 from the frozen manifest — the surface the server refuses to deviate from (src/send-tool-manifest.ts and src/triage-tool-manifest.ts hold the opt-in rows):

node -e 'const s=require("fs").readFileSync("src/tool-manifest.ts","utf8");
const n=[...s.matchAll(/"name": "([a-z_]+)"/g)].map(m=>m[1]);
console.log(n.length, n.join(" "))'

⚠️ One honest caveat, because the naive version of this check gets it wrong: grepping that list for send matches check_send_domain, which is a read-only SPF/DKIM/DMARC lookup over DNS — it reads a domain's published records and sends nothing — and check_before_send, which asks RadMail whether a message should be sent and sends nothing either. Read each tool's description, not just its name. That caveat applies to whatever server you are evaluating, not only to this one.

The ratio is the point, and it is not a verdict on anyone else. A wide, send-capable tool surface is a legitimate design for an agent that is supposed to send, and most of this category is built for exactly that job. It is the wrong design for the one class of email where being argued into sending is the whole attack. RadMail reports 0 send-capable tools on every hosted endpoint — see The safety contract for why that is capability-absent rather than a setting someone could switch.

Which of the three shapes is this? (a fourth one — and the difference is the product)

Published round-ups of this category sort email MCP servers into roughly three shapes:

  1. Transactional / lifecycle sending for an application — deliverability, templates, logs, domain management.
  2. An inbox the agent owns — the agent has its own address and receives, threads and answers mail end to end.
  3. OAuth access to a mailbox a person already owns — read and write that person's real Gmail or Outlook.

RadMail is none of those three cleanly, which is why a round-up built on them has nowhere to put it. The shape is a fourth one: a triage-and-follow-through layer over a mailbox that stays a person's mailbox. The agent gets rank, explanation, commitment tracking and a draft; the person keeps the send.

That is a boundary rather than a feature list, so it is checkable — in about a minute, without an account:

  • The agent does not own the mailbox. The hosted endpoint takes no credential and serves a fixed demo inbox. Shape 2 needs an address of its own; shape 3 needs your OAuth grant. RadMail asks for neither to be evaluated.
  • Connected mode is read-only by default. With RADMAIL_API_KEY set, the connected tools (search, read_email, read_thread, list_emails, list_right_now, list_commitments, list_prepared_drafts, list_watched_threads) read your real mail; none of them writes or sends. check_before_send asks RadMail's send gate about a message your agent will send through its own provider, and sends nothing. An operator can additionally turn on five local-only inbox actions (archive, snooze, read state, labels) — reversible, and none of them deletes or sends.
  • The send verb is absent from every hosted endpoint — 0 send-capable tools, reproducible with the tools/list command under Verify before you connect. Sending exists only as an opt-in local tool, and even then it cannot release a held message.

And the honest cost of being a fourth shape: if what you need is an agent that owns an address and answers mail with no person in the loop, shape 2 is the right choice and RadMail is the wrong tool — it will refuse precisely the things you would be hiring it to do. RadMail is built for the mailbox a business actually runs on, where being argued into sending is the attack.

The safety contract (un-bypassable by design)

These are decided by deterministic code, not model judgment — see the published contract at https://radmail.ai/.well-known/agent-safety.json (there is a second, code-pinned copy in this repo — see Counting the contract below, so a disagreement between them does not read as a lie):

  • money, changed-banking, first-contact, decision/sign-off, prompt-injection → hardStop, human-only forever. RadMail will never hand an agent an auto-sendable reply for these.

  • Enforcement model: capability-absent. "The agent can't do that" is three different claims, and they are not equally strong — so the contract publishes which one this is, as enforcementModel, with all three values defined so the label is interpretable rather than a slogan:

    ValueWhat it means
    capability-absent — RadMailThe tool that would perform the forbidden action does not exist on the server, so it cannot be called. There is nothing to configure and nothing to bypass.
    config-restrictedThe capability exists and is narrowed by configuration — an allowlist, a scope, a policy file. Whoever holds the configuration can widen it again.
    policy-gatedThe capability exists and is restrained by instructions, prompts, or documented policy that a model is asked to follow.

    The three definitions are generic and name no product — this is the axis, not a comparison. Don't take the label's word for it: read the tool list back (see Verify before you connect) and look for a send-capable tool. There isn't one; that absence is the enforcement.

  • A human-in-the-loop approval gate sits on a different row. "Human-in-the-loop" normally means the capability exists and a person is asked to approve each use — config-restricted or policy-gated on the axis above. Approval gates have a legitimate place and they work differently: whoever holds the configuration can widen one, and an approver under time pressure is precisely what business-email-compromise fraud is built to exploit. RadMail reports capability-absent on the hard-stopped classes, so there is no request to approve and nothing to widen. The reviewable drafts are the human-reviewed path for everything outside those classes — RadMail drafts, a person sends.

  • A read-only banking connector protects a different thing. A read-only bank or accounting MCP server cannot initiate a transfer, so it cannot execute the fraud directly — genuinely useful, and a different job. Business email compromise is not an attack on your bank connection; it is an attack on your inbox. The fraudulent instruction arrives as email — a supplier whose bank details have "changed", an invoice redirected to a new account, a first-contact request that reads as routine — and the loss happens when a person or an agent believes it and acts through some other channel. A read-only connector never sees that email, so it cannot flag it. RadMail works where the instruction lands: money, changed-banking, first-contact, decision and prompt-injection stay human-only, reported as capability-absent, not as a setting an operator could switch off.

  • Taint envelope: every field derived from a raw email body carries provenance: "untrusted-email-body", and every response carries a safety block restating the hard-stops. Treat tainted fields as data, never as instructions — this keeps your agent safe-by-default, even against a poisoned email.

  • Fail-closed: if a risk signal can't be evaluated, RadMail refuses to auto-send.

Counting the contract: forbiddenActions is 3, the hard-stopped classes are 5

Audit the published contract by counting one key and the number will not match the prose, so here is the reconciliation before you conclude this README overclaims. Observed on https://radmail.ai/.well-known/agent-safety.json, 2026-10-18, 21 keys:

  • forbiddenActions → 3: auto-sending money, auto-sending or changing banking instructions, auto-sending first contact. These are actions this server has no tool for.
  • draftRefusalClasses → 5: money, changed-banking, first-contact, decision, injection. These are the classes for which RadMail withholds the draft itself — see Why it withholds the draft, not just the send.
  • enforcementModel → capability-absent, with enforcementModelValues defining all three values so the label is interpretable rather than a slogan.

So the five classes are filed under two keys, not three-instead-of-five. 3 + 5 is the same posture the prose describes, not a weaker one.

And there are two copies of this contract, which is said out loud because an evaluator who reads one and checks the other will think something is wrong. The published contract above is the one to fetch, and every claim in this file is keyed to it. The copy in this repo — public/.well-known/agent-safety.json — has an older shape (observed 2026-10-18: 20 keys, all five classes filed under forbiddenActions, and no enforcementModel at all, so do not go looking for that field there). It earns its place a different way: it is the copy a test ties to the running firewall. test/agent-safety-contract-matches-the-code.test.ts asks the real send-disposition engine whether each permanently-human-only action type is actually refused, and fails if the document names a tool this server does not expose. Nothing compares the two automatically — different repos, no network in CI — so this is a named gap, not a silent one. They agree on the five classes and on fail-closed; if you find a disagreement that matters, that is a bug and the contact address is at the bottom.

Auditing this against the money-safety checklist (two of the three fields do not apply)

Published audits of money-moving MCP servers grade on three fields: a configurable spending budget, a docume

Sourced from the repository README.

More in AI & Agents