MCP server for IMAP mailboxes: read, search, organise and draft mail — it deliberately cannot send
概览
A Model Context Protocol (MCP) server for any IMAP mailbox. It speaks IMAP rather than one vendor's API, so it works with whatever provider you already have. Lets MCP clients like Claude Code, Claude Desktop or Codex read and search your mail, organise it into folders, save attachments and draft replies — with every message fenced as untrusted content, and the write tools off unless you turn them on. Eleven tools, not fifty: a mail account is a workflow, not an API surface, so related operations are folded into one tool with a mode rather than split across many. And eleven is the ceiling, not the floor — IMAP_ALLOW_TOOLS=essential registers a curated six instead, and under the read-only default that narrows to four. See choosing which tools load.
README
以下为原文 README 节选,完整内容请查看原文。
imap-mcp
A Model Context Protocol (MCP) server for any IMAP mailbox. It speaks IMAP rather than one vendor’s API, so it works with whatever provider you already have.
Lets MCP clients like Claude Code, Claude Desktop or Codex read and search your mail, organise it into folders, save attachments and draft replies — with every message fenced as untrusted content, and the write tools off unless you turn them on.
Eleven tools, not fifty: a mail account is a workflow, not an API surface, so related
operations are folded into one tool with a mode rather than split across many. And eleven is
the ceiling, not the floor — IMAP_ALLOW_TOOLS=essential registers a curated six instead, and
under the read-only default that narrows to four. See
choosing which tools load.
安装
npx -y @ni-c/imap-mcp配置
{
"mcpServers": {
"imap-mcp": {
"command": "npx",
"args": ["-y", "@ni-c/imap-mcp"],
"env": {
"IMAP_HOST": "imap.example.net",
"IMAP_USER": "[email protected]",
"IMAP_PASSWORD": "…"
}
}
}
}