mailboxCAUTION
Self-hosted REST API and web UI for all your mailboxes (IMAP, JMAP, POP3, Gmail, Microsoft 365, Outlook.com), with a Python client and an MCP server so AI agents read, sort, draft and send mail, only within the rights, folders and send limits you grant. Change feed, signed webhooks, audit.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://github.com/benethos-hub/mailbox/actions/workflows/ci.yml) [](https://pypi.org/project/benethos-mailbox-service/) [](https://pypi.org/project/benethos-mailbox-mcp/) [](https://pypi.org/project/benethos-mailbox-client/) [](https://pypi.org/project/benethos-mailbox-common/) [](https://github.com/benethos-hub/mailbox/pkgs/container/benethos-mailbox-service) [](https://github.com/benethos-hub/mailbox/pkgs/container/benethos-mailbox-mcp) [](https://pypi.org/project/benethos-mailbox-service/) [](https://github.com/benethos-hub/mailbox/actions/workflows/ci.yml) [](https://github.com/benethos-hub/mailbox/blob/main/LICENSE)
One REST API for all your mailboxes, whichever provider they are at, a Python client for it and an MCP server on top. Scripts, tools and AI agents work with your mail through one door you control.
Status: beta, version 0.4.1. Usable with real
69fb543c145aOBSERVED · 2026-10-11Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add benethos-mailbox-mcp --env MAILBOX_SERVICE_TOKEN=${MAILBOX_SERVICE_TOKEN} -- uvx benethos-mailbox-mcp==0.4.1Trust audit
CAUTIONgrade C · trust 75/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | WARN |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (3 observation(s))
- Network
- declared (6 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- found
Findings (25)
MAILBOX_SERVICE_URL=http://127.0.0.1:8080
server.password = "changed-at-the-provider"
name: `<div style="display:none">...</span> text</div>` kept `text`
module.name: importlib.import_module(f"{versions.__name__}.{module.name}")module = importlib.import_module(f"{catalogue.__name__}.{info.name}")module = importlib.import_module(_module(package))
"containers/production/README.md": "../../",
"containers/test-mail-server/README.md": "../../",
("169.254.169.254", False),"address", ["169.254.169.254", "fe80::1", "224.0.0.1", "0.0.0.0"]
("169.254.169.254", False),("::ffff:169.254.169.254", False),code=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8080/health) || code=000`http://127.0.0.1:8080/ui` as `admin`, choose a password, and make a
- The configuration UI: `http://127.0.0.1:8080/ui`, sign in with a user
2. Open `http://127.0.0.1:8080/ui`, sign in as `admin` with the
png_size(base64.b64decode(pages[0].data))
assert base64.b64decode(image.data) == picture
return base64.b64decode(padded, _URL_SAFE if url else None, validate=True)
base64.b64decode(content)
self.sent.append(base64.b64decode(request.content))
curl -X POST http://127.0.0.1:8080/v1/users/<user id>/tokens \
{{ connect_form(discovery.email, {}, suffix="jmap", provider="jmap", password_label="Password or API token", folded=False, primary=False, hint="Choose below which one it is. Tried against the server f{% call card("Webhook", meta="Each post is signed with a secret, shown once after creating.") %}Gates applied: no_behavioural_pass.
69fb543c145afull audit observations/trust-audit/mcp-server/benethos-hub__mailbox.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-11 | 69fb543c145a | CAUTION | C | 75 | first audit |
Questions
What is the mailbox MCP server?
Self-hosted REST API and web UI for all your mailboxes (IMAP, JMAP, POP3, Gmail, Microsoft 365, Outlook.com), with a Python client and an MCP server so AI agents read, sort, draft and send mail, only within the rights, folders and send limits you grant. Change feed, signed webhooks, audit.
Is mailbox safe to connect to an agent?
With care. The audit graded it C (75/100) and found 25 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does mailbox need?
It reads MAILBOX_SERVICE_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does mailbox run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as benethos-mailbox-service.
How current is this page?
The grade is for one exact copy of the source (69fb543c145a), read on 2026-10-11. The repository is watched and re-audited when it changes.