delete_email
Permanently delete an email
Work a Fastmail account from the agent — list, read, search, send, file and delete — and pull volume, top-sender and hour-by-hour activity figures over a window you choose.
LABSCO SUMMARY
The reporting tools all work over a trailing number of days rather than an arbitrary date range, and generate_email_analytics will read message bodies when includeContent is set, up to the maxEmails ceiling it is given. On the mailbox side the destructive call is unambiguous: delete_email removes a message permanently, where move_email is the reversible option. Reading and filing address messages and folders by id, so list_mailboxes and list_emails come first in most sequences.
A Fastmail server covering the mailbox itself and a reporting layer over it, from a single account's credentials.
A Fastmail account, with FASTMAIL_EMAIL (your Fastmail address) and FASTMAIL_API_TOKEN in the environment.
One command plus a key — npx -y @alexdiazdecerio/fastmail-mcp-server, then supply credentials
USE CASES
List what is unread, mark off what needs no reply, and file the rest into the folder it belongs in.
Search on the phrase you do remember, open the message in full, and reply on the same thread with inReplyTo set.
Rank senders over a trailing window with counts and percentages, and put the ranking next to the sent and received totals for the same period.
Break activity down by hour, day and month, then take the written version of the same window when it has to be shared with someone.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
delete_emailPermanently delete an email
generate_email_analyticsGenerate comprehensive email analytics and insights for a specified period
generate_email_reportGenerate a comprehensive email analytics report with insights and recommendations
get_activity_patternsGet email activity patterns by hour, day, and month
get_emailGet full details of a specific email including body content
get_email_volume_statsGet email volume statistics (sent/received counts) for a period
get_top_sendersGet top email senders analysis with counts and percentages
list_emailsList emails from your Fastmail account with optional filters
list_mailboxesList all email folders/mailboxes in your Fastmail account
mark_email_readMark an email as read or unread
move_emailMove an email to a different mailbox/folder
search_emailsSearch for emails containing specific text
send_emailSend a new email
BEFORE YOU INSTALL
13 tools when we connected.
CONTEXT COST
Rated by the size of the 13 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"fastmail-mcp-server": {
"command": "npx",
"args": [
"-y",
"@alexdiazdecerio/fastmail-mcp-server"
]
}
}
}The server needs FASTMAIL_EMAIL (your Fastmail address) and FASTMAIL_API_TOKEN in its environment. In the client configuration, add both to an "env" object inside the server entry; to run the command directly, set them in your shell first. The token is an API token, not an app password: create one at https://www.fastmail.com/settings/security/tokens with Mail and Submission access (Masked Email optional), and leave Read-only access unticked.
npx -y @alexdiazdecerio/fastmail-mcp-server