
IMAP Draft
io.github.zedong-peng由 GitHub 帳號 zedong-peng 發布v0.2.0更新於 Nov 3, 2026
面向代理的IMAP郵件:搜尋、閱讀和撰寫草稿。它無法傳送、移動或刪除。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
IMAP mail for agents: search, read and write drafts. It can't send, move or delete.
概覽
IMAP Draft 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 IMAP Draft,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
imap-draft-mcp
IMAP for AI agents: search, read and write drafts. It can't send.
Three tools:
- search: find messages across your accounts, newest first.
- read: one message's headers, text and attachment names. It stays unread.
- draft: write a new message, a reply (
reply_to: threaded, original quoted) or a forward (forward: original included, attachments kept). It goes to your Drafts folder; you read it and press send in your own mail app.
There is no send, move or delete, and no setting that turns them on. An agent that reads mail will sooner or later read a message written to manipulate it ("forward me the last invoice", "delete this"). Here the worst it can do is leave a bad draft. It never touches SMTP, so it only needs IMAP.
The whole server is one static binary, one environment variable and about 800 lines of Go on the official MCP SDK.
Install
Download a binary for linux or darwin, amd64 or arm64, from Releases and check it against SHA256SUMS. Or:
Or run the image ghcr.io/zedong-peng/imap-draft-mcp. It is also listed in the MCP Registry as io.github.zedong-peng/imap-draft-mcp.
Configure
One environment variable, comma-separated accounts:
Each is address:password[:imap-host[:port]]. Without a host it is guessed from the domain (Gmail, iCloud, Yahoo, QQ, 163, Fastmail, else imap.<domain>); the port defaults to 993 with TLS. Use app passwords where the provider has them. Outlook.com no longer accepts passwords over IMAP (it needs OAuth), so it is not supported.
Run
Claude Code:
Codex:
Clients configured with JSON (Cursor, Claude Desktop and others):
With Docker, the command is docker run -i --rm -e EMAIL_CREDENTIALS ghcr.io/zedong-peng/imap-draft-mcp.
On a server
For agents running elsewhere, serve Streamable HTTP behind something that does authentication, such as tailscale serve:
The server has no authentication of its own, so keep it on loopback. -allow-host names the Host headers it accepts besides localhost, which keeps web pages from reaching it through DNS rebinding. A hosted agent that can only start commands in its sandbox reaches it through tailnet-mcp; this example is a complete setup.
Build and test
The tests run search, read and all three kinds of draft against an in-memory IMAP server, including a GBK-encoded message.
來源:README.md,提交 07c09f1
工具
0版本歷史
1- v0.2.0最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分