NC

ni-c/imap-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

4 stars 8 forks 质量 83 趋势 32MIT

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.

在 GitHub 查看完整 README

安装

npx -y @ni-c/imap-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "imap-mcp": { "command": "npx", "args": ["-y", "@ni-c/imap-mcp"], "env": { "IMAP_HOST": "imap.example.net", "IMAP_USER": "[email protected]", "IMAP_PASSWORD": "…" } } } }