Fastmail MCP Server

Unofficial Model Context Protocol server for Fastmail integration

Setup Instructions

1. Get Your Fastmail API Token

  1. Log in to Fastmail
  2. Go to SettingsPrivacy & SecurityAPI tokens
  3. Click New API token
  4. Give it a name (e.g., "Claude MCP")
  5. Select the required scopes: Mail (read/write as needed)
  6. 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.

Available Tools

execute
Execute JMAP method calls against Fastmail. Accepts raw JMAP method call triples — the server validates, injects accountId, and returns cleaned responses. Supports batching and resultOf back-references.
compose_email (MCP App)
Open an interactive email compose form. Pre-fill fields like to, cc, bcc, subject, and body. On supported hosts, renders an inline compose UI with send and save-draft buttons.
read_email (MCP App)
Display the full content of an email in a rich reader view. Fetches the email by ID and renders headers, sanitized body, and action buttons (reply, reply all, forward).

API Endpoints