Fastmail MCP Server
This server provides a Fastmail MCP integration for reading/sending email and managing privacy-focused masked aliases.
Get account and session details
List emails by folder, unread status, or search
Fetch a single email with bounded plain-text body
Compose and send emails, or save drafts for human review
Mark emails as read/unread and flag/unflag
List mail folders and get unread counts
List, create, update (enable/disable/rename), and delete masked email aliases
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fastmail MCP Server Draft an email to jane@example.com with our meeting notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fastmail MCP Server
An MCP server that exposes Fastmail email via JMAP: email actions (list, get, send, draft) and masked-email alias management (create, update, delete). Drafts are written first by default unless you set FASTMAIL_DRAFT_BY_DEFAULT=false.
Requirements
Node.js 20+
A Fastmail account with an API token
Related MCP server: multi-mail-mcp
Install
git clone https://github.com/mattmaas/fastmail-mcp.git
cd fastmail-mcp
npm install
npm run build # compiles TypeScript to dist/
npm start # node dist/server.jsEnvironment Variables
Variable | Required | Description |
| yes | Fastmail API token |
| no | Account ID; auto-detected when omitted |
| no | Set to |
| no | Name shown in the optional signature |
| no | Optional HTML footer added to sent mail |
MCP Client Configuration
Add this server to your MCP client's config:
{
"mcpServers": {
"fastmail": {
"command": "node",
"args": ["<path>/fastmail-mcp/dist/server.js"],
"env": {
"FASTMAIL_API_TOKEN": "your-api-token"
}
}
}
}Tools
Tool | Description |
| Account information and session details |
| List inbox or folder messages (filter by folder, unread, search) |
| Get one message with a bounded plain-text body |
| Send or save-as-draft a message |
| List masked email aliases |
| Create a masked email alias |
| Enable, disable, or rename an alias |
| Delete an alias |
| Mark a message read/unread |
| Flag/unflag a message |
| List mail folders |
| Unread count for a folder |
Usage
Ask your agent, for example:
"Show my unread inbox" →
fastmail_list_emails(unreadOnly=true)"Draft a reply to the latest message from Alice" →
fastmail_list_emails(search="Alice")thenfastmail_send_email(saveDraft=true, ...)"Make a masked alias for this newsletter" →
fastmail_create_masked_email(...)
License
MIT
Available Tools
12 toolsfastmail_create_masked_emailB
Create a new masked email address for privacy protection.
Inputs: email (required), description (required), forDomain.
fastmail_delete_masked_emailB
Delete a masked email address.
Inputs: emailId (required).
fastmail_get_accountB
Get Fastmail account information and session details.
Inputs: no named parameters.
fastmail_get_emailA
Get detailed information about a specific email by its ID.
Inputs: emailId (required).
fastmail_get_unread_countA
Get unread email count for inbox or a specific folder.
Inputs: folder.
fastmail_list_emailsA
List emails from your inbox or other folders. Supports filtering by folder, read status, and search.
Inputs: limit, folder, search, unreadOnly.
fastmail_list_foldersA
List all email folders.
Inputs: no named parameters.
fastmail_list_masked_emailsB
List all masked email addresses (privacy-focused aliases).
Inputs: no named parameters.
fastmail_mark_email_flaggedA
Flag or unflag an email (star).
Inputs: emailId (required), flagged.
fastmail_mark_email_readA
Mark an email as read or unread.
Inputs: emailId (required), read.
fastmail_send_emailA
Compose and send (or save as draft) an email from the account's own Fastmail identity.
IMPORTANT — DEFAULT TO DRAFT: unless the context clearly implies the email should go out immediately (explicit instruction, routine automated alert, or an established-contact follow-up), save it as a draft so a human can review before it sends. Omit saveDraft to use the configured default (draft-first unless FASTMAIL_DRAFT_BY_DEFAULT=false).
Send as the account owner. Never add AI/agent signatures or self-identification; any machine-authorship marker is configured server-side via FASTMAIL_FOOTER_HTML.
Inputs: to (required), subject (required), cc, bcc, +4 more.
fastmail_update_masked_emailA
Update a masked email (enable, disable, or change description).
Inputs: state (required), emailId (required), description.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct resource and action: account info, email listing/detail/sending, masked email CRUD, read/flag state, folders, and unread count. There is no meaningful overlap that would cause an agent to select the wrong tool.
All tool names follow a consistent snake_case pattern with the fastmail_ prefix and verb_noun structure (get, list, send, create, update, delete, mark). The naming is predictable and makes the toolset easy to navigate.
With 12 tools, the server is well-scoped for its domain: email operations, masked email management, folders, and account info. Each tool has a clear purpose, and the count is neither bloated nor too thin.
Masked emails have full CRUD coverage and core email reading/sending/flagging is supported. However, notable gaps exist in the email lifecycle: there is no delete, move/archive, or folder mutation capability, so agents cannot perform common cleanup or organization workflows.
Maintenance
Related MCP Connectors
Private, EU-hosted email for AI agents over JMAP: read, search, reply, draft, organize, send.
Hosted email MCP for your own Gmail, Outlook.com, Microsoft 365, iCloud or IMAP inbox: read, search, draft, reply in thread, forward and file mail. It moves or flags up to 500 messages in one call, and a send leaves exactly one copy in Sent. A calendar is a separate connection, and connecting one adds diary and scheduling tools.
Email on your own domains: add a domain, write its DNS, create mailboxes, read and send mail.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables email management via IMAP and SMTP with multi-account support, safe sending with confirmation, and read-only modes.MIT
- AlicenseNot gradedqualityBmaintenanceEnables an MCP client to read, draft, organize, send, and delete email across multiple Gmail and Exchange Online/Outlook.com accounts, with per-account capability policies, recipient allowlists, confirmations, minimum OAuth scopes, and local audit logging.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to search, read, and manage a self-hosted mailbox over JMAP, including attachments with OCR, sending, drafts, and contacts.10198 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and manage email, contacts, and calendar data over JMAP/CalDAV/WebDAV, including searching, sending, threading, attachments, contacts, events, and mailbox operations.MIT