
一个轻量级的MCP服务器,用于读取IMAP电子邮件并创建回复草稿. 为质子迈尔桥所建.
概览
一个轻量级的MCP(模式上下文协议)服务器,用于阅读IMAP电子邮件并创建回复草稿. 与任何标准的IMAP服务器(Gmail,Outlook,Fastmail等)以及质子Mail桥等本地桥梁一起工作. 代理可以阅读,搜索,移动,明星,组织电子邮件,并作稿——但不能发送或删除电子邮件. 最近增加的功能见ChangGELOG.md. 我强烈建议使用语音到文本工具(例如:Mac上的"SuperWhisper"或Whisperflow上"Windows"),并将你的AI桌面应用程序(Claude,Codex等)连接到这个MCP服务器. 这样您就可以用语音与您的电子邮件收件箱交谈, 这将大大地加快您的工作流程 。 添加到您的 MCP 客户端配置( 如 Claude desktop config.json) : args路径必须指向已建 Dist/index.js. 根据需要将任意可选变量添加到嵌入块中. 对于大多数提供者(Gmail, Outlook, Fastmail)来说,默认工作——只是设置了主机,用户和密码.
概述(AI 翻译)
一个轻量级的MCP(模式上下文协议)服务器,用于阅读IMAP电子邮件并创建回复草稿. 与任何标准的IMAP服务器(Gmail,Outlook,Fastmail等)以及质子Mail桥等本地桥梁一起工作.
代理可以阅读,搜索,移动,明星,组织电子邮件,并作稿——但不能发送或删除电子邮件.
□ 工作流程建议
我强烈建议使用语音到文本工具(例如:Mac上的"SuperWhisper"或Whisperflow上"Windows"),并将你的AI桌面应用程序(Claude,Codex等)连接到这个MCP服务器. 这样您就可以用语音与您的电子邮件收件箱交谈, 这将大大地加快您的工作流程 。
∮如何使用∮
XQ 代理配置
添加到您的 MCP 客户端配置( 如 [ [T0]] ) 中 :
[T1]路径必须指向已建 [T2]. 根据需要将任何可选变量添加到 [[T3] 块中。
环境变量
·变量 · 要求 · 默认 · · 说明 |. QQ[ [T4]] QQ是 — IMAP 服务器主机名( 如 [ [T5]]) QQ
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
IMAP Mini MCP
A lightweight MCP (Model Context Protocol) server for reading IMAP email and creating draft replies. Works with any standard IMAP server (Gmail, Outlook, Fastmail, etc.) and local bridges like ProtonMail Bridge.
Agents can read, search, move, star, and organize emails, and compose drafts — but cannot send or delete emails.
See CHANGELOG.md for recently added features.
Workflow Recommendation
I highly recommend using a speech-to-text tool (e.g. SuperWhisper on Mac or Whisperflow on Windows) and connecting your AI desktop application (Claude, Codex, etc.) to this MCP server. That way you can converse with your email inbox using speech, which will dramatically speed up your workflow.
How to Use
Agent configuration
Add to your MCP client config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"imap-mini-mcp": {
"command": "node",
"args": ["/path/to/imap-mini-mcp/dist/index.js"],
"env": {
"IMAP_HOST": "imap.example.com",
"IMAP_USER": "[email protected]",
"IMAP_PASS": "your-password"
}
}
}
}
The args path must point to the built dist/index.js. Add any optional variables to the env block as needed.
Environment variables
| Variable | Required | Default | Description |
|---|---|---|---|
IMAP_HOST |
yes | — | IMAP server hostname (e.g. imap.gmail.com) |
IMAP_USER |
yes | — | Email address or username |
IMAP_PASS |
yes | — | Password or app-specific password |
IMAP_PORT |
no | 993 |
IMAP server port |
IMAP_SECURE |
no | true |
Use TLS for the connection |
IMAP_STARTTLS |
no | true |
Upgrade to TLS via STARTTLS (when IMAP_SECURE=false) |
IMAP_TLS_REJECT_UNAUTHORIZED |
no | true |
Reject self-signed TLS certificates |
For most providers (Gmail, Outlook, Fastmail), the defaults work — just set host, user, and password.
For ProtonMail Bridge — all five settings below are required (the bridge listens on localhost without TLS, uses a self-signed certificate, and does not support STARTTLS):
IMAP_HOST=127.0.0.1
IMAP_PORT=1143
IMAP_SECURE=false
IMAP_STARTTLS=false
IMAP_TLS_REJECT_UNAUTHORIZED=false
Or as MCP client config:
{
"mcpServers": {
"imap-mini-mcp": {
"command": "node",
"args": ["/path/to/imap-mini-mcp/dist/index.js"],
"env": {
"IMAP_HOST": "127.0.0.1",
"IMAP_PORT": "1143",
"IMAP_SECURE": "false",
"IMAP_STARTTLS": "false",
"IMAP_TLS_REJECT_UNAUTHORIZED": "false",
"IMAP_USER": "[email protected]",
"IMAP_PASS": "your-bridge-password"
}
}
}
}
Tools
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"imap-mini-mcp": {
"command": "node",
"args": ["/path/to/imap-mini-mcp/dist/index.js"],
"env": {
"IMAP_HOST": "imap.example.com",
"IMAP_USER": "[email protected]",
"IMAP_PASS": "your-password"
}
}
}
}