
FastMail MCP Server
Enables AI-powered email management through FastMail's JMAP API with features like smart email analysis, automated organization, inbox zero automation, and intelligent reply generation. Supports advanced email operations, contact management, calendar integration, and hierarchical email organization systems.
README
FastMail MCP Server
Advanced FastMail email management server implementing the Model Context Protocol (MCP) with Docker support and Unraid compatibility.
✨ Features
🤖 AI-Powered Email Management
- Smart Email Analysis - Find genuine action items, filter auto-paid bills
- AI Reply Generation - Generate contextual replies matching your writing style
- Writing Style Learning - Analyze your communication patterns
- Intelligent Summarization - Comprehensive email summaries by category/timeframe
📧 Email Operations
- Advanced Search - Query emails with pagination support
- Automated Organization - Sort emails into hierarchical categories
- Inbox Zero - Aggressive cleanup to achieve true inbox zero
- Conversation Tracking - Thread-aware email handling
👥 Contacts & Calendar
- Smart Contact Management - Sync contacts based on email interactions
- Calendar Integration - Extract events from emails, conflict checking
- Relationship Detection - Identify work contacts vs personal
🏗️ Organization & Structure
- 13-Label System - Simple hierarchical email organization
- Migration Tools - Move from flat to hierarchical structures
- News Digest - Summarize news articles from WSJ and other sources
- Spam Intelligence - Multi-year threat detection (1990s-2024)
🚀 Quick Start
Docker Run
docker run -d \
--name fastmail-mcp-server \
--restart unless-stopped \
-e FASTMAIL_API_TOKEN=your_token \
-e FASTMAIL_EMAIL=your_email@fastmail.com \
gr3enarr0w/fastmail-mcp-server:latest
Docker Compose
version: '3.8'
services:
fastmail-mcp-server:
image: gr3enarr0w/fastmail-mcp-server:latest
container_name: fastmail-mcp-server
restart: unless-stopped
environment:
- FASTMAIL_API_TOKEN=your_token
- FASTMAIL_EMAIL=your_email@fastmail.com
Unraid Installation
- Go to Community Applications
- Search for "FastMail MCP"
- Click Install
- Configure your FastMail API credentials
🔧 Configuration
Required Environment Variables
FASTMAIL_API_TOKEN=your_fastmail_api_token
FASTMAIL_EMAIL=your_fastmail_email
Optional Environment Variables
FASTMAIL_SEND_AS=your_sending_email@domain.com
FASTMAIL_ALIAS_DOMAIN=yourdomain.com
FASTMAIL_JMAP_URL=https://jmap.fastmail.com/jmap/session
🧠 Claude Integration
Claude Code (CLI)
Add to ~/.mcp.json
:
{
"mcpServers": {
"fastmail-server": {
"command": "docker",
"args": ["exec", "-i", "fastmail-mcp-server", "node", "src/index.js"]
}
}
}
Claude Desktop
Add to Claude Desktop config:
{
"mcpServers": {
"fastmail-server": {
"command": "/path/to/mcp-bridge.sh",
"args": []
}
}
}
🛠️ Available MCP Tools
<details> <summary><strong>Email Management (6 tools)</strong></summary>
list_mailboxes
- List all mailboxes in the accountlist_emails
- List emails with pagination supportget_email
- Get full details of a specific emailsearch_emails
- Search emails using text queriessend_email
- Send new emails via FastMailreply_to_email
- Reply to specific emails by ID
</details>
<details> <summary><strong>AI-Powered Features (5 tools)</strong></summary>
smart_email_analysis
- Find actionable emails, filter completed tasksgenerate_ai_reply
- AI-powered contextual reply generationanalyze_writing_style
- Learn user communication patternsadaptive_user_learning
- Automatically adapt to user preferencesoptimize_ai_prompts
- Generate optimized prompts for different models
</details>
<details> <summary><strong>Organization & Automation (7 tools)</strong></summary>
organize_emails
- Auto-organize into appropriate foldersachieve_inbox_zero
- Aggressive inbox cleanupsetup_simple_labels
- Create 13-label hierarchical structurecategorize_with_simple_labels
- Auto-categorize with labelsmigrate_to_hierarchy
- Migrate from flat to hierarchical structurereview_archived_emails
- Review archived items for missed repliesanalyze_hierarchical_structure
- Analyze and suggest improvements
</details>
<details> <summary><strong>Contacts & Calendar (3 tools)</strong></summary>
manage_contacts
- Intelligent contact managementlist_contacts
- List existing FastMail contactsmanage_calendar
- Calendar event management and extraction
</details>
<details> <summary><strong>Advanced Features (3 tools)</strong></summary>
comprehensive_email_summary
- Generate detailed email summariessummarize_news
- News digest from email sourcesuniversal_setup_wizard
- Automated onboarding wizard
</details>
📁 Project Structure
fastmail-mcp-server/
├── src/ # Core MCP server code
│ ├── index.js # Main MCP server entry point
│ ├── fastmail-client.js # FastMail JMAP API client
│ └── *.js # Feature implementations
├── scripts/ # Email organization scripts
├── analysis/ # Email analysis utilities
├── Dockerfile # Container definition
├── docker-compose.yml # Docker Compose config
├── unraid-template.xml # Unraid Community Apps template
└── docs/ # Documentation
🔒 Security Features
- Non-root execution - Container runs as unprivileged user
- Read-only filesystem - Prevents tampering
- Resource limits - CPU and memory constraints
- Network isolation - No exposed ports (stdio transport)
- Credential isolation - API tokens via environment variables
📖 Documentation
- Docker Setup Guide - Complete Docker deployment instructions
- Claude Integration Guide - Setup for Claude Code & Desktop
- Unraid Installation - Community Applications template
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
📄 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 Model Context Protocol specification
- Unraid Community for the Community Applications platform
<p align="center"> <strong>🤖 Generated with <a href="https://claude.ai/code">Claude Code</a></strong> </p>
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。