home / mcp / fastmail mcp server
FastMail MCP Server for advanced email management with AI-powered features, Docker support, and Unraid compatibility
Configuration
View docs{
"mcpServers": {
"gr3enarr0w-fastmail-mcp-server": {
"command": "docker",
"args": [
"exec",
"-i",
"fastmail-mcp-server",
"node",
"src/index.js"
],
"env": {
"FASTMAIL_EMAIL": "[email protected]",
"FASTMAIL_API_TOKEN": "YOUR_TOKEN"
}
}
}
}You can manage FastMail with automated AI-powered email organization and powerful MCP (Model Context Protocol) integration. This server lets you connect an MCP client to control and query your FastMail account, organize messages, summarize content, and automate workflowsβall through a consistent MCP interface.
Connect to the MCP server from your MCP client to run actions like listing mailboxes, searching emails, and generating AI-assisted replies. You can use the Claude integration flow to bridge your client to the server, enabling you to perform tasks from a conversational or scripted interface. The server exposes a range of tools for email management, AI-powered analysis, and calendar/contact integration, all driven by MCP commands.
# Docker Run (standalone container)
docker run -d \
--name fastmail-mcp-server \
--restart unless-stopped \
-e FASTMAIL_API_TOKEN=your_token \
-e [email protected] \
gr3enarr0w/fastmail-mcp-server:latest# Docker Compose (recommended for multi-service environments)
verson: '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
- [email protected]# Unraid installation steps (manual UI flow)
# 1. Go to Community Applications
# 2. Search for "FastMail MCP" and install
# 3. Provide your FastMail API credentials in the configuration UITwo practical ways to connect programmatically are through a local stdio bridge and through a remote MCP bridge. The following configuration snippet shows how to register a local stdio MCP server in your MCP client profile. You can adapt it to your clientβs configuration flow.
Use a local stdio bridge to expose the MCP server to Claude Code or Claude Desktop. The exact command and arguments are shown here for your reference.
{
"mcpServers": {
"fastmail-server": {
"command": "docker",
"args": ["exec", "-i", "fastmail-mcp-server", "node", "src/index.js"]
}
}
}The container runs with non-root privileges and a read-only filesystem where possible, with explicit resource limits and network isolation. Credentials such as API tokens are passed via environment variables to isolate secrets from code.
List all mailboxes in the account
List emails with pagination support
Get full details of a specific email
Search emails using text queries
Send new emails via FastMail
Reply to specific emails by ID
Find actionable items and filter tasks from emails
AI-powered contextual reply generation
Learn user communication patterns
Automatically adapt to user preferences
Generate optimized prompts for different models
Auto-organize emails into hierarchical folders
Aggressive inbox cleanup to reach inbox zero
Create a 13-label hierarchical structure for organization
Auto-categorize emails with labels
Migrate from flat to hierarchical structures
Review archived items for missed replies
Analyze and suggest improvements to structure
Intelligent contact management based on email interactions
List existing FastMail contacts
Calendar event management and extraction
Generate detailed email summaries
News digest from email sources
Automated onboarding wizard