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.vercel.app/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

mailbox_get
Get mailbox information (folders) - list all mailboxes or get specific ones by ID
email_query
Query emails with filters and sorting
email_get
Get specific emails by their IDs
email_send
Send emails with support for plain text, HTML, or both
email_set
Update emails: move to a mailbox and/or set flags (read/unread, flagged, answered, draft)

API Endpoints