Fastmail MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "FASTMAIL_API_TOKEN=${FASTMAIL_API_TOKEN}" fastmail-mcp-server -- npx -y @alexdiazdecerio/fastmail-mcp-server
Required:FASTMAIL_API_TOKEN
README.md

Enables AI models to interact with Fastmail accounts via the JMAP API

๐Ÿงช Development

Available Scripts

npm run build      # Compile TypeScript
npm run watch      # Watch mode for development 
npm run dev        # Build and run server
npm run inspector  # Debug with MCP inspector

Testing

npm test           # Run test suite
npm run lint       # Code quality checks
npm audit          # Security vulnerability scan

๐Ÿ›ก๏ธ Security

  • Token-based Authentication - No password storage
  • Granular Permissions - Minimum required access scope
  • Environment Variables - Secure credential management
  • Audit Logging - Track all API interactions

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ˆ Roadmap

  • Email Templates - Reusable email templates
  • Advanced Analytics - Email usage insights and reports โœ… COMPLETED v1.1.0
  • Multi-Account Support - Manage multiple Fastmail accounts
  • Webhook Support - Real-time email notifications
  • Plugin System - Extensible architecture for custom features
  • Threading Reliability - Fix intermittent reply functionality issues

๐Ÿ“ž Support

  • Documentation - Comprehensive guides and API reference
  • Issues - Report bugs or request features on GitHub
  • Discussions - Community support and feature discussions

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Fastmail - For their excellent JMAP API
  • Anthropic - For the MCP protocol and Claude integration
  • Community - For feedback, contributions, and support

โญ If this project helped you, please give it a star on GitHub! โญ

โšก Get Started โ€ข ๐Ÿ“š Documentation โ€ข ๐Ÿ› Report Bug โ€ข ๐Ÿ’ก Request Feature

Tools (2)

manage_emailsPerform operations on emails within the Fastmail account
get_usage_analyticsRetrieve email usage insights and reports

Environment Variables

FASTMAIL_API_TOKENrequiredSecure token for JMAP API authentication

Configuration

claude_desktop_config.json
{"mcpServers": {"fastmail": {"command": "npx", "args": ["-y", "@alexdiazdecerio/fastmail-mcp-server"], "env": {"FASTMAIL_API_TOKEN": "your_token_here"}}}}

Try it

โ†’List the most recent emails in my inbox.
โ†’Summarize the email usage analytics for the last month.
โ†’Find emails from a specific sender and move them to the archive folder.
โ†’Check my current email storage usage statistics.

Frequently Asked Questions

What are the key features of Fastmail MCP Server?

Secure token-based authentication. JMAP API integration for email management. Access to email usage analytics and reports. Granular permission control. Audit logging for all API interactions.

What can I use Fastmail MCP Server for?

Automating email organization and archiving tasks. Generating reports on email usage and storage trends. Querying specific email threads using AI-driven search. Managing email workflows directly through Claude.

How do I install Fastmail MCP Server?

Install Fastmail MCP Server by running: npx -y @alexdiazdecerio/fastmail-mcp-server

What MCP clients work with Fastmail MCP Server?

Fastmail MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Fastmail MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare