
Mailbox
io.github.psyb0tPublished by GitHub account psyb0tv0.8.0Updated Oct 30, 2026
Scoped IMAP/SMTP access over HTTP and MCP: read, organize, draft, reply and send mail.
The publisher's own server: mailbox.bot
Overview
Self-hosted IMAP/SMTP mail gateway exposing an MCP endpoint so an assistant can read, organize, draft, reply and send mail under scoped tokens.
- What you can do
- Read mail across accounts: unified inbox, structured search, raw source, headers, attachments and threads
- Organize mailboxes: seen flags, labels, move, mailbox creation and moving messages to Trash
- Draft and send: configured identities, signatures, replies, IMAP drafts and Sent copies
- Analyze messages: SPF/DKIM/DMARC verdicts, header mismatches, hidden text and deceptive links, with sanitized HTML on request
- Operate: per-token scopes and mailbox allowlists, audit records, shared send limits and signed webhooks
- When to use it
- Useful when you want an assistant to work with real mailboxes on your own IMAP/SMTP accounts while keeping sending and deleting behind explicit token scopes, dry-run and rate limits. Suited to self-hosted setups where mail stays on the mail server and only operational state is stored locally.
- Requirements
- Runs as a local Docker container (image psyb0t/mailbox) exposing HTTP and an MCP endpoint on the same port. Needs a config.yaml with your IMAP/SMTP accounts and identities, plus a .env holding account passwords and bearer tokens; the README suggests restricting both files to chmod 600. A named volume at /var/lib/mailboxd keeps state. No credentials are declared in the manifest itself.
Installation
In SourceWeft
- Open Mailbox in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mailbox
[CI] [version] [license] [Docker Pulls]
Read, organize, draft and send mail across multiple IMAP/SMTP accounts through one HTTP API and an MCP endpoint at /mcp, on the same port. Each bearer token controls which operations and mailboxes a client can access.
For agent access, configure tokens with explicit permissions:
- Scoped tokens. A token that holds
read,draftandorganizecannot send or delete, and does not even see those tools. - Deletion defaults to Trash. Deleting moves a message to Trash. Permanent erasure needs the
deletescope and only works from the Trash folder. The service never issues a folder-wideEXPUNGE. - Drafts in two steps. An agent can prepare a reply; a human (or a token with
send) sends it. - Send guard. Hourly rate limit, dry-run mode, and a sender address authorized by your configured exact identities or opt-in domain patterns.
- Message analysis. Inspect SPF/DKIM/DMARC verdicts, header mismatches, hidden text and deceptive links. Verdicts are trusted only when the receiving server matches your configuration. Request sanitized HTML when needed.
- Audit log. Every write, and every refused write, is recorded (never message bodies).
Mail bodies and drafts stay on IMAP. A shared SQLite database stores audit records, send counters, checkpoints, draft send claims and webhook delivery metadata. API requests close their mail-server connections after use; the watcher keeps an IMAP connection open for notifications.
The service uses Python's imaplib and smtplib, FastAPI, the official MCP Python SDK and nh3 for HTML sanitizing. Dependency updates enforce a seven-day release-age cutoff through uv's exclude-newer setting.
Contents
- Quick start
- Configuration
- HTTP API, MCP, safety and webhooks
- Agent integrations
- Architecture and development
- Operations, backups and migration
Quick start
- Copy
config.example.yamltoconfig.yamland.env.exampleto.env. Configure your accounts and replace every placeholder in.envwith its password or a fresh token fromopenssl rand -hex 32. Restrict both files withchmod 600. - Start the container. The named volume preserves operational state across restarts:
- Check health and list mail:
Docker Compose
The checked-in docker-compose.yml publishes on 127.0.0.1:${PORT:-8000}, mounts ./config.yaml (or $MAILBOXD_CONFIG) read-only and creates the mailboxd-state volume:
The optional webhook watcher is a second service in the same file, off by default: docker compose --profile watch up -d.
Capabilities
Mount /var/lib/mailboxd for persistent operational state. HTTP workers and the optional watcher share one SQLite database on a local filesystem. Read the migration notes before replacing a stateless deployment.
Development
All project tools run inside the development image. Tests use socket-level IMAP/SMTP fixtures, a local HTTP receiver, real SQLite files and a production-container smoke test. See development for details.
License
WTFPL. See LICENSE and third-party components.
Source: README.md at commit 33a2eb1
Tools
0Version history
8- v0.8.0LatestOct 29, 2026
- v0.7.0Oct 23, 2026
- v0.6.2Oct 21, 2026
- v0.6.1Oct 19, 2026
- v0.6.0Oct 19, 2026
- v0.5.1Oct 13, 2026
- v0.4.16Oct 10, 2026
- v0.4.15Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Mailbox integrations

mailbox.bot
bot.mailboxOfficial publisher
Hosted mailbox.bot server that lets an assistant print and mail physical letters, postcards and batches, and read scanned inbound mail at a US PMB address.

PO6 Mailbox
com.po6Official publisher
PO6 Mailbox gives AI agents secure access to email through private aliases with dedicated mailbox storage, via a remote OAuth-protected endpoint.

a2a-mailbox
Published by GitHub account RegretSSS
A local file-based mailbox that lets terminal coding agents such as Claude Code, Codex, Pi and ZCode send each other messages and wake each other up.

SuperMailbox
Published by GitHub account hardtab
SuperMailbox is a remote MCP server that lets an assistant search connected email, read and manage messages, draft and send mail, and manage rules for new mail.

agent-mailbox — Mailbox and Wake System for AI Agent Teams
Published by GitHub account polaris-smart
A local mailbox and wake system that lets multiple AI agent sessions share a project through MCP: assign tasks, accept them, read pinned documents and submit,