fastmail-mcp
fastmail-mcp
An MCP (Model Context Protocol) server for Fastmail that provides access to email, contacts, and calendars via the JMAP protocol.
Tools
Tool | Description |
| List all mailboxes in the account |
| List emails from a mailbox |
| Get a specific email by ID |
| Get the most recent emails from inbox |
| Search emails by subject or content |
| Advanced email search with multiple criteria (sender, recipient, date range, attachments, etc.) |
| Send an email |
| Reply to an email with proper threading headers |
| Save an email as a draft with optional threading support |
| Create an email draft without sending |
| Mark an email as read or unread |
| Delete an email (move to trash) |
| Move an email to a different mailbox |
| Add labels (mailboxes) to an email |
| Remove labels (mailboxes) from an email |
| List attachments for an email |
| Download an email attachment (save to disk or get URL) |
| Get all emails in a conversation thread |
| Get mailbox statistics (unread count, total, etc.) |
| Get overall account summary with statistics |
Bulk Operations
Tool | Description |
| Mark multiple emails as read/unread |
| Move multiple emails to a mailbox |
| Delete multiple emails (move to trash) |
| Add labels to multiple emails |
| Remove labels from multiple emails |
Contacts
Tool | Description |
| List contacts from the address book |
| Get a specific contact by ID |
| Search contacts by name or email |
Calendars
Tool | Description |
| List all calendars |
| List events from a calendar |
| Get a specific calendar event by ID |
| Create a new calendar event |
Utility
Tool | Description |
| List sending identities (email addresses) |
| Check which functions are available based on account permissions |
| Test bulk operations with a dry-run mode |
Environment Variables
Variable | Required | Description |
| Yes | Fastmail API token (create one here) |
Setup
npm ciUsage
Stdio mode (for Claude Desktop, Claude Code, etc.)
node dist/index.jsHTTP mode (with mcp-proxy)
npx mcp-proxy --port 8003 -- node dist/index.jsClaude Desktop configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"fastmail": {
"command": "node",
"args": ["/path/to/fastmail-mcp/dist/index.js"],
"env": {
"FASTMAIL_API_TOKEN": "your-api-token"
}
}
}
}License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GraysonCAdams/fastmail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server