imap-mcp
imap-mcp
IMAP 客户端 MCP。从 Dovecot / Synology MailPlus 邮箱读取邮件,并可在收到匹配的新邮件时触发 Webhook —— 用于替代脆弱的 Gmail OAuth 自动化触发器。
工具
工具 | 描述 |
| 未读邮件摘要 |
| 原始 IMAP 搜索 |
| 完整邮件(邮件头 + 文本 + HTML) |
| 设置 |
| 移动到其他文件夹 |
| 所有文件夹 |
| IMAP ping + 监控规则 + 触发次数 |
Related MCP server: @aiwerk/mcp-server-imap
环境变量
变量 | 必需 | 描述 |
| ✓ | 服务器(例如 |
| 默认 | |
|
| |
| ✓ | 群晖账户名,非电子邮件地址 |
| ✓ | |
| 默认 | |
| 监控规则的内联 JSON 数组 | |
| JSON 文件路径(默认 | |
| 默认 | |
| MCP 服务器端口(默认 |
监控规则
[
{
"name": "garmin-livetrack",
"mailbox": "INBOX",
"criteria": "FROM \"noreply@garmin.com\" SUBJECT \"LiveTrack\" UNSEEN",
"webhook_url": "http://host.docker.internal:5678/webhook/livetrack-mail",
"mark_read": true,
"move_to": null
}
]启动时,监控器会使用现有的匹配 UID 对每条规则进行“预处理”,因此只有启动后收到的新邮件才会触发。每隔 POLL_INTERVAL_SECS,它会重新运行每条规则的条件,并将匹配的邮件(完整正文)以 { "rule": "...", "mailbox": "...", "message": {...} } 的格式 POST 到 webhook_url。在成功 POST 后,它会将邮件移动到 move_to 指定的文件夹,或者如果设置了 mark_read,则将其标记为已读。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
Hosted MCP server for your Gmail, Outlook and IMAP mail, with mailboxes and scopes set per agent.
Hosted email MCP for your own Gmail, Outlook.com, Microsoft 365, iCloud or IMAP inbox: read, search, draft, reply in thread, forward and file mail. It moves or flags up to 500 messages in one call, and a send leaves exactly one copy in Sent. A calendar is a separate connection, and connecting one adds diary and scheduling tools.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI models to read, search, and send emails via IMAP and SMTP protocols. It supports various providers like Gmail and Outlook, allowing for tasks such as retrieving unread messages, searching by sender, and managing mailbox folders.-
- AlicenseBqualityCmaintenanceUniversal IMAP/SMTP MCP server that works with any email provider, providing tools to read, search, send, and manage emails.10242 npm1MIT
- AlicenseAqualityDmaintenanceMCP server that enables email management (send, read, search, delete, etc.) via IMAP/SMTP, compatible with Gmail, Outlook, Yahoo, iCloud, and other standard mail servers.1139 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for reading and sending emails via IMAP and SMTP, designed for Zimbra and any standard mail host.12 npm1ISC