InboxProbe
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.
InboxProbe
Let your coding agent test the whole signup flow, including the email.
InboxProbe gives AI agents and test suites real, throwaway inboxes on your own domain, running on one
Cloudflare Worker. The agent makes an address like signup-test@example.com, signs up with it, and
waits: the verification link and the one-time code come back in a single call. When the test is done,
it deletes the address.
It covers any flow that ends in an email: signups and verification, password resets, magic links, one-time codes, invites and receipts.
A REST API for making addresses and reading mail.
An MCP server, so Claude Code, Cursor or any MCP client can make an inbox and wait for mail with no code.
Links and codes pulled out of each message, so an agent can click the verification link or type the code without parsing HTML.
A calendar for every address over CalDAV. Invites mailed to the address land in it, and an iPhone can sync it.
No servers to run. Mail comes in through Cloudflare Email Routing, addresses and the inbox index live in D1, and each message is kept as received in R2.
It receives mail only. It doesn't send yet (see Not yet).
How it works
flowchart TD
S[Someone emails name@example.com] --> R[Cloudflare Email Routing catch-all]
R --> W[The Worker]
W -->|address unknown| X[Rejected at SMTP time]
W -->|message as received| R2[(R2)]
W -->|addresses, inbox index| D1[(D1)]
A[Agent] -->|REST or MCP| WEvery message for your domain goes to the Worker. If the address exists, the Worker keeps the message in R2 and indexes it in D1; if not, it rejects the message so the sender gets a bounce. Agents read mail back over the REST API or the MCP server.
Tokens are stored only as hashes, so a leaked database doesn't leak access to inboxes.
Related MCP server: courier-mcp
What you need
A Cloudflare account.
A domain whose DNS is on Cloudflare. A domain used only for this is best, because the Worker takes every message sent to it.
Node.js 20 or later.
Email Routing and D1 are free. R2 is free up to 10 GB, but you have to accept its free plan in the Cloudflare dashboard once before you can create a bucket.
Deploy your own
1. Clone and install.
git clone https://github.com/jerrickhakim/inboxprobe.git
cd inboxprobe
npm install
npx wrangler login2. Make the database and the bucket.
npx wrangler d1 create inboxprobe
npx wrangler r2 bucket create inboxprobe-mail3. Configure the Worker. Fill in the <…> values in wrangler.jsonc:
vars.DOMAIN: your domain (example.com). Addresses arename@DOMAIN. The domain lives only here, never in the code; the Worker refuses to run without it.database_id: whatwrangler d1 createprinted.routes: a hostname on your domain for the API, MCP server and calendar (dav.example.com), or removeroutesto use only theworkers.devaddress.
If you named the database, bucket or Worker differently in step 2, change those names too.
4. Set the secrets. ADMIN_TOKEN guards creating addresses and the admin routes. Without it,
no one can create an address.
openssl rand -base64 32 | npx wrangler secret put ADMIN_TOKENKeep a copy of the value: you'll pass it as the Bearer token when creating inboxes.
5. Create the tables and deploy.
npm run db:migrate
npm run deploy6. Turn on Email Routing. In the Cloudflare dashboard, open your domain → Email → Email Routing and enable it. Cloudflare adds the MX, SPF and DKIM records. Then, under Routing rules, set the catch-all action to Send to a Worker and choose your Worker.
7. Check it. Make an address, send it a real email from any mail account, and read it back:
URL=https://inboxprobe.<your-subdomain>.workers.dev
curl -s -X POST $URL/accounts -H "authorization: Bearer $ADMIN_TOKEN" -d '{"name":"hello"}'
# → {"id":"…","address":"hello@example.com","token":"mt_…"}
curl -s "$URL/messages" -H "authorization: Bearer mt_…"Mail usually arrives within a few seconds. If it doesn't, see Troubleshooting.
Use it from an agent
MCP
Add the Worker's /mcp endpoint to any MCP client. For Claude Code:
claude mcp add --transport http inboxprobe https://dav.example.com/mcpTool | Input | Answer |
|
|
|
|
| The oldest unread match in full, with its |
|
|
|
check_mail with wait_seconds holds the request open until mail arrives, so an agent can sign up
for something and wait for the email in one call.
The MCP server is public: anyone who can reach it can create inboxes, without the admin token. It's
switched on by the MCP_CREATE rate limit binding in wrangler.jsonc, which caps inbox creation at
10 a minute per IP. Remove that binding to turn /mcp off.
It speaks Streamable HTTP without sessions: each POST gets a JSON answer, with no SSE.
REST
# Make an address (admin token). Leave out the name for a random one.
curl -s -X POST $URL/accounts -H "authorization: Bearer $ADMIN_TOKEN" -d '{"name":"signup-test"}'
# Read it (the address's token).
curl -s "$URL/messages?unread=true" -H "authorization: Bearer $TOKEN"
curl -s "$URL/messages/<id>" -H "authorization: Bearer $TOKEN"
# Delete it and all its mail.
curl -s -X DELETE $URL/account -H "authorization: Bearer $TOKEN"API
Errors are { "error": "…" }.
Addresses
Names are 1–64 lowercase letters, digits, ., - and _, starting and ending with a letter or digit.
postmaster, abuse, admin and similar names are reserved. Mail to name+anything@DOMAIN goes to
name.
Route | Auth | What |
| admin |
|
| token |
|
| token | Deletes the address and all its mail. Mail sent to it afterwards bounces. |
| none |
|
Every address has the folders INBOX, Sent, Drafts, Archive, Junk and Trash. New mail goes to INBOX.
Route | What |
|
|
| Newest first, from INBOX unless |
| The parsed message: |
| The message exactly as received ( |
| One attachment's bytes. |
| Moves it. It comes back under a new id. |
| Deletes it for good. |
All of these take the address's token as Authorization: Bearer <token>.
Admin
These take ADMIN_TOKEN and see every inbox at once. Reading through them never marks mail as read,
so an agent waiting for unread mail still gets it.
Route | What |
| Every address with its counts and latest mail, latest first |
| Deletes an address and its mail |
| Mail across every inbox, or one |
| One message |
| Deletes a message |
App passwords
For signing in to the calendar from a phone. They work for CalDAV only, never the REST API.
Route | What |
|
|
|
|
| Revokes it |
Calendar
Every address has one calendar over CalDAV at /dav/. The username is the address; the password is an
app password or the address's token.
On an iPhone, open https://<your host>/setup.mobileconfig?address=name@example.com in Safari,
install the profile from Settings, and paste an app password when asked. The profile holds no secret.
To add it by hand, go to Settings → Apps → Calendar → Calendar Accounts → Add Account → Other → Add
CalDAV Account. Add it from Calendar's settings, not Mail's: iOS leaves a CalDAV account added under
Mail inactive.
Invites mailed to the address (from Google, Outlook or iCloud) are filed into the calendar.
REQUEST and PUBLISH add or update the event, and CANCEL removes it. Nothing is sent back.
Route | What |
| Upcoming events, soonest first |
| One event as iCalendar |
| The iOS profile |
| CalDAV: |
Develop
npm install
cp .dev.vars.example .dev.vars # sets a local ADMIN_TOKEN
npm run db:migrate:local
npm run dev # http://localhost:8787Send a test email into the local Worker:
curl -X POST "localhost:8787/cdn-cgi/handler/email?from=sam@gmail.com&to=hello@example.com" \
--data-binary $'From: sam@gmail.com\r\nTo: hello@example.com\r\nSubject: Hi\r\n\r\nHello'npm test runs the tests inside the Workers runtime, and npm run typecheck checks the types. When
you add a migration, run it locally and with npm run db:migrate before deploying.
File | What |
| The routes: addresses, mail, admin |
| Taking mail from Email Routing |
| Every change to a mailbox |
| The MCP server, and pulling links and codes out of messages |
| CalDAV and invites |
| The D1 schema |
Troubleshooting
Bounce "550 5.1.1 Address does not exist": Cloudflare rejected it, so the catch-all didn't reach the Worker. Check the catch-all rule. If you just set it, wait a minute and send again.
Bounce "No such address here.": the Worker rejected it because no address has that name. Create it first.
Nothing arrives: check that
dig MX example.compoints atroute*.mx.cloudflare.net, and look for a bounce in the sender's inbox.npx wrangler tailshows the Worker's logs live."Please enable R2 through the Cloudflare Dashboard": accept R2's free plan in the dashboard, then create the bucket again.
Not yet
Sending mail. Addresses can only receive. Sending would go through Cloudflare Email Sending or a relay such as SES.
Webhooks, so an agent hears about new mail without polling.
IMAP and SMTP for desktop and phone mail apps.
Calendar scheduling (sending invites and replies) and expanding repeating events in
calendar-query.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Disposable inboxes for AI agents: create, wait for delivery, and extract email content or links.
Disposable email addresses for tests and agents: register, wait for mail, extract codes and links.
Disposable email inboxes for AI agents: create an address, wait for mail, read OTP codes and links.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
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
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create disposable email inboxes and automatically extract OTPs, magic links, and verification codes from incoming emails.MIT
- AlicenseNot gradedqualityBmaintenanceDisposable email for humans and AI agents. Enables AI agents to create mailboxes and receive verification emails through an MCP server.39MIT
- FlicenseNot gradedqualityBmaintenanceProvides temporary email inboxes for AI agents, enabling creation, inspection, and deletion of inboxes, retrieval of messages, and extraction of OTPs and verification links via MCP tools.6-