Pyfastmail MCP Server

An [MCP](https://modelcontextprotocol.io/) server that gives AI assistants full access to your Fastmail account — email, contacts, calendars, and

Local serverstdio

What is the Pyfastmail MCP Server?

An MCP server that gives AI assistants full access to your Fastmail account — email, contacts, calendars, and file storage.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
health_checkVerify connection and auth
mail_list_mailboxesList all mailboxes (folders/labels)
mail_create_mailboxCreate a mailbox
mail_rename_mailboxRename a mailbox
mail_delete_mailboxDelete a mailbox
mail_get_emailGet email by ID (with optional headers)
mail_get_recent_emailsGet recent emails
mail_search_emailsSearch by query
mail_search_snippetsHighlighted search result snippets
mail_get_email_threadGet full thread
mail_mark_email_readMark read/unread
mail_pin_emailPin/unpin (flag/star)
mail_move_emailMove to mailbox
mail_delete_emailMove to trash or permanently delete
mail_archive_emailArchive
mail_manage_email_labelsAdd/remove keywords
mail_export_emailDownload raw .eml file
mail_import_emailImport .eml into mail store
mail_parse_emailParse a blob as email without importing
mail_list_identitiesList send-as identities
mail_set_identityCreate/update/delete identities
mail_send_emailSend new email
mail_reply_to_emailReply to email
mail_forward_emailForward email
mail_list_masked_emailsList masked emails
mail_create_masked_emailCreate masked email
mail_update_masked_emailUpdate masked email state, domain, description, or URL
mail_download_attachmentDownload attachment
mail_upload_attachmentUpload blob for sending
contacts_list_address_booksList address books
contacts_listList contacts (query+get combo)
contacts_get_contactGet contact(s) by ID
contacts_query_contactsQuery contacts with filters and sorting
contacts_create_contactCreate contact
contacts_update_contactUpdate contact fields
contacts_delete_contactDelete contact(s)
calendar_list_calendarsList calendars
calendar_list_eventsList events
calendar_get_eventGet event details
calendar_create_eventCreate event
calendar_update_eventUpdate event
calendar_delete_eventDelete event
files_listList files/folders
files_getDownload file
files_uploadUpload file
files_create_folderCreate folder
files_moveMove/rename file
files_deleteDelete file/folder

How to install the Pyfastmail MCP Server

{
  "mcpServers": {
    "fastmail": {
      "command": "uvx",
      "args": [
        "pyfastmail-mcp"
      ],
      "env": {
        "FASTMAIL_API_TOKEN": "YOUR_FASTMAIL_API_TOKEN",
        "FASTMAIL_APP_PASSWORD": "YOUR_FASTMAIL_APP_PASSWORD",
        "FASTMAIL_EMAIL": "you@fastmail.com"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
FASTMAIL_API_TOKENDeclared in the maintainer’s client configuration.Check documentation
FASTMAIL_APP_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
FASTMAIL_EMAILDeclared in the maintainer’s client configuration.Check documentation

Frequently asked questions

An [MCP](https://modelcontextprotocol.io/) server that gives AI assistants full access to your Fastmail account — email, contacts, calendars, and file storage. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.