MCP Twake Mail logo

MCP Twake Mail

Connects MCP assistants to Twake Mail and other JMAP mailboxes for reading, drafting, organising, sending and attachment handling.

Install MCP Twake Mail

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-twake-mail": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-twake-mail"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio mcp-twake-mail -- npx -y mcp-twake-mail

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y mcp-twake-mail

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

mcp-twake-mail connects MCP-compatible assistants to Twake Mail and other JMAP mail services, including Apache James, Stalwart, Cyrus IMAP and Fastmail. It exposes 33 tools for searching messages, reading threads, creating drafts, managing folders, handling attachments and sending or deleting mail. Write operations use MCP elicitation for explicit approval, while read operations can run without confirmation. Reach for it when an assistant needs controlled access to a sovereign or self-hosted mailbox.

Use cases

  • Search years of mailbox history by participant or topic
  • Summarise unread messages and inspect related threads
  • Prepare reviewed replies with signatures and attachments
  • Organise messages and folders in controlled batches
  • Download attachments for analysis or transfer

Key features

  • 33 JMAP mailbox tools
  • Four authentication methods
  • Approval prompts for write operations
  • Drafts with HTML, plain text, signatures and threading
  • Attachment upload and download handling
  • Batch actions for up to 50 emails

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16h ago via OSV.dev · mcp-twake-mail (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads1.5kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How MCP Twake Mail works

What mcp-twake-mail does

mcp-twake-mail gives an MCP-compatible assistant access to a JMAP mailbox. It is intended for Twake Mail but can also connect to JMAP services such as Apache James, Stalwart, Cyrus IMAP and Fastmail. The server covers mail reading and search, thread inspection, draft creation, replies, mailbox organisation, attachments and message delivery.

The tool set includes 33 operations. Read-only functions retrieve messages, labels, threads, mailboxes and attachments. Write functions can create or update drafts, send or forward messages, move or label mail, manage mailbox subscriptions, and delete messages or mailboxes. Batch operations handle up to 50 messages at a time.

How it works

The server communicates with the mailbox through JMAP, following RFC 8620 and RFC 8621. It can discover a JMAP service from an email address using DNS SRV records, .well-known/jmap, and OAuth metadata. Authentication supports Basic credentials, bearer tokens, OIDC with PKCE and automatic refresh, or a token command that obtains short-lived credentials from an external broker.

Reading messages, threads and attachments does not require confirmation. Before a write, the server presents the precise action through MCP elicitation and proceeds only after approval. approve_batch can authorise a specified series of writes for one session and up to 15 minutes; it does not replace the separate batch tools, which apply one operation to multiple emails.

Draft generation supports plain text and HTML alternatives, signatures, reply threading and optional reply-all handling. Attachments for drafts are restricted to the configured upload directory. Large downloads can be written to disk rather than returned inline.

Setup and configuration

Node.js 20 or newer and access to a JMAP server are required. The interactive setup command is:

Terminal
npx mcp-twake-mail setup

The wizard discovers the mailbox service, asks for an authentication method and credentials, configures the default sender and signature, tests connectivity and can write the Claude Desktop configuration. The broader mcp-twake-ai setup command can install this server alongside other Twake.ai MCP servers and configure supported agents.

The server can also be invoked from a terminal or script. npx mcp-twake-mail tools lists available tools, while npx mcp-twake-mail call <tool> invokes one using the server configuration. Terminal writes have separate approval options, including --i; unattended use requires an explicitly permitted name with --yes --as.

JMAP_UPLOAD_DIR controls where files may be read for draft attachments. JMAP_DOWNLOAD_DIR can choose the directory used for downloaded attachments, which otherwise defaults to ~/Downloads. USER_LANGUAGE=fr affects the language of quoted reply text.

Tools and capabilities

  • Read individual emails, labels, threads and thread messages.
  • Search across mailboxes, including by participant in From, To, Cc or Bcc fields, with pagination support.
  • Create, revise and prepare replies as drafts with signatures, HTML and plain-text content.
  • Send, reply to, forward and send existing drafts after approval.
  • Mark messages read or unread, move them, add or remove labels, and apply those actions in batches of up to 50.
  • List, inspect, create, rename, subscribe to and delete mailboxes, with protection for Inbox, Sent, Drafts and Trash.
  • List and download attachments, optionally saving them to disk.
  • Approve a defined sequence of write calls once instead of confirming each eligible call separately.

Limitations and notes

Sending, deleting, drafting, moving, labelling and other write actions are approval-controlled. Destructive operations are identified through MCP annotations, including destructiveHint; tools also declare read-only and idempotency hints.

Files outside the upload directory are rejected, including paths reached through symbolic links. Attachments larger than 750 KB are saved to disk instead of being returned inline. Unsubscribed mailboxes may be hidden from normal views and require the mailbox subscription tool to show them again.

The server uses HTTPS for exchanges and writes logs to stderr rather than the MCP channel. Its license is AGPL-3.0.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Twake Mail

mcp-twake-mail is an MCP server that connects AI assistants to Twake Mail and other JMAP mailboxes. Its main tools read and search email, inspect threads, create and update drafts, organise messages, manage attachments, send mail, and manage mailboxes, with approval required for write operations.

Run `npx mcp-twake-mail setup` for the interactive setup wizard. It discovers the JMAP service, configures authentication, sender and signature settings, tests the connection, and can write the Claude Desktop configuration. The `mcp-twake-ai setup` command can configure this server with other Twake.ai MCP servers.

Yes, mcp-twake-mail is listed as compatible with Cursor. It is an MCP server and can also be used with Claude Desktop, Claude Code, VS Code and other MCP-compatible assistants.

mcp-twake-mail works with Twake Mail and JMAP services including Apache James, Stalwart, Cyrus IMAP and Fastmail. It connects through the JMAP protocols defined by RFC 8620 and RFC 8621.

No, write operations require explicit approval through MCP elicitation. This includes sending, drafting, moving, labelling and deleting. `approve_batch` can authorise a specified series of writes for one session, subject to its time and call restrictions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Twake Mail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-twake-mail?style=directory)](https://allmcps.com/mcp/mcp-twake-mail)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-twake-mail"><img src="https://allmcps.com/api/badge/mcp-twake-mail?style=directory" alt="MCP Twake Mail on AllMCPs" /></a>