IMAP mailbox
io.github.ni-c/imap-mcp
v0.8.0Updated Nov 24, 2026stdio · npmstdio · Docker
Read, search and organise any IMAP mailbox, with writes off by default
Install
Needs 1 secret. Replace 3 placeholders with your own values.
Run in your terminal. Replace 3 placeholders.
claude mcp add imap-mcp -e 'IMAP_HOST=<your-imap-host>' -e 'IMAP_USER=<your-imap-user>' -e 'IMAP_PASSWORD=<your-imap-password>' -- npx -y @ni-c/[email protected]Configuration
20 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
IMAP_PASSWORDEnv var· required· secretMailbox password or app passwordIMAP_HOSTEnv var· requiredHostname of the IMAP server, e.g. imap.example.netIMAP_USEREnv var· requiredMailbox user nameIMAP_PORTEnv var· optionalDefaults to 993 with implicit TLS, 143 otherwiseIMAP_TLSEnv var· optionalimplicit (default), starttls or noneIMAP_MAILBOXEnv var· optionalDefault mailbox to work in (default: INBOX)
Show 14 moreShow fewer
IMAP_SEEN_KEYWORDEnv var· optionalIMAP keyword marking what the assistant has already seen (default: AiSeen)IMAP_READ_ONLYEnv var· optionalSet to false to register the mailbox write tools; defaults to trueIMAP_ALLOW_TOOLSEnv var· optionalComma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)IMAP_DENY_TOOLSEnv var· optionalComma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS leftIMAP_DOWNLOAD_DIREnv var· optionalDirectory attachments may be written to; unset means the server never touches the filesystemIMAP_INSECURE_TLSEnv var· optionalSet to true to accept self-signed certificates, scoped to this connectionIMAP_DRAFTS_MAILBOXEnv var· optionalDrafts folder to save into; by default the one flagged \Drafts is usedIMAP_MAX_MESSAGESEnv var· optionalDefault number of messages a listing returns (default: 100)IMAP_MAX_ATTACHMENT_BYTESEnv var· optionalCeiling for returning an attachment inline (default: 1048576)IMAP_MAX_DOWNLOAD_BYTESEnv var· optionalCeiling for writing an attachment to disk (default: 26214400)IMAP_MAX_EXTRACT_BYTESEnv var· optionalCeiling for reading a document's text with mode=text (default: 10485760, maximum: 67108864)IMAP_COMMAND_TIMEOUT_SECONDSEnv var· optionalSeconds one IMAP command may take before the call is abandoned (default: 30, maximum: 600)IMAP_ATTACHMENT_TYPESEnv var· optionalComma-separated content-type allowlist for attachmentsIMAP_TRUSTED_AUTHSERV_IDEnv var· optionalauthserv-id your provider stamps into Authentication-Results; without it every verdict is reported as forgeable
Links
Listed in the official MCP Registry since Nov 24, 2026. Mirrored daily; last checked Nov 26, 2026.