IMAP mailbox
Read, search and organise any IMAP mailbox, with writes off by default
Connector by ni-c · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/ni-c-imap-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 5 read · 2 write · 4 delete
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 11
Read from the source code; the running server may list different tools.
Read 5 · Look things up without changing anything.
get_attachmentsget_messageget_server_infolist_mailboxeslist_messages
Write 2 · Create, change, send or run things.
list_new_messagessave_draft
Delete 4 · Delete, drop, revoke or wipe things.
delete_messagesmanage_mailboxmove_messagesset_message_flags
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
IMAP_PASSWORD
Other settings (environment variables or headers).
IMAP_ALLOW_TOOLSIMAP_ATTACHMENT_TYPESIMAP_DENY_TOOLSIMAP_DOWNLOAD_DIRIMAP_DRAFTS_MAILBOXIMAP_HOSTIMAP_INSECURE_TLSIMAP_MAILBOXIMAP_MAX_ATTACHMENT_BYTESIMAP_MAX_DOWNLOAD_BYTESIMAP_MAX_EXTRACT_BYTESIMAP_MAX_MESSAGES
Show 6 more settings
IMAP_PORTIMAP_READ_ONLYIMAP_SEEN_KEYWORDIMAP_TLSIMAP_TRUSTED_AUTHSERV_IDIMAP_USER
Network hosts it talks to 4
github.com· found in codeglama.ai· found in codeimap-mcp.ni-c.de· found in coderaw.githubusercontent.com· found in code
Tools (11)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
delete_messagesDelete messagescan change or delete dataPermanently deletes messages: sets \Deleted and expunges them. On most servers this does not go to Trash — move them there instead if that is what is meant. Asks the user to confirm; where the client cannot show a prompt, it falls back to a two-call token.
get_attachmentsList, read or download attachmentsWithout part_id: lists the attachments of a message with their type, size, whether the policy allows fetching them and whether their text can be read. With part_id: returns that one attachment. Small text and images come back inline so you can read them; a PDF, Word, Excel, PowerPoint or OpenDocument file can be read as text with mode="text", which is the only way to read a document without access to this server's filesystem; anything else is written to the download directory, if one is configured, and you get the path. part_id must come from a listing call of this same tool. Executables are r…
get_messageGet one messageread-onlyFetches one message by UID and returns its headers and text body, fenced as untrusted content, together with a server-side security assessment (SPF/DKIM/DMARC verdicts, prompt-injection and homoglyph signals) and the list of its attachments. Does not change the read state. Set include_thread to also list the surrounding conversation.
get_server_infoServer and account informationread-onlyReports what this account and server can do: the configured mailbox, IMAP capabilities, which flags the mailbox stores permanently, whether the new-mail keyword can be used, and which tool groups are enabled. Start here when a call fails for reasons that sound like configuration.
list_mailboxesList mailboxesread-onlyLists every folder in the account with its message and unseen counts, its special-use role (drafts, sent, trash, junk) and whether it can hold messages. Use the returned "path" verbatim wherever a tool takes a mailbox.
list_messagesList and search messagesread-onlyLists messages newest first, optionally narrowed by sender, recipient, subject, body text, date range or flags. With no criteria it simply pages through the mailbox. Every filter is applied by the mail server, so searching a large folder is cheap. Returns summaries only — use get_message for the body.
list_new_messagesList messages not seen beforeDescription is built at runtime.
manage_mailboxCreate, rename or delete a mailboxcan change or delete dataCreates a folder, renames one, or deletes one. Deleting asks the user to confirm and takes every message in the folder with it; renaming uses the two-call token because it is reversible.
move_messagesMove or copy messagescan change or delete dataMoves messages to another mailbox, or copies them when mode is "copy". Both ask the user to confirm; where the client cannot show a prompt, they fall back to a two-call token — call once to receive it, then again with that token and the same UID list and destination.
save_draftSave a draftComposes a plain-text message and stores it in the Drafts folder. This server cannot send mail — the draft waits in the mailbox until a person opens it in their own mail client and sends it from there. That is deliberate: it keeps the composing useful while leaving the decision to send with a human.
set_message_flagsAdd or remove message flagsAdds or removes IMAP flags and keywords on one or more messages: \Seen to mark read or unread, \Flagged to star, \Answered, \Draft, or any custom keyword the server accepts. Reversible, so no confirmation is required — which is why \Deleted cannot be added here; use delete_messages, which asks first. Removing \Deleted is allowed, since that undoes one. Removing the new-mail keyword makes those messages show up in list_new_messages again.
Signals
- Stars
- 3
- Forks
- 5
- Open issues
- 0
- Weekly downloads
- 211
- Last commit
- Oct 22, 2026 (6 days ago)
- Last release
- Oct 19, 2026 (9 days ago)
- Last package publish
- Oct 19, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.ni-c/imap-mcp- Version
- 0.5.3
- Auth
- API key
- Packages
- npm @ni-c/imap-mcpoci
ghcr.io/ni-c/imap-mcp:0.5.3 - License
- MIT
- Repository
- github.com/ni-c/imap-mcp
- Website
- imap-mcp.ni-c.de
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from ni-c
- 0.630score
OpenStreetMap
ni-c
Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM
ConnectorAFreshness: ALocalRead-only★ 4Claude Code +5 - 0.625score
mcp-hub
ni-c
Many stdio MCP servers from one container, published over HTTPS with OAuth 2.1 for any MCP client
ConnectorAFreshness: ARemoteLocal★ 3↓ 67/wkClaude Code +5 - 0.623score
CalDAV calendars
ni-c
Read and write CalDAV calendars: events, tasks and journal entries over the open standard
ConnectorAFreshness: ALocal★ 1↓ 138/wkClaude Code +5 - 0.618score

CardDAV address books
ni-c
Read and write CardDAV address books: contacts, groups and photos over the open standard
ConnectorAFreshness: ALocal↓ 200/wkClaude Code +5 - 0.615score
Wiki.js
ni-c
Search, read and edit Wiki.js pages, and manage its assets, users, groups and comments
ConnectorAFreshness: ALocal★ 3↓ 43/wkClaude Code +5 - 0.607score
Audiobookshelf
ni-c
Browse your Audiobookshelf libraries and keep listening progress, bookmarks and playlists in sync
ConnectorAFreshness: ALocal★ 1Claude Code +5
Cite this page
IMAP mailbox MCP server. Agent Mart. https://agentmart.dev/connectors/ni-c-imap-mcp (last updated 2026-10-24)