# JMAP mail

> JMAP mail is an open-source MCP server for communication. Mailbox access for AI assistants on any JMAP server, with OAuth sign-in and no config. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Linux
- **Repository:** https://github.com/kolapsis/jmap-mcp
- **MCP Registry name:** io.github.kOlapsis/jmap-mcp
- **Categories:** [communication](https://ai-powered.com/categories/communication), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Most JMAP servers need a server URL and a static token before an assistant can touch a mailbox. This bridge starts from just an email address: it finds the JMAP server through DNS SRV or the well-known path, discovers the OAuth server and registers itself, so the user signs in on their mail provider's own page. Stalwart is the first target, but any JMAP server with an OAuth server that supports dynamic registration should work.

It runs in two modes. In local stdio mode it behaves like a mail client, opening a browser on a loopback address or falling back to a device code. In HTTP mode it is a self-hosted bridge, shipped as a distroless container, that can be added to Claude.ai as a custom connector with the client ID left empty. Mail-server tokens never leave the bridge.

Sending is off by default and must be enabled with a flag, and each send, permanent delete and rule change is confirmed by the user. Email bodies are treated as untrusted data and the tool descriptions warn the model about embedded instructions.

## Features

- **Zero-configuration sign-in:** The mail server and its OAuth endpoints are discovered from the email address.
- **Search and read:** Search by text, sender, dates, flags or attachments, then read messages and threads with truncated plain-text bodies.
- **Drafts and sending:** Create replies and drafts with attachments; sending is disabled unless explicitly enabled and is confirmed per message.
- **Folder and flag management:** Move, flag, mark read, create folders and trash messages.
- **Sieve and vacation rules:** Read and change filtering scripts and the out-of-office reply when the server supports them.
- **Self-hosted HTTP mode:** Run behind Traefik or Caddy to serve several users on different mail servers with isolated instances.

## Good for

- Triage an inbox by asking an assistant to summarise unread mail
- Draft replies to a thread and review them before sending
- Clean up folders and move newsletters out of the inbox
- Manage Sieve filters and vacation replies on a Stalwart server
- Give Claude.ai access to a self-hosted mailbox

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add jmap-mcp -- docker run -i --rm ghcr.io/kolapsis/jmap-mcp:0.3.1
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add jmap-mcp -- docker run -i --rm ghcr.io/kolapsis/jmap-mcp:0.3.1
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.jmap-mcp]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/kolapsis/jmap-mcp:0.3.1"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user jmap-mcp docker -- run -i --rm ghcr.io/kolapsis/jmap-mcp:0.3.1

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "jmap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/kolapsis/jmap-mcp:0.3.1"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 16 tools deletes data and 5 change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_accounts` (name suggests: reads): Connected accounts and the default one.
- `connect_account`: Connect an account from an email address in local mode.
- `list_mailboxes` (name suggests: reads): Mailboxes with role, path and unread counts.
- `list_identities` (name suggests: reads): Sender identities.
- `search_emails` (name suggests: reads): Search by text, sender, recipient, subject, mailbox, dates and flags.
- `get_email` (name suggests: reads): Headers, plain-text body and attachment list.
- `get_thread` (name suggests: reads): A conversation in order.
- `get_attachment` (name suggests: reads): Attachment text, small images or a signed URL.
- `update_emails` (name suggests: changes): Mark read, unread, flagged or unflagged.
- `move_emails` (name suggests: changes): Move messages to a mailbox.
- `create_folder` (name suggests: changes): Create a folder.
- `delete_emails` (name suggests: deletes): Trash messages, or permanently delete after confirmation.
- `create_draft` (name suggests: changes): Create a new message or reply draft.
- `send_email` (name suggests: changes): Send a draft or compose and send, when enabled.
- `vacation_response`: Read or change the out-of-office reply.
- `sieve_scripts`: List, read, write and activate filtering rules.

## FAQ

### Which mail servers work?

Any server with JMAP (RFC 8620 and 8621) and an OAuth server offering RFC 8414 metadata and RFC 7591 dynamic registration.

### Can the assistant send mail by default?

No. Sending is disabled unless you enable it, and every message is still confirmed by the user.

### Does JMAP mail store my email?

The README says the bridge stores no email and keeps only encrypted OAuth tokens.

### Can I use JMAP mail with Claude.ai?

Yes, in HTTP mode as a custom connector pointing at your bridge's /mcp address, leaving Client ID and Secret empty.

### Is JMAP mail free?

Yes. JMAP mail is open source, so you can use and self-host it for free.

### How do I add JMAP mail to Claude Code?

Run this command in your terminal: claude mcp add jmap-mcp -- docker run -i --rm ghcr.io/kolapsis/jmap-mcp:0.3.1

### What are the best alternatives to JMAP mail?

The closest alternatives to JMAP mail are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [TrendRadar](https://ai-powered.com/mcp/trendradar): TrendRadar is an open-source MCP server for communication.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.
- [Discord MCP](https://ai-powered.com/mcp/discord-mcp): Discord MCP is an open-source MCP server for communication.
- [Gmail MCP](https://ai-powered.com/mcp/gmail-mcp-3): Gmail MCP is an open-source MCP server for communication.
- [Dayfile.app](https://ai-powered.com/mcp/dayfile-app): Dayfile.app is an open-source MCP server for productivity.

---
Source: https://ai-powered.com/mcp/jmap-mail
