Fastmail MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Fastmail MCP Server (Unofficial)
Unofficial Model Context Protocol server for Fastmail integration. Exposes a single execute tool that acts as a validated JMAP proxy — the LLM writes raw JMAP method calls, and the server handles validation, authentication, and response cleaning.
Setup Instructions
1. Get Your Fastmail API Token
Log in to Fastmail
Go to Settings → Privacy & Security → API tokens
Click New API token
Give it a name (e.g., "Claude MCP")
Select the required scopes:
Mail(read/write as needed)Copy the generated token
2. Configure Claude Code
Add the following to your Claude Code MCP settings (~/.claude/claude_desktop_config.json or project .mcp.json):
{
"mcpServers": {
"fastmail": {
"type": "url",
"url": "https://fastmail-mcp.i11v.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_FASTMAIL_API_TOKEN"
}
}
}
}Security Note: Keep your API token secure. Never commit it to version control. Consider using environment variables or a secrets manager.
Related MCP server: pyfastmail-mcp
Available Tools
execute
Execute JMAP method calls against Fastmail. Accepts an array of JMAP method call triples [methodName, args, callId].
Input:
{
"methodCalls": [
["Email/query", {
"filter": { "inMailbox": "INBOX_ID" },
"sort": [{ "property": "receivedAt", "isAscending": false }],
"limit": 10
}, "call-0"],
["Email/get", {
"ids": { "resultOf": "call-0", "name": "Email/query", "path": "/ids" },
"properties": ["from", "subject", "receivedAt", "preview"]
}, "call-1"]
]
}What the server does:
Validates structure, method names, and hygiene rules
Injects
accountIdautomaticallySends to Fastmail's JMAP API
Strips protocol noise (
state,queryState,canCalculateChanges, etc.)Returns cleaned
methodResponses
Allowed JMAP methods:
Core/echoMailbox/get,Mailbox/query,Mailbox/queryChanges,Mailbox/setEmail/get,Email/query,Email/queryChanges,Email/setThread/getSearchSnippet/getIdentity/getEmailSubmission/get,EmailSubmission/query,EmailSubmission/set
Validation rules:
Every
/getcall (exceptMailbox/get,Identity/get) must include apropertiesarrayEvery
/querycall must include alimitids: nullon/getcalls is rejected (use/queryfirst)Destructive operations (
destroy,EmailSubmission/set) return an error asking for user confirmation
compose_email (MCP App)
Open an interactive email compose form. Optionally pre-fill fields (to, cc, bcc, subject, body). On hosts that support MCP Apps, renders an inline compose UI with send and save-draft buttons. Falls back to structured text on other hosts.
Input:
{
"to": "recipient@example.com",
"subject": "Hello",
"body": "Message text..."
}read_email (MCP App)
Display the full content of an email in a rich reader view. Fetches the email by JMAP ID and renders headers, sanitized body, and action buttons (reply, reply all, forward). Falls back to structured text on hosts without MCP Apps support.
Input:
{
"emailId": "M1234abcd"
}Available Resources
Resource-aware MCP clients automatically receive the Fastmail skill — a set of
markdown files teaching the LLM how to drive the execute JMAP tool. Clients
that support resource priority will load SKILL.md first and follow its links
lazily.
All resources use the file:///fastmail-skill/<path> URI scheme and
text/markdown mime type. Tagged audience: ["assistant"].
URI | Priority | Purpose |
| 1.0 | Entry point — JMAP methods, rules, UI tools |
| 0.5 | Method-call triples, back-references, callId |
| 0.5 | JMAP error handling |
| 0.5 | Email/query filters and sort |
| 0.5 | Email/get body fetching |
| 0.5 | Drafts, flags, move, delete |
| 0.5 | SearchSnippet/get highlights |
| 0.5 | Mailbox CRUD |
| 0.5 | Show unread inbox |
| 0.5 | Move / archive |
| 0.5 | Reply pattern |
| 0.5 | EmailSubmission/set workflow |
| 0.5 | Thread/get |
API Endpoints
POST /mcp- MCP protocol endpointGET /health- Health check endpoint
Environment Variables
Copy .env.example to .env.development.local and fill in the values:
cp .env.example .env.development.localVariable | Required | Description |
| No | Honeycomb ingest key for OpenTelemetry tracing |
| No | Honeycomb API server (default: |
Development
pnpm install # Install dependencies
pnpm dev # Run local dev server (wrangler)
pnpm check # Run all checks (typecheck + lint + fmt + test)
pnpm run deploy:prod # Deploy to CloudflareThis is an unofficial community project and is not affiliated with Fastmail.
Source code and issues: GitHub
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with FastMail's JMAP API to manage mailboxes, search for emails, and send messages. It enables users to interact with their FastMail account for tasks like reading email content and managing folders through natural language.2MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides AI assistants with full access to Fastmail accounts for managing email, contacts, calendars, and file storage. It implements 42 tools across JMAP, CardDAV, CalDAV, and WebDAV protocols to enable comprehensive account interaction through natural language.48MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for Fastmail that provides access to email, contacts, and calendars via the JMAP protocol. It enables users to search, send, and bulk-manage emails while also interacting with calendar events and address books through natural language.76 npmMIT
- FlicenseNot gradedqualityAmaintenanceAn unofficial MCP server that lets AI assistants work with a Fastmail account through its JMAP, CalDAV, and WebDAV APIs, covering mailbox and message listing, searching, sending, replying, drafting, attachments, labels, contacts, and calendar events. It also supports security-conscious metadata-only queries and can be installed as a Claude Desktop extension.-