byod
Deploys and uses a BYOD Worker in the user's Cloudflare account, leveraging Cloudflare Email Routing and Email Sending plus Durable Object storage to receive, store, read, send, reply to, and manage email on a custom domain.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
BYOD
Bring your own domain. Own your agent mailboxes.
BYOD gives Claude Code (or any MCP client) email addresses on a domain you own: signup@yourname.xyz, invoices@yourname.xyz, as many as you like. Agents create them, read what arrives with the codes and links already picked out, wait for a verification email, save attachments, and reply or send with files from your computer.
The mail lands in a Cloudflare Worker in your own Cloudflare account and is stored there, in a Durable Object only you can reach. The MCP server runs on your machine. There is no account to sign up for, and nothing passes through anyone else.
What you need
A domain. A
.xyzon Spaceship is usually a dollar or two for the first year (check the renewal price).A free Cloudflare account. Receiving mail works on the free plan. Sending to any address needs Cloudflare's Workers Paid plan ($5 a month).
Node.js 20 or newer.
Related MCP server: email.deadsimple/dead-simple-email
Set it up
1. Buy a domain on Spaceship
Search for a name on spaceship.com, sort by price, buy the cheapest one you like. Any name works; it only has to be yours.
2. Move its DNS to Cloudflare
In Cloudflare, Add a domain, type it in, pick the Free plan and continue. Cloudflare shows two nameservers, like
ada.ns.cloudflare.comandbob.ns.cloudflare.com.In Spaceship, open Advanced DNS and pick the domain. Under Nameservers, click Change, choose Custom nameservers and confirm, paste Cloudflare's two in place of Spaceship's, and Save. This ends Spaceship's own email forwarding or hosting on that domain, which is what you want.
Wait for Cloudflare to say the domain is Active. It is often minutes, at most 48 hours.
3. Deploy your Worker
npx -y github:brandonmlicea/byod setup yourname.xyzIt signs you in to Cloudflare with Wrangler the first time, deploys the byod Worker to your account, sets a random secret token on it, and saves the Worker's address and token to ~/.byod/config.json (readable only by you). Give several domains to use them all: setup yourname.xyz other.dev. Run it again any time to update; the token stays the same.
4. Two switches in the Cloudflare dashboard
For each domain:
Receive: Compute > Email Service > Email Routing > Onboard Domain. Then Routing rules > Catch-all address > Edit > action Send to a Worker >
byod> Save, and make sure the catch-all is on.Send (Workers Paid): Compute > Email Service > Email Sending > Onboard Domain. Cloudflare adds the SPF, DKIM and DMARC records itself.
5. Add it to Claude Code
claude mcp add byod -- npx -y github:brandonmlicea/byodAny other MCP client (Claude Desktop, Cursor, Codex...):
{
"mcpServers": {
"byod": { "command": "npx", "args": ["-y", "github:brandonmlicea/byod"] }
}
}To point it somewhere else, set BYOD_URL and BYOD_TOKEN instead of the config file.
Tools
Tool | What it does |
| Your domains and mailboxes, how many messages each holds and the newest id |
| A mailbox on your domain: a name, or a random one; |
| Messages with sender, subject, codes, links, files and text; |
| Send from one of your mailboxes, with cc, bcc and files from your computer; |
| The last 50 emails sent from a mailbox |
| Save a received attachment to your computer (Downloads by default) |
| Delete a mailbox and everything in it |
Try it
"Make me a mailbox for signing up to Figma, sign up with it, and paste me the confirmation code."
"Create invoices@ and tell me when something arrives there."
"Reply to the last email in support@ saying we'll ship Friday, and attach ~/Desktop/quote.pdf."
How it behaves
Mail to an address that is not a mailbox is refused, so the catch-all never collects spam.
name+anything@goes toname@.Mail always leaves from one of your mailboxes; nothing an agent passes can set another From.
The API answers only to your token, compared in constant time.
Each mailbox keeps its last 1,000 messages. Inbound mail is capped at 10 MB.
Sending: 50 recipients an email, 10 files and about 3.5 MB of attachments, and 100 emails a day by default (
DAILY_LIMITinworker/wrangler.jsonc), so a runaway agent cannot burn your domain's reputation.Expired mailboxes are deleted with their mail the next time the Worker is used.
Check it
npm install
npm test # the code and link picker on labelled cases
npm run e2e # the Worker in wrangler dev and the MCP server, end to endnpm run e2e runs everything on your machine: it sends real MIME messages into a local Worker, reads them, waits for one, saves an attachment, replies and deletes, through the MCP server.
Remove it
Delete the byod Worker in Cloudflare (Workers & Pages), which deletes its mail, and ~/.byod.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Task-scoped email inboxes for AI agents: read mail, extract verification codes, and reply.
Real email inboxes for AI agents: create inboxes, catch verification codes, extract OTPs, reply.
Real email inboxes for AI agents: create addresses, send, wait for mail and verification codes.
Email inboxes for AI agents: send, reply, read verification codes, human-approved drafts.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to create disposable email inboxes and automatically extract OTPs, magic links, and verification codes from incoming emails.10 npmMIT
- AlicenseAqualityBmaintenanceProvides AI agents with real email infrastructure, enabling them to create inboxes, send/receive messages, and extract verification codes from incoming mail.14MIT
- AlicenseAqualityCmaintenanceGives AI agents their own email address with inbound parsing, classification, extraction, and prompt injection screening, plus tools to manage mailboxes, send/receive emails, and handle draft approval workflows.1485 npmMIT

Mailsac MCP Serverofficial
AlicenseAqualityCmaintenanceEnables AI coding agents to create disposable test inboxes, wait for and read incoming email, and extract confirmation links and one-time codes for sign-up, password-reset, and magic-link flows.64 npmMIT