MIT LicenseFree & Open Source36 MCP Tools

Your Email,
Your Server

A remote MCP server and token-efficient CLI for Fastmail. Email, contacts, and calendar — powered by Cloudflare Workers.

fastmail-mcp — zsh — 120×48
❯ claude "Check my inbox for anything urgent"

Using fastmail search_emails tool...

Inbox — 3 unread

  ★ Alice Park  Q2 Budget Final Approval Needed  10:42 AM
  ● GitHub  [fastmail-mcp] New issue #47   9:15 AM
  ● David Chen  Flight itinerary for Tokyo trip   8:30 AM

❯ claude "Reply to Alice — approved, cc finance team"

Using fastmail reply_to_email tool...
✓ Reply sent to alice.park@company.com
  CC: finance-team@company.com
  Re: Q2 Budget Final Approval Needed

❯ claude "Move the GitHub notification to my Dev folder"

Using fastmail move_email tool...
✓ Moved to Dev/GitHub

❯ claude "Find David's phone number"

Using fastmail search_contacts tool...

  David Chen
  Email:  david.chen@company.com
  Phone:  (415) 555-0198

❯ ▌

Everything You Need

A complete MCP toolkit for Fastmail with 36 tools across email, contacts, calendar, and memos.

🛠️

36 MCP Tools

Full coverage of email, contacts, calendar, and memo operations. Read, write, search, organize, and bulk process.

🔌

3 Client Options

Use with Claude Code MCP, the token-efficient CLI, or the OpenClaw plugin — pick what fits your workflow.

🔒

Secure OAuth

Cloudflare Access OAuth with Zero Trust. GitHub or OTP login, per-user allowlists, and encrypted tokens.

⚡

Token Efficient

CLI saves 5-7x tokens vs raw MCP. Compact text output designed for LLM consumption.

☁️

Zero Maintenance

Runs on Cloudflare Workers — no servers to manage, automatic scaling, global edge deployment.

📝

Private Memos

Attach private notes to any email. Yellow inline annotations visible only to you, searchable via has:memo.

How It Works

Three components, one seamless pipeline

💻
MCP Client
Claude Code, CLI, or OpenClaw
↓
⚡
Cloudflare Worker
OAuth, routing, permissions
↓
📧
Fastmail JMAP
Email, contacts, calendar

Deployed globally on Cloudflare's edge network — sub-50ms latency worldwide

36 Tools, 7 Categories

Every email operation you need, from inbox to bulk actions

Email Read 14Email Write 3Email Organize 5Bulk Ops 4Contacts 3Calendar 4Memos 3

Email Read

get_recent_emailsget_emaillist_emailssearch_emailsadvanced_searchget_email_attachmentsdownload_attachmentget_threadget_inbox_updatesget_mailbox_statsget_account_summarylist_mailboxeslist_identitiescheck_function_availability

Email Write

send_emailcreate_draftreply_to_email

Email Organize

move_emaildelete_emailmark_email_readflag_emailgenerate_email_action_urls

Bulk Ops

bulk_movebulk_deletebulk_mark_readbulk_flag

Contacts

search_contactsget_contactlist_contacts

Calendar

list_calendarslist_calendar_eventsget_calendar_eventcreate_calendar_event

Memos

create_memoget_memodelete_memo

Quick Start

Three ways to get started — pick your preferred setup

1
Claude CodeRecommended
# Add the MCP server
claude mcp add --transport http fastmail \
  "https://your-worker.example.com/mcp"


# Authenticate when prompted via /mcp
# Then use Fastmail tools directly in Claude Code
2
CLIToken Efficient
# Install and authenticate
alias fastmail="npx tsx cli/main.ts"
fastmail auth --url 
https://your-worker.example.com


# Check your inbox
fastmail inbox
fastmail email search "from:team@example.com"
3
OpenClaw Pluginnpm Package
# Install the plugin
npm install -g fastmail-cli


# Configure in OpenClaw workspace
# The CLI handles auth automatically
fastmail auth status