IMAP mailbox
by github.com/ni-c · v0.8.0 · updated Nov 24, 2026
Read, search and organise any IMAP mailbox, with writes off by default
Run it locally
Install the package and point your AI client at it.
npm
npx -y @ni-c/[email protected]Environment variables
IMAP_HOSTrequiredHostname of the IMAP server, e.g. imap.example.net
IMAP_USERrequiredMailbox user name
IMAP_PASSWORDrequiredsecretMailbox password or app password
IMAP_PORTDefaults to 993 with implicit TLS, 143 otherwise
IMAP_TLSimplicit (default), starttls or none
IMAP_MAILBOXDefault mailbox to work in (default: INBOX)
IMAP_SEEN_KEYWORDIMAP keyword marking what the assistant has already seen (default: AiSeen)
IMAP_READ_ONLYSet to false to register the mailbox write tools; defaults to true
IMAP_ALLOW_TOOLSComma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
IMAP_DENY_TOOLSComma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left
IMAP_DOWNLOAD_DIRDirectory attachments may be written to; unset means the server never touches the filesystem
IMAP_INSECURE_TLSSet to true to accept self-signed certificates, scoped to this connection
IMAP_DRAFTS_MAILBOXDrafts folder to save into; by default the one flagged \Drafts is used
IMAP_MAX_MESSAGESDefault number of messages a listing returns (default: 100)
IMAP_MAX_ATTACHMENT_BYTESCeiling for returning an attachment inline (default: 1048576)
IMAP_MAX_DOWNLOAD_BYTESCeiling for writing an attachment to disk (default: 26214400)
IMAP_MAX_EXTRACT_BYTESCeiling for reading a document's text with mode=text (default: 10485760, maximum: 67108864)
IMAP_COMMAND_TIMEOUT_SECONDSSeconds one IMAP command may take before the call is abandoned (default: 30, maximum: 600)
IMAP_ATTACHMENT_TYPESComma-separated content-type allowlist for attachments
IMAP_TRUSTED_AUTHSERV_IDauthserv-id your provider stamps into Authentication-Results; without it every verdict is reported as forgeable
Docker
docker run -i --rm ghcr.io/ni-c/imap-mcp:0.8.0Environment variables
IMAP_HOSTrequiredHostname of the IMAP server, e.g. imap.example.net
IMAP_USERrequiredMailbox user name
IMAP_PASSWORDrequiredsecretMailbox password or app password
IMAP_PORTDefaults to 993 with implicit TLS, 143 otherwise
IMAP_TLSimplicit (default), starttls or none
IMAP_MAILBOXDefault mailbox to work in (default: INBOX)
IMAP_SEEN_KEYWORDIMAP keyword marking what the assistant has already seen (default: AiSeen)
IMAP_READ_ONLYSet to false to register the mailbox write tools; defaults to true
IMAP_ALLOW_TOOLSComma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
IMAP_DENY_TOOLSComma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left
IMAP_DOWNLOAD_DIRDirectory attachments may be written to; unset means the server never touches the filesystem
IMAP_INSECURE_TLSSet to true to accept self-signed certificates, scoped to this connection
IMAP_DRAFTS_MAILBOXDrafts folder to save into; by default the one flagged \Drafts is used
IMAP_MAX_MESSAGESDefault number of messages a listing returns (default: 100)
IMAP_MAX_ATTACHMENT_BYTESCeiling for returning an attachment inline (default: 1048576)
IMAP_MAX_DOWNLOAD_BYTESCeiling for writing an attachment to disk (default: 26214400)
IMAP_MAX_EXTRACT_BYTESCeiling for reading a document's text with mode=text (default: 10485760, maximum: 67108864)
IMAP_COMMAND_TIMEOUT_SECONDSSeconds one IMAP command may take before the call is abandoned (default: 30, maximum: 600)
IMAP_ATTACHMENT_TYPESComma-separated content-type allowlist for attachments
IMAP_TRUSTED_AUTHSERV_IDauthserv-id your provider stamps into Authentication-Results; without it every verdict is reported as forgeable
More from github.com/ni-c
SMTP
github.com/ni-c
MCP server that sends mail over SMTP, gated behind an allowlist and a human confirmation
CalDAV calendars
github.com/ni-c
Read and write CalDAV calendars: events, tasks and journal entries over the open standard
mcp-hub
github.com/ni-c
Many stdio MCP servers from one container, published over HTTPS with OAuth 2.1 for any MCP client
CardDAV address books
github.com/ni-c
Read and write CardDAV address books: contacts, groups and photos over the open standard
Woodpecker CI
github.com/ni-c
Read Woodpecker CI repositories, pipelines and logs, and drive builds, secrets and crons
OpenStreetMap
github.com/ni-c
Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM
More MCP servers
Yugalinks Commerce Intelligence
github.com/nibinglobal
Read-only OECD trade research for countries, products, corridors, lane risk, and opportunities.
Noc Mcpserver
github.com/nice-one-code
MCP server exposing NiceOneCode's JSON-to-C# converter as an AI-callable tool.
Nicelydone
github.com/nicelydoneapp
Search real web app screens, UI elements, and user flows. Requires Premium access and OAuth.
NiceNIC MCP
github.com/nicenic-official
Check domain availability and prices, register and renew domains, and manage DNS through NiceNIC.
Commutescout
github.com/nicglazkov
Trip planning and best time to leave, with live road data from 37 US states, traffic, weather.
Gnosis MCP
github.com/nicholasglazer
Zero-config MCP server for searchable documentation. SQLite or PostgreSQL.