App password ยท about 3 min

Connect Fastmail to your AI agents

Fastmail runs its own MCP server for Fastmail alone. Emailgents puts Fastmail next to every other inbox you own, behind one connection and one access log.

Covers
  • @fastmail.com, @fastmail.fm and the other Fastmail domains
  • Custom domains hosted on Fastmail
  • Aliases and masked addresses, which land in the same account
host
imap.fastmail.com
port
993 (TLS)
auth
app password
create at
app.fastmail.com/settings/security/devicekeys

Fastmail is one of the few providers that ships an official MCP server, and it is a good one if Fastmail is the only mailbox you use. Most people also have a Gmail, a work account or an old iCloud address, and each of those needs its own connector in every agent.

Emailgents connects Fastmail over IMAP with an app password and exposes it together with all your other mailboxes through one URL. One sign-in per agent, one search across everything, one place to see what agents read.

How to connect Fastmail

Nothing is stored until the connection test passes.

  1. 01
    Create a Fastmail app passwordIn Fastmail open Settings, Privacy and Security, Integrations, and create a new app password with access to Mail (IMAP). Copy it.
  2. 02
    Add Fastmail in EmailgentsIn Mailboxes choose Fastmail, enter your Fastmail address and paste the app password. The connection is tested at once.
  3. 03
    Let the index buildThe last 90 days are indexed and kept fresh every few minutes.
  4. 04
    Add the connector to your agentPaste https://emailgents.com/mcp into your agent and sign in once.
MCP server URL for any agent
https://emailgents.com/mcp

What agents get

  • Every Fastmail folder, including folders created by rules and the ones used by aliases.
  • Incremental sync with CONDSTORE where Fastmail offers it, so flag changes arrive quickly.
  • Mail reading, flags and the shared access log; archive, recoverable Trash and keyword edits depend on the server. Ordinary app-password sending is unsupported.

Limits and prerequisites

  • The app password must be created with IMAP access; a password limited to CalDAV or CardDAV will not connect.
  • JMAP-only features such as Fastmail's masked email management are not exposed over IMAP; mail sent to masked addresses is still searchable.

Use it from your agent

Once Fastmail is connected, add Emailgents to the agent you use.

Fastmail questions

Should I use Fastmail's own MCP server or Emailgents?

If Fastmail is your only mailbox and you want Fastmail-specific features, Fastmail's server is a fine choice. If you also have Gmail, Outlook, iCloud or any other account, Emailgents gives your agents all of them through one connection with one access log.

Is it safe to give an AI agent access to my Fastmail mail?

Mail tools search, read, retrieve attachments and change flags. Archive, recoverable Trash and provider labels depend on mailbox capabilities and per-mailbox agent permissions. Ordinary plain-text sending and replying require native Google or Microsoft OAuth with Send permission; app-password and legacy connections are unsupported. Calendar creation and RSVP remain provider-dependent. Credentials are encrypted and agent calls are logged; treat email content as untrusted and review write permissions.

How do I revoke access?

Remove the mailbox in Emailgents or delete the app password in Fastmail's Integrations settings.

What exactly does Emailgents store from Fastmail?

A structured index of recent mail: sender, recipients, subject, date, folder, flags, thread references, attachment names and a short cleaned snippet. The default window is 90 days per mailbox and you can change it. Bodies are fetched from Fastmail on open and during bounded background sync. Encrypted body caching and body indexing have separate per-mailbox controls; searchable body words are not an encrypted body copy. Calendar details extracted from mail are stored encrypted. Cache eviction does not delete provider mail or indexed words.

Which agents can read my Fastmail inbox through Emailgents?

Any MCP client: Claude, ChatGPT, Claude Code, Cursor, Codex, Gemini CLI, Windsurf, VS Code and any other MCP client, or your own scripts over REST. You add one URL, https://emailgents.com/mcp, sign in once, and every mailbox you have connected appears to that agent.

Other providers

Your agents can read mail in five minutes.

One account, as many mailboxes as you need, every agent you run.