The same MCP server that powers mcpemails.com, on your own machine, against your own database. Your mailbox credentials never leave infrastructure you control. They are encrypted with a key only you hold and decrypted only in your container, at the moment a tool call needs them.
git clone https://github.com/Albretsen/MCPEmails
cd MCPEmails/self-host
make setup && make upFour small containers (Postgres, PostgREST, nginx, the Deno server). No account, no keys held by us, no telemetry. It runs supabase/functions/mcp-server unmodified: the exact code behind the hosted product.
Connect Fastmail, iCloud, Yahoo, Zoho, Yandex, or any IMAP/SMTP mailbox with an app password. Email is fetched live and never stored. Credentials are encrypted at rest with AES-256-GCM using a key you generate and keep. There is nothing to phone home to.
The full MCP server and all ten tools are in both. Self-hosting trades managed convenience for total control.
| Self-host | Hosted | |
|---|---|---|
| Price | Free, you run it | Free, $12, or $49 |
| The MCP server and all 10 tools | Yes | Yes |
| IMAP / SMTP inboxes (app password) | Yes | Yes |
| Email fetched live, never stored | Yes | Yes |
| Credentials encrypted at rest | Yes, your key | Yes |
| Gmail / Outlook one-click OAuth | Not included | Yes |
| Web dashboard (connect, keys, activity) | CLI instead | Yes |
| Scheduled-send dispatcher | Bring your own cron | Managed |
| Automatic updates, backups, uptime | You | Managed |
| Team workspaces, roles, SSO, audit log | Not included | Team plan |
| Support | Community and GitHub | Email and priority |
| Setup | About 5 minutes | About 2 minutes |
The concern is legitimate. Here is how the design bounds it, self-hosted or not.
You run the IMAP/SMTP configuration, updates, and security yourself, and support is community-only. Gmail and Outlook one-click OAuth and the web dashboard stay on the hosted product, because they need OAuth secrets and a session layer a single-operator install does not. If you would rather not run infrastructure, the hosted plan is two minutes and free to start.
Same server either way. Your call on who holds the keys.