MCPEmails connects an AI agent to your inbox, so it has to earn real trust. This is the honest version: what the service touches, what it keeps, what it can never do, and how you can verify all of it yourself.
If you read nothing else on this page:
The gap between access and storage is the whole design. In the moment, the agent can read a lot, live. Almost none of it is ever written down.
| Data | Accessed | Stored |
|---|---|---|
| Email bodies, subjects, attachments | Live, only when your agent makes a read or search call | Never written to disk, cache, or logs |
| Contacts / address book | Scanned live from recent mail when asked | Never. There is no stored address book |
| OAuth token or app password | Decrypted on our servers only for the request that needs it | Yes, encrypted at rest with AES-256-GCM; key held separately |
| API keys you create | Compared as a hash on every request | Only a SHA-256 hash; the raw key is shown once and is never recoverable |
| Messages you schedule for later | Held until the send time, then dispatched | Yes, encrypted at rest until sent; the content is cleared 7 days after sending |
| Sends held for your approval | Held until a reviewer approves or rejects it, or it expires after 24 hours | Yes, encrypted at rest. The content is cleared 7 days after the decision; the approval record (recipients and subject, encrypted) is kept 90 days |
| Follow-ups and snoozes | Checked in the background until the reminder is done | Subject, sender and recipients, encrypted, until the reminder is done. Never the body |
| Automation run log | Written when an automation acts on a message | Sender and the first 120 characters of the subject, for 90 days. Never the body |
| Tool-call activity (metadata) | Recorded for your own audit log | Tool name, inbox, timestamp, and status only. No email content |
The deliberate exceptions are features that have to remember part of a message: a scheduled or held send, a follow-up or snooze, and the automation run log. Each keeps only what it needs, for as long as the table above says.
"A random person vibe-coded this" is a fair worry for any hosted tool that touches your email. The right answer is not a bigger promise. It is removing the need to take me at my word.
github.com/Albretsen/MCPEmails
And if a native connector already covers your provider and does what you need, use it. This exists for the providers and multi-inbox combinations they don't cover.
MCPEmails is open source under AGPL-3.0, and the hosted service runs the exact same MCP server you can self-host. That means "email is fetched live and never stored" is something you can verify by running it and watching the network, not something you have to take on faith.
Self-hosting is IMAP/SMTP-first: connect any mailbox with an app password, and your credentials are encrypted under a key only you hold. One command brings the whole stack up on your own machine.
The honest threat here is not me reading your mail. It is a hostile email trying to hijack the agent: instructions hidden inside a message that try to make your AI forward, delete, or leak something. This is a real, unsolved problem for every email agent. I won't claim it's solved. I can show how it's contained:
confirm: true. Whether a client presents a user confirmation is controlled by that client's policy.Not solved. Contained: irreversible actions are gated, and API-key scopes and inbox restrictions can reduce the blast radius.
Your inbox tokens and passwords are the most sensitive thing we hold, so they get the strongest protection we can give them:
Gmail access uses Google's restricted scopes, the tier Google scrutinises most closely.
MCPEmails' use and transfer of information received from Google APIs to any other app adheres to the Google API Services User Data Policy, including the Limited Use requirements.
Outlook and Microsoft 365 access goes through Microsoft Graph, from an app whose publisher is verified by Microsoft, and asks only for a named set of permissions shown on Microsoft's consent screen: Mail.ReadWrite, Mail.Send, offline_access, openid, profile and email. For Fastmail, iCloud, Yahoo, Zoho, Yandex, and other IMAP providers, you connect with a provider-issued app password that you can revoke at any time, with no broad OAuth scopes for us to over-request.
We keep the list of companies that touch any data short. Each processes data only on our instructions, under a data processing agreement or the provider's standard data processing terms, and our Data Processing Agreement is available to customers who need one. Note what is absent: no AI provider is on this list. MCPEmails does not send your email to any model of its own. Your agent does that, under your control and its provider's data policy.
| Provider | Purpose | Location |
|---|---|---|
| Supabase | Database, auth, edge functions | Data stored in the EU (Stockholm, Sweden); mail processed live in the US (East) |
| Vercel | Website, dashboard and MCP endpoint hosting | Global CDN; servers in the US (East) and the EU (Stockholm) |
| Hetzner | Mail relay for the few providers that refuse connections from cloud addresses (a TLS tunnel: it cannot read mail or passwords) | Germany (EU) |
| Resend | Account, billing and support email, and marketing email if you opted in (never mailbox content) | EU (Ireland); Resend Inc. is a US company |
| Migadu | Our own support and noreply mailboxes (sign-up and password emails, support messages) | Switzerland / EU |
| Stripe | Payment processing (billing only, no email data) | US; PCI-DSS certified |
If you find a security issue, please report it. I would much rather hear it from you than read about it later.
Safe harbour. If you make a good-faith effort to follow this policy, do not access or modify other users' data, and give me a reasonable chance to fix the issue before disclosing it, I will not pursue or support legal action against you for your research.
One person: me. I'm Asgeir Albretsen, and I run MCPEmails through Albretsen AS, a Norwegian private limited company (aksjeselskap) that I own, organisation number 938 702 373, based in Bergen, Norway. The commits are mine too, under github.com/Albretsen, so the name on this page and the name on the code are the same one. There is more detail on the about page, and the full legal identification is in the terms.
Everything resting on one person is a real risk, and the answer is not a promise that I will always be here. MCPEmails is public under AGPL-3.0 and the hosted service runs that same code, so if I stop, or you simply stop trusting me, you can clone the repository and run it on your own infrastructure with your own keys. The self-hosting guide is the whole procedure. I would rather be a named person you can reach and can leave than an anonymous vendor you can only trust.
Support and security mail does not go through a queue. It comes to me, and I answer every message myself.
Ask me anything. I'm Asgeir Albretsen, and I answer every message myself.