JMAP mail
Mailbox access for AI assistants on any JMAP server, with OAuth sign-in and no config
JMAP mail is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, Linux
- Runs
- Locally
- What it can do
- Can delete data (1 tool)
- Version
- 0.3.1
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add jmap-mcp -- docker run -i --rm ghcr.io/kolapsis/jmap-mcp:0.3.1Add --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"jmap-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kolapsis/jmap-mcp:0.3.1"
]
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add jmap-mcp -- docker run -i --rm ghcr.io/kolapsis/jmap-mcp:0.3.1Or add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.jmap-mcp]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/kolapsis/jmap-mcp:0.3.1"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"jmap-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kolapsis/jmap-mcp:0.3.1"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "jmap-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/kolapsis/jmap-mcp:0.3.1" ] } } }Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
JMAP_MCP_ENABLE_SENDAllow sending email; every message is still confirmed by the userJMAP_MCP_LOG_LEVELLog levelJMAP_MCP_ENABLE_SENDAllow sending email; every message is still confirmed by the user
About JMAP mail
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.
Tools this server provides (16)
Taken from the project documentation; the running server may differ.
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_accountsName suggests: reads
- Connected accounts and the default one.
- connect_account
- Connect an account from an email address in local mode.
- list_mailboxesName suggests: reads
- Mailboxes with role, path and unread counts.
- list_identitiesName suggests: reads
- Sender identities.
- search_emailsName suggests: reads
- Search by text, sender, recipient, subject, mailbox, dates and flags.
- get_emailName suggests: reads
- Headers, plain-text body and attachment list.
- get_threadName suggests: reads
- A conversation in order.
- get_attachmentName suggests: reads
- Attachment text, small images or a signed URL.
- update_emailsName suggests: changes
- Mark read, unread, flagged or unflagged.
- move_emailsName suggests: changes
- Move messages to a mailbox.
- create_folderName suggests: changes
- Create a folder.
- delete_emailsName suggests: deletes
- Trash messages, or permanently delete after confirmation.
- create_draftName suggests: changes
- Create a new message or reply draft.
- send_emailName 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.
What it does
- 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
Pricing
Open source
Self-hosted; container image on ghcr.io
JMAP mail 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.

