Labsco
jmhron logo

FastMail

โ˜… 2

from jmhron

Interact with FastMail's email, calendar, and contacts via its JMAP API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

FastMail MCP Server

A Model Context Protocol (MCP) server for integrating with FastMail's JMAP API. This server provides tools for reading emails, searching, managing folders, and sending emails through FastMail.

๐Ÿš€ Features

  • ๐Ÿ“ Mailbox Management: List and find mailboxes/folders
  • ๐Ÿ“ง Email Reading: Get emails from specific folders with previews
  • ๐Ÿ” Advanced Search: Search by keyword, sender, subject, date range, attachments
  • ๐Ÿ“ค Email Sending: Send emails with CC/BCC support
  • ๐ŸŽฏ Folder Targeting: Search within specific folders
  • โšก Fast Performance: Uses FastMail's modern JMAP protocol

๐Ÿ”ง Integration with MCP Clients

Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "fastmail": {
      "command": "python",
      "args": ["/path/to/fastmail_mcp_server.py"]
    }
  }
}

Other MCP Clients

This server follows the standard MCP protocol and should work with any MCP-compatible client.

๐Ÿ— Project Structure

fastmail-mcp-server/
โ”œโ”€โ”€ fastmail_mcp_server.py    # Main server implementation
โ”œโ”€โ”€ requirements.txt          # Python dependencies
โ”œโ”€โ”€ pyproject.toml           # Package configuration
โ”œโ”€โ”€ README.md                # This file
โ””โ”€โ”€ examples/                # Example usage scripts
    โ””โ”€โ”€ test_server.py       # Test script

๐Ÿ”’ Security Notes

  • API Token Security: Never commit your API token to version control
  • Permissions: The API token has access to your entire FastMail account
  • Network: All communication uses HTTPS with FastMail's secure APIs

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“š Additional Resources