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,则将其标记为已读。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
MCP server for e-mail testing: create disposable inboxes, wait for delivery, and extract e-mail content or links - all from your AI agent or test automation workflow. Get a free API key on https://app.zyntra.app/
MCP server for MailTempo's public free temporary email inboxes.
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.101161MIT
- AlicenseAqualityBmaintenanceMCP server that enables email management (send, read, search, delete, etc.) via IMAP/SMTP, compatible with Gmail, Outlook, Yahoo, iCloud, and other standard mail servers.11MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for reading and sending emails via IMAP and SMTP, designed for Zimbra and any standard mail host.241ISC