imap-mcp
Provides IMAP client capabilities for Dovecot mail servers, enabling reading mail, searching messages, managing folders, and automating email processing through watch rules and webhooks.
Enables automation triggers for Garmin LiveTrack emails through IMAP watch rules, allowing automatic webhook firing when new Garmin LiveTrack emails arrive in the mailbox.
Provides an alternative to fragile Gmail OAuth for automation triggers by using IMAP to read mail and fire webhooks when new matching messages arrive from Gmail accounts.
Supports reading mail from Synology MailPlus mailboxes via IMAP, with specific configuration for Synology account names and integration with Synology's email infrastructure.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
imap-mcp
IMAP client MCP. Read mail from a Dovecot / Synology MailPlus mailbox, and optionally fire webhooks when new matching messages arrive — replaces fragile Gmail OAuth for automation triggers.
Tools
Tool | Description |
| Unread message summaries |
| Raw IMAP SEARCH |
| Full message (headers + text + html) |
| Set |
| Move to another folder |
| All folders |
| IMAP ping + watcher rules + fire count |
Related MCP server: @aiwerk/mcp-server-imap
Environment
Variable | Required | Description |
| ✓ | Server (e.g. |
| Default | |
|
| |
| ✓ | Synology account name, not email |
| ✓ | |
| Default | |
| Inline JSON array of watch rules | |
| Path to JSON file (default | |
| Default | |
| MCP server port (default |
Watch rules
[
{
"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
}
]On startup the watcher "primes" each rule with existing matching UIDs, so
only new mail after boot fires. Every POLL_INTERVAL_SECS it re-runs
each rule's criteria and POSTs matching messages (full body) to webhook_url
as { "rule": "...", "mailbox": "...", "message": {...} }. After a
successful POST it either moves the message to move_to, or marks it read
if mark_read.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
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.11MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for reading and sending emails via IMAP and SMTP, designed for Zimbra and any standard mail host.9 npm1ISC