JMAP Email logo

JMAP Email

Manage JMAP mailboxes, messages, identities, drafts, submissions, attachments, and optional Sieve scripts through MCP.

Install JMAP Email

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

Streamable HTTP (Remote)
Server URL
https://api.fastmail.com/jmap/session

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Claude Code command
claude mcp add --transport http jmap-email https://api.fastmail.com/jmap/session

Run in your terminal, then run /mcp in Claude Code to sign in if the server asks.

Overview

JMAP Email MCP server exposes JMAP mail and Sieve operations as MCP tools for AI agents. It supports mailbox administration, email search and retrieval, draft creation, moving, flagging, deletion, sender identity lookup, and optional message submission. HTTP mode can generate short-lived signed attachment URLs, while stdio mode uses a configured bearer token. Reach for it when an MCP client needs structured access to a JMAP-compatible email account.

Use cases

  • Search a JMAP mailbox for messages matching filters
  • Create and organize email drafts
  • Move messages and update common email flags
  • Submit drafts for delivery when sending is enabled
  • Manage and validate Sieve scripts

Key features

  • JMAP mailbox and message operations
  • Email search and full-content retrieval
  • Draft creation and optional submission
  • Temporary signed attachment URLs in HTTP mode
  • Sender identity lookup
  • Optional Sieve script management

Tools14

What JMAP Email lets your agent do. Expand a tool for its parameters.

Self-reported~225 tokens of context

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.

9/14 checks healthy over the last 83d

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
Last commit14d agoMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.

How JMAP Email works

What JMAP Email does

JMAP Email turns JMAP email operations into MCP tools. It covers the main mailbox and message workflows defined by JMAP Mail: listing or changing mailboxes, searching for messages, reading full email content, creating drafts, moving messages, changing common flags, and deleting messages. It also exposes sender identities so an agent can select an available address when preparing mail.

The server can optionally submit drafts for delivery. Sieve script management is also available when enabled and supported by the JMAP service, including listing scripts, reading their content, creating, updating, destroying, and validating scripts without saving them.

How it works

Operations map closely to JMAP methods. Mailbox tools use Mailbox/get and Mailbox/set; message search and retrieval use Email/query and Email/get; message changes are handled through Email/set wrappers. Identity lookup uses Identity/get, and delivery uses EmailSubmission/set when sending has been enabled.

The process runs in stdio mode by default or as an HTTP service. In stdio mode, it reads the JMAP session endpoint and bearer token from environment variables. HTTP mode accepts a bearer token in the Authorization header or through the jmap_token query parameter, with the query parameter taking precedence.

Attachment retrieval is available only in HTTP mode. The attachment tool returns a link under /attachments/ that expires after 30 seconds. The link contains an AES-GCM-sealed capability carrying the JMAP token, account, and blob identifiers; the server streams the attachment from JMAP without writing it to disk.

Setup and configuration

Install options include a Go binary, Debian packages for amd64 and arm64, or the published container and Helm chart. A direct installation can use:

bash
go install sarak.sh/mikluko/jmap-mcp@latest

Set JMAP_SESSION_URL to the JMAP session endpoint. In stdio mode, also set JMAP_AUTH_TOKEN to the bearer token used for JMAP authentication:

server.ts
export JMAP_SESSION_URL=https://api.fastmail.com/jmap/session
export JMAP_AUTH_TOKEN=your-token
./jmap-mcp

For HTTP mode, start the process with -mode http; -listen controls the bind address and defaults to :8080:

bash
./jmap-mcp -mode http -listen :8080

Use -enable-send to expose draft submission and -enable-sieve to expose Sieve tools. Both are disabled by default. -external-url sets the base URL used in signed attachment links. ATTACHMENT_URL_SECRET can provide a stable sealing secret, which is useful when several HTTP replicas need to validate links consistently.

Tools and capabilities

  • mailbox_get lists mailboxes or retrieves selected mailbox records.
  • mailbox_set creates, updates, or destroys mailboxes.
  • email_query searches messages with filters and returns matching IDs plus a total count.
  • email_get retrieves complete email content by ID.
  • email_create creates a draft in the Drafts mailbox.
  • email_move, email_flag, and email_delete change message placement, flags, or deletion state.
  • identity_get lists available sender identities.
  • email_submission_set submits a draft when sending is enabled.
  • email_attachment_url creates a temporary attachment stream URL in HTTP mode.
  • sieve_get, sieve_set, and sieve_validate manage or validate Sieve scripts when enabled.

Limitations and notes

Message submission is opt-in through -enable-send, and Sieve operations are both opt-in and dependent on JMAP server support. Attachment URLs expire after 30 seconds and are only provided by the HTTP deployment. Permanent deletion is available through the email deletion tool in addition to moving a message to Trash. HTTP deployments can receive credentials per request rather than storing a static token in the cluster.

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 JMAP Email

JMAP Email is an MCP server that connects AI clients to a JMAP-compatible email service. Its main tools list and modify mailboxes, search and read messages, create drafts, move or flag email, delete messages, list sender identities, and optionally submit drafts or manage Sieve scripts.

Install it with `go install sarak.sh/mikluko/jmap-mcp@latest`, a Debian package, or the published container and Helm chart. Building from source is also supported through the repository's `make install` target.

Set `JMAP_SESSION_URL` and `JMAP_AUTH_TOKEN`, then start the binary without a mode flag. Stdio is the default, and the token is used as the bearer credential for the configured JMAP session endpoint.

Yes, but draft submission is disabled by default. Start the server with `-enable-send` to expose `email_submission_set`, which submits a draft for delivery through JMAP.

Start the server with `-enable-sieve` to expose `sieve_get`, `sieve_set`, and `sieve_validate`. The connected JMAP service must also support Sieve operations.

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 PreviewJMAP Email AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/jmap-email?style=directory)](https://allmcps.com/mcp/jmap-email)
HTML Embed
<a href="https://allmcps.com/mcp/jmap-email"><img src="https://allmcps.com/api/badge/jmap-email?style=directory" alt="JMAP Email on AllMCPs" /></a>