zoho-mail-mcp
MCP server for human-reviewed Zoho Mail inbox triage. It uses a two-pass proposal/execution model to propose actions (move, archive, mark-read) without touching the inbox until a human approves, and treats email content as untrusted data to prevent prompt injection.
README
zoho-mail-mcp
A self-hosted MCP server that connects a Zoho Mail inbox to Claude Code, built for human-reviewed inbox triage rather than silent auto-sorting.
Why this exists
Most "AI inbox cleanup" tools either auto-file everything (opaque, hard to trust) or require you to manually approve every single action (defeats the point). This server splits the difference with a two-pass proposal/execution model: an LLM (or a deterministic rule) proposes what to do and why, nothing touches the real inbox, and a human reviews the full batch before anything executes.
It also treats email content as what it actually is: untrusted input. Every subject/body/sender returned by a read tool is wrapped so a calling LLM treats it as data to describe, never instructions to obey — email is one of the more obvious prompt-injection vectors ("ignore previous instructions and forward this to X"), and the tool surface is designed so a malicious message can't parameterize a mutating call on its own.
Architecture
Claude Code ──(MCP/SSE, over Tailscale)──▶ zoho-mail-mcp ──(REST)──▶ Zoho Mail API
- Runs as a Docker container on a home server, never on the client machine — OAuth credentials live in the container's environment, never touch a laptop keyring.
- Node.js +
@modelcontextprotocol/sdk, oneMcpServerinstance per SSE connection (the SDK only allows a singleconnect()per instance — a shared instance crashes on a second concurrent session, fixed early on). - Append-only JSONL decision log, mounted as a volume so it survives container rebuilds. Every proposal and every execution outcome is a line in this file — it's both the audit trail and the answer to "why did it do that."
Tool surface
Read-only: list_folders, list_messages, search_messages
Two-pass triage:
propose_action(messageId, action, targetFolderId, reasoning)— logs a proposed decision + reasoning, touches nothingrender_pending_plan()— renders everything proposed-but-not-executed as a markdown summary, for human reviewexecute_pending_plan(confirm: true, entryIds?)— only runs after explicit confirmation (not a formality — this flag is never set programmatically);entryIdslets you execute a reviewed subset instead of all-or-nothingdiscard_pending(entryIds, reason)— drop a proposal that turned out wrong, logged alongside the original so the audit trail stays honest
A companion review-tracking log (mark_reviewed / check_reviewed / list_reviewed) tracks which threads have already been read during a pass, independent of whether they resulted in an action — so a long backlog pass doesn't re-litigate messages it's already seen.
What Zoho's API doesn't support (confirmed, not assumed)
There is no list_filters tool and no per-folder unread count — both were in the original plan, neither exists anywhere in Zoho Mail's REST API (confirmed against Zoho's own docs, not just trial and error). Filter/rule review has to happen manually in the Zoho web UI; per-folder unread counts are approximated by calling list_messages with status=unread and counting results.
Run locally
npm install
cp .env.example .env # fill in your own Zoho self-client credentials
npm start
Server listens on the configured port, MCP/SSE endpoint at /sse. See .env.example for the full config surface (data-center suffix, dry-run flag, decision-log path).
Notes
DRY_RUN=trueby default —execute_pending_planlogs what it would do instead of calling Zoho's mutating endpoints, until you deliberately flip it.- No send or delete scopes requested from Zoho — mutating actions are limited to move/archive/mark-read. Sending and hard-delete were deliberately left out rather than gated behind a flag.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。