1. Conduid
  2. AI
  3. fastmail-server
MCP server · AI

fastmail-server

FastMail MCP Server for advanced email management with AI-powered features, Docker support, and Unraid compatibility

Unclaimed ai
39Low

Scored 13 days ago · breakdown

About fastmail-server

fastmail-server is an MCP server published by git+radiosilence in the AI category: fastMail MCP Server for advanced email management with AI-powered features, Docker support, and Unraid compatibility.

The repository has 9 stars and 0 forks.

Install

Install
npx fastmail-mcp-server
Claude Code
claude mcp add fastmail-mcp-server -- npx -y fastmail-mcp-server
npx
npx -y fastmail-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (6)

get_attachmentDownload and read attachment content (see below)

Parameters not published.

get_emailGet full email content by ID

Parameters not published.

list_attachmentsList attachments on an email

Parameters not published.

list_emailsList emails in a mailbox (returns summaries)

Parameters not published.

list_mailboxesList all folders with unread counts

Parameters not published.

search_emailsSearch across all mailboxes

Parameters not published.

Ask AI

✦

Ask AI about fastmail-server

Powered by Claude · Grounded in docs

I know everything about fastmail-server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

README

fastmail-mcp-server

MCP server for Fastmail. Read, search, organize, and send emails through Claude Desktop.

Features

  • Full read/write - list, search, send, reply, forward, move, mark as spam
  • Safe sending - preview→confirm flow prevents accidental sends
  • Masked emails - create/manage disposable email addresses
  • Advanced search - filter by date, sender, attachments, unread, flagged status
  • Thread support - get_email returns full conversation context
  • Attachment text extraction - PDFs, Word docs, Excel, PowerPoint extracted as readable text
  • Legacy .doc support - uses macOS textutil for old Word formats
  • Image attachments - auto-resized to fit model limits, returned for Claude's built-in vision/OCR
  • CC/BCC support - full addressing on send, reply, and forward

Comparison

Feature radiosilence @jahfer willmeyers
Read emails ✅ ✅ ✅
Search emails ✅ ✅ ✅
Advanced search filters ✅ ❌ ❌
Send emails ✅ ❌ ✅
Reply to threads ✅ ❌ ❌
Forward emails ✅ ❌ ❌
CC/BCC support ✅ ❌ ✅
Safe send (preview→confirm) ✅ ❌ ❌
Move/organize emails ✅ ❌ ❌
Mark as spam ✅ ❌ ❌
Masked emails ✅ ❌ ❌
Thread context ✅ ❌ ❌
List attachments ✅ ❌ ❌
Extract text from PDF/DOCX ✅ ❌ ❌
Extract text from legacy .doc ✅ ❌ ❌
Images for Claude OCR ✅ ❌ ❌
Bun/TypeScript ✅ ✅ ❌ (Python)
Actively maintained ✅ ❓ ❓

Prerequisites

Requires Bun runtime:

# Install Bun
curl -fsSL https://bun.sh/install | bash

# Or via mise
mise use -g bun

Quick Start

1. Generate Fastmail API Token

  1. Open Fastmail Settings → Privacy & Security → Integrations
  2. Scroll to API tokens and click Manage
  3. Click New API token
  4. Name it something like "Claude MCP"
  5. Under Access, enable:
    • Mail - required (read and write)
  6. Click Generate
  7. Copy the token immediately - you won't see it again

Token format: fmu1-xxxxxxxx-xxxxxxxxxxxx...

2. Configure Claude Desktop

Install the server globally:

# Via mise (recommended)
mise use -g npm:fastmail-mcp-server

# Or via npm
npm install -g fastmail-mcp-server

Open the Claude Desktop config file:

# macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Or create it if it doesn't exist
mkdir -p ~/Library/Application\ Support/Claude
touch ~/Library/Application\ Support/Claude/claude_desktop_config.json

Add the fastmail server config:

{
  "mcpServers": {
    "fastmail": {
      "command": "fastmail-mcp-server",
      "env": {
        "FASTMAIL_API_TOKEN": "fmu1-your-token-here"
      }
    }
  }
}

