JMAP mail
概览
作者提供的说明(英文原文)
Read, organize, draft and send email on any JMAP server, with OAuth sign-in and zero configuration
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 聊天与邮件
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/2 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
双击文件,然后在电脑版 Claude 应用中点击 Install
试一试
用 JMAP mail 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 JMAP mail,或回答中出现 JMAP mail 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 JMAP mail
JMAP mail 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 JMAP mail 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 JMAP mail 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
- 需要 JMAP mail 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
- 需要 JMAP mail 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
B · 聊天与邮件 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Inbox Zero✓ ChatGPT
- Agent-Native Chat✓ ChatGPT
- draw.io✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 JMAP mail 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add jmap --env JMAP_MCP_ENABLE_SEND=your-value --env JMAP_MCP_LOG_LEVEL=your-value -- docker run -i --rm -e JMAP_MCP_ENABLE_SEND -e JMAP_MCP_LOG_LEVEL ghcr.io/kolapsis/jmap-mcp:0.3.0 stdio按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 JMAP mail 在列表中并显示已连接
试一试
用 JMAP mail 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 JMAP mail,或回答中出现 JMAP mail 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 JMAP mail 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
填写你的密钥
在 JMAP mail 的设置中,JMAP_MCP_ENABLE_SEND, JMAP_MCP_LOG_LEVEL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 JMAP mail 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 JMAP mail,或回答中出现 JMAP mail 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 JMAP mail 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Docker(只需一次)
填写你的密钥
在 JMAP mail 的设置中,JMAP_MCP_ENABLE_SEND, JMAP_MCP_LOG_LEVEL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 JMAP mail 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 JMAP mail,或回答中出现 JMAP mail 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add jmap --env JMAP_MCP_ENABLE_SEND=your-value --env JMAP_MCP_LOG_LEVEL=your-value -- docker run -i --rm -e JMAP_MCP_ENABLE_SEND -e JMAP_MCP_LOG_LEVEL ghcr.io/kolapsis/jmap-mcp:0.3.0 stdioClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"jmap": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"JMAP_MCP_ENABLE_SEND",
"-e",
"JMAP_MCP_LOG_LEVEL",
"ghcr.io/kolapsis/jmap-mcp:0.3.0",
"stdio"
],
"env": {
"JMAP_MCP_ENABLE_SEND": "your-value",
"JMAP_MCP_LOG_LEVEL": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"jmap": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"JMAP_MCP_ENABLE_SEND",
"-e",
"JMAP_MCP_LOG_LEVEL",
"ghcr.io/kolapsis/jmap-mcp:0.3.0",
"stdio"
],
"env": {
"JMAP_MCP_ENABLE_SEND": "your-value",
"JMAP_MCP_LOG_LEVEL": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"jmap": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"JMAP_MCP_ENABLE_SEND",
"-e",
"JMAP_MCP_LOG_LEVEL",
"ghcr.io/kolapsis/jmap-mcp:0.3.0",
"stdio"
],
"env": {
"JMAP_MCP_ENABLE_SEND": "your-value",
"JMAP_MCP_LOG_LEVEL": "your-value"
}
}
}
}需要你填写的值
JMAP_MCP_ENABLE_SENDenvAllow sending email; every message is still confirmed by the userJMAP_MCP_LOG_LEVELenvLog level
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 kOlapsis 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于5天前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“聊天与邮件”中的其他服务器比较i
- 星标数多于此分类中其他 1962 个服务器的 83%
- 发布到注册中心的时间比此分类中其他 1962 个服务器的 62% 更新
- 基础检查结果等于或优于此分类中其他 1962 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
JMAP mail 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于5天前,最新版本(0.3.0)于18天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker, MCPB。
有什么可以替代它?
同一分类中有:Inbox Zero, Agent-Native Chat, draw.io
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Agent-Native Chat
Minimal chat-first app with durable threads, actions, and the app-agent loop
draw.io
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
jmap-mcp
An MCP server that gives an AI assistant (Claude.ai, Claude Code, Claude Desktop or any MCP client) access to a mailbox hosted on a JMAP server (RFC 8620, RFC 8621), first of all Stalwart.
The user gives an email address and signs in on their mail server's own page. Nothing else is configured: no server URL, no token, no API key.
Why
- Sovereignty. Your mail stays on your server. The bridge is self-hosted, stores no email, and keeps only encrypted OAuth tokens.
- Zero configuration. The JMAP server is found from the email address (DNS SRV, then
/.well-known/jmap), its OAuth server from standard metadata, and the bridge registers itself dynamically. Secrets are generated on first start. - Clean OAuth, no token passthrough. MCP clients get tokens issued by the bridge for the bridge; mail-server tokens never leave it, as the MCP authorization spec requires. It works as a Claude.ai custom connector with the Client ID left empty.
- Any JMAP server. Nothing is Stalwart-specific: any server with JMAP and an OAuth server supporting RFC 8414 metadata and RFC 7591 dynamic registration works.
Existing JMAP MCP servers (mikluko/jmap-mcp, wyattjoh/jmap-mcp, agent-jmap-mcp, fastmail-blade-mcp) all need a server URL and a static token in their configuration, and none can be added to Claude.ai as a connector.
Tools
A small surface designed for an agent: compact JSON results, pagination everywhere, bodies converted to text and truncated with an explicit flag.
| Tool | What it does |
|---|---|
list_accounts | Connected accounts and the default one (set_default changes it). |
connect_account | Local mode only: connect an account from an email address (browser or device code). |
list_mailboxes | Mailboxes with role (inbox, sent, drafts, trash, archive, junk), path, total and unread counts. |
list_identities | Sender identities. Registered when the server announces submission. |
search_emails | Text, sender, recipient, subject, mailbox, dates, unread, flagged, attachments, size; sort; position and limit. Returns summaries. |
get_email | Headers, plain-text body (HTML converted when there is no text part), attachment list. max_body_length. |
get_thread | A conversation in order, as summaries or full messages. |
get_attachment | Text and small images inline; otherwise a signed URL valid 15 minutes (HTTP mode) or a private temporary file (local mode). |
update_emails | Read, unread, flagged, unflagged. |
move_emails | Move to a mailbox given by id, role or name. |
create_folder | Create a folder, at the top level or inside a parent given by id, role or name. |
delete_emails | Trash by default; permanent destroys after the user's confirmation. |
create_draft | New message or reply: In-Reply-To, References, Re: subject, quote, reply-all recipients, attachments uploaded over JMAP. |
send_email | Sends a draft, or composes and sends. Disabled unless --enable-send; every message is confirmed by the user. |
vacation_response | Read or change the out-of-office reply (changes are confirmed). Registered when the server announces it. |
sieve_scripts | List, read, write, activate, deactivate, delete filtering rules (RFC 9661); changes are confirmed. Registered when announced. |
The resource jmap-mcp://status describes the connected accounts, the discovered servers and the capabilities they announce.
Email content is treated as untrusted data: it is returned to the model as data, never interpreted, and the tool descriptions tell the model that emails may contain instructions it must ignore.
Choices that are not secret (which account, which sender identity, confirmation of a send or a permanent deletion) are asked through MCP elicitation when the client supports it. Otherwise the tool returns an error listing the choices, and the model calls it again with the argument set (account, identity, confirm). Credentials never go through elicitation or tool arguments.
How it works
HTTP mode mail server
┌──────────────┐ OAuth 2.1 (bridge tokens) ┌──────────────┐ OAuth (mail tokens) ┌──────────────┐ │ MCP client │ ──────────────────────────▶ │ jmap-mcp │ ────────────────────▶ │ OAuth server │ │ Claude.ai… │ ◀── MCP over HTTP ────────▶ │ (bridge) │ ◀──── JMAP ─────────▶ │ JMAP API │ └──────────────┘ └──────────────┘ └──────────────┘
In HTTP mode (jmap-mcp serve) the bridge is at the same time:
- a protected resource (RFC 9728 metadata,
401withWWW-Authenticate, audience checked on every request); - a minimal authorization server for MCP clients (RFC 8414 metadata, PKCE S256, RFC 8707 resource indicators, RFC 7591 dynamic registration, Client ID Metadata Documents, rotating refresh tokens);
- an OAuth client of the mail server: its sign-in page asks for the email address, discovers the server, registers itself there once per server, and redirects the user to the mail server's authorization code flow with PKCE. Only after the mail server returns does the bridge issue its own code and tokens.
A single deployment serves users of different mail servers. Each user gets an isolated MCP server instance and can only reach their own accounts.
In local mode (jmap-mcp, stdio) there is no third party: the process is the OAuth client of the mail server, like a mail application. It registers as a public client, opens the browser on a loopback redirect, and falls back to the device flow (RFC 8628) when no browser can be opened, showing the code to type.
Installation
1. Docker behind Traefik
The image is ghcr.io/kolapsis/jmap-mcp (linux/amd64 and linux/arm64, distroless, non-root, data in the /data volume). With a Traefik that already has a websecure entrypoint and an ACME resolver, copy docker-compose.yml, set your host name, resolver and network, and start it:
curl -O https://raw.githubusercontent.com/kOlapsis/jmap-mcp/main/docker-compose.yml
edit mcp.example.com, the certresolver name and the network
docker compose up -d curl https://mcp.example.com/healthz
Traefik sets the X-Forwarded-* headers from which the bridge derives its public URL. Set JMAP_MCP_PUBLIC_URL only if your proxy does not send them.
Image tags: X.Y.Z, X.Y, X and latest for releases, main and sha- for the latest build of the main branch. Both are built by GitHub Actions and pushed to ghcr.io.
Without Traefik, deploy/caddy has a Caddy setup that obtains the certificate itself:
cd deploy/caddy # edit mcp.example.com in the Caddyfile
docker compose up -d
The MCP address is https://mcp.example.com/mcp.
2. Add it to Claude.ai
Settings › Connectors › Add custom connector. Give it a name and the URL https://mcp.example.com/mcp. Leave Client ID and Client Secret empty in the advanced settings: Claude.ai registers itself dynamically (its redirect URI is https://claude.ai/api/mcp/auth_callback). Click Connect, enter your email address on the bridge page, then sign in on your mail server.
The free plan is limited to one custom connector. On Team and Enterprise plans, an owner adds the connector under Organization settings › Connectors.
3. Claude Code with the remote bridge
claude mcp add --transport http mail https://mcp.example.com/mcp
Then run /mcp in Claude Code and choose the server to authenticate in the browser.
4. Claude Code and Claude Desktop, local (stdio)
Install the binary, from the releases, with Homebrew (brew install --cask kolapsis/tap/jmap-mcp, macOS and Linux) or with Go:
go install github.com/kOlapsis/jmap-mcp@latest
Claude Code:
claude mcp add mail -- jmap-mcp
or in .mcp.json:
{
"mcpServers": { "mail": { "command": "jmap-mcp", "args": ["stdio"] } } }
Claude Desktop: install jmap-mcp.mcpb from the release (double-click it, or Settings › Extensions), or add to claude_desktop_config.json the full path of the binary:
{
"mcpServers": { "mail": { "command": "/usr/local/bin/jmap-mcp", "args": ["stdio"] } } }
On first use, ask the assistant to connect your mailbox. It asks for your email address (elicitation, or the connect_account tool), opens your browser on the mail server's sign-in page, and the account is ready. Without a graphical session (SSH), it shows a URL and a code to enter on any device. Tokens are stored in the data directory (~/.config/jmap-mcp on Linux), encrypted with a key kept in the OS keyring, or in a 0600 key file when no keyring is available. Several accounts can be connected.
To send email in local mode, add "env": {"JMAP_MCP_ENABLE_SEND": "true"} to the server entry.
5. Binary with systemd
sudo install -m 755 jmap-mcp /usr/local/bin/
sudo cp deploy/systemd/jmap-mcp.service /etc/systemd/system/ sudo systemctl daemon-reload && sudo systemctl enable --now jmap-mcp
The unit listens on 127.0.0.1:8080 with a dynamic user and its state in /var/lib/jmap-mcp. Put a TLS reverse proxy in front of it (any proxy that sends X-Forwarded-Proto and X-Forwarded-Host), or set JMAP_MCP_PUBLIC_URL.
Preparing the mail server
Discovery. The JMAP server is found from the email domain, as RFC 8620 §2.2 describes: an SRV record _jmap._tcp.example.com pointing at the JMAP host, otherwise https://example.com/.well-known/jmap. If your web site is not served by the mail server, add the SRV record:
_jmap._tcp.example.com. 3600 IN SRV 0 1 443 mail.example.com.
The OAuth server is found from the JMAP host: RFC 9728 resource metadata, then RFC 8414 and OpenID Connect discovery. It must be under the same registrable domain as the JMAP host (for example jmap.example.com and auth.example.com); otherwise the bridge refuses the server.
Client registration with Stalwart. Nothing to do with the default settings: the bridge registers itself as a public client with PKCE, which Stalwart accepts anonymously (anonymousClientRegistration, on by default in Stalwart 0.16). Stalwart only issues confidential clients to authenticated callers, so the bridge does not get a client secret this way; PKCE protects the authorization code instead.
If the operator turned anonymous registration off, declare the client statically:
- In Stalwart, Management › Directory › OAuth Clients, create a client with the redirect URI
https://mcp.example.com/callback(and a secret if you want a confidential client). - Get the admin token of the bridge:
docker compose exec jmap-mcp /jmap-mcp admin-token(or `jmap-mcp admin-token --d