Note: If Claude Desktop can't find the command, use the full path from which fastmail-mcp-server

3. Restart Claude Desktop

Quit Claude Desktop completely (Cmd+Q) and reopen it. The Fastmail tools should now appear.

Security

Token storage: The token lives in claude_desktop_config.json in your user directory. This file is only readable by your user account. For additional security:

  • Don't commit the config file to version control
  • Rotate tokens periodically via Fastmail settings
  • Use minimal scopes - only enable Mail access unless you need more
  • Revoke immediately if compromised via Fastmail settings

Send protection: All email-sending operations require explicit two-step confirmation:

  1. action: "preview" - shows exactly what will be sent
  2. action: "confirm" - actually sends

No emails can be sent accidentally.

Available Tools

Read Operations (no confirmation needed)

Tool Description
list_mailboxes List all folders with unread counts
list_emails List emails in a mailbox (returns summaries)
get_email Get full email content by ID
search_emails Search across all mailboxes
list_attachments List attachments on an email
get_attachment Download and read attachment content (see below)

Attachment Handling

get_attachment automatically extracts readable content from attachments:

Format Handling
Text files (txt, json, csv, xml) Returned inline
Documents (PDF, DOCX, XLSX, PPTX, RTF, ODT) Text extracted via officeparser
Legacy Word (.doc) Text extracted via macOS textutil
Images (PNG, JPG, etc) Auto-resized if >700KB, returned for Claude's vision/OCR
Other binary Base64 fallback

Claude receives actual text content, not binary blobs - just like when you drag-and-drop files into Claude Desktop.

Write Operations

Tool Description Confirmation
move_email Move email to another folder No
mark_as_read Mark email read/unread No
mark_as_spam Move to Junk + train filter Yes
send_email Send a new email Yes
reply_to_email Reply to an email thread Yes
forward_email Forward an email Yes

Masked Email Operations

Tool Description
list_masked_emails List all masked email addresses
create_masked_email Create a new disposable address
enable_masked_email Re-enable a disabled masked email
disable_masked_email Stop receiving at a masked address
delete_masked_email Permanently delete a masked email

Example Prompts

"What's in my inbox?"

"Check the met-police folder - anything urgent?"

"Search for emails from john@example.com"

"Find unread emails from last week with attachments"

"Show me flagged emails from December"

"What would be a good response to the latest email from the solicitor?"

"Draft a reply to that insurance email explaining the situation"

"Forward that receipt to my accountant"

"Move all the newsletters to Archive"

"Mark that spam email as junk"

"Create a masked email for signing up to this sketchy website"

"List my masked emails and disable the one for that service I cancelled"

Troubleshooting

"FASTMAIL_API_TOKEN environment variable is required"

  • Check your Claude Desktop config has the token in the env section
  • Make sure the JSON is valid (no trailing commas)
  • Restart Claude Desktop completely (Cmd+Q)

"Failed to get JMAP session: 401"

  • Token is invalid or expired
  • Generate a new token in Fastmail settings
  • Make sure you copied the full token

"Mailbox not found"

  • Run list_mailboxes first to see exact folder names
  • Names are case-sensitive

Tools not appearing in Claude

  • Check logs: ~/Library/Logs/Claude/mcp*.log
  • Make sure bun is installed: bun --version
  • Try running directly: bunx fastmail-mcp-server

How It Works

Uses JMAP (JSON Meta Application Protocol) - a modern, stateless replacement for IMAP. The server implements Model Context Protocol for Claude integration.

Development

git clone https://github.com/radiosilence/fastmail-mcp-server
cd fastmail-mcp-server
bun install

# Test with your token
FASTMAIL_API_TOKEN=fmu1-... bun run test

# Run server directly
FASTMAIL_API_TOKEN=fmu1-... bun run start

# Format & lint
bun run format
bun run lint

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About fastmail-server

How do I install fastmail-server?

Run npx fastmail-mcp-server, then add the server to your MCP client's configuration.

Is fastmail-server safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 2 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is fastmail-server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.