IMAP mailbox MCP Server
Read, search and organise any IMAP mailbox, with writes off by default
IMAP mailbox scores 45 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 11 tools. Filed under Communication, AI and memory. GitHub shows 7 stars. Package registries report about 921 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
70/100 for listing completeness. Lost points: no README, short summary.
How quality is graded
Where the 45 comes from
0 + 20 + 8 + 10 + 4 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 8 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ni-c-imap-mcp": { "command": "npx", "args": [ "-y", "@ni-c/imap-mcp@0.9.0" ], "env": { "IMAP_HOST": "", "IMAP_USER": "", "IMAP_PASSWORD": "YOUR_IMAP_PASSWORD", "IMAP_PORT": "", "IMAP_TLS": "", "IMAP_MAILBOX": "", "IMAP_SEEN_KEYWORD": "", "IMAP_READ_ONLY": "", "IMAP_ALLOW_TOOLS": "", "IMAP_DENY_TOOLS": "", "IMAP_DOWNLOAD_DIR": "", "IMAP_INSECURE_TLS": "", "IMAP_DRAFTS_MAILBOX": "", "IMAP_MAX_MESSAGES": "", "IMAP_MAX_ATTACHMENT_BYTES": "", "IMAP_MAX_DOWNLOAD_BYTES": "", "IMAP_MAX_EXTRACT_BYTES": "", "IMAP_COMMAND_TIMEOUT_SECONDS": "", "IMAP_ATTACHMENT_TYPES": "", "IMAP_TRUSTED_AUTHSERV_ID": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
IMAP_HOST | Required | Hostname of the IMAP server, e.g. imap.example.net |
IMAP_USER | Required | Mailbox user name |
IMAP_PASSWORDSecret | Required | Mailbox password or app password |
IMAP_PORT | Optional | Defaults to 993 with implicit TLS, 143 otherwise |
IMAP_TLS | Optional | implicit (default), starttls or none |
IMAP_MAILBOX | Optional | Default mailbox to work in (default: INBOX) |
IMAP_SEEN_KEYWORD | Optional | IMAP keyword marking what the assistant has already seen (default: AiSeen) |
IMAP_READ_ONLY | Optional | Set to false to register the mailbox write tools; defaults to true |
IMAP_ALLOW_TOOLS | Optional | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
IMAP_DENY_TOOLS | Optional | Comma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left |
IMAP_DOWNLOAD_DIR | Optional | Directory attachments may be written to; unset means the server never touches the filesystem |
IMAP_INSECURE_TLS | Optional | Set to true to accept self-signed certificates, scoped to this connection |
IMAP_DRAFTS_MAILBOX | Optional | Drafts folder to save into; by default the one flagged \Drafts is used |
IMAP_MAX_MESSAGES | Optional | Default number of messages a listing returns (default: 100) |
IMAP_MAX_ATTACHMENT_BYTES | Optional | Ceiling for returning an attachment inline (default: 1048576) |
IMAP_MAX_DOWNLOAD_BYTES | Optional | Ceiling for writing an attachment to disk (default: 26214400) |
IMAP_MAX_EXTRACT_BYTES | Optional | Ceiling for reading a document's text with mode=text (default: 10485760, maximum: 67108864) |
IMAP_COMMAND_TIMEOUT_SECONDS | Optional | Seconds one IMAP command may take before the call is abandoned (default: 30, maximum: 600) |
IMAP_ATTACHMENT_TYPES | Optional | Comma-separated content-type allowlist for attachments |
IMAP_TRUSTED_AUTHSERV_ID | Optional | authserv-id your provider stamps into Authentication-Results; without it every verdict is reported as forgeable |
IMAP_HOST | Required | Hostname of the IMAP server, e.g. imap.example.net |
IMAP_USER | Required | Mailbox user name |
IMAP_PASSWORDSecret | Required | Mailbox password or app password |
IMAP_PORT | Optional | Defaults to 993 with implicit TLS, 143 otherwise |
IMAP_TLS | Optional | implicit (default), starttls or none |
IMAP_MAILBOX | Optional | Default mailbox to work in (default: INBOX) |
IMAP_SEEN_KEYWORD | Optional | IMAP keyword marking what the assistant has already seen (default: AiSeen) |
IMAP_READ_ONLY | Optional | Set to false to register the mailbox write tools; defaults to true |
IMAP_ALLOW_TOOLS | Optional | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
IMAP_DENY_TOOLS | Optional | Comma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left |
IMAP_DOWNLOAD_DIR | Optional | Directory attachments may be written to; unset means the server never touches the filesystem |
IMAP_INSECURE_TLS | Optional | Set to true to accept self-signed certificates, scoped to this connection |
IMAP_DRAFTS_MAILBOX | Optional | Drafts folder to save into; by default the one flagged \Drafts is used |
IMAP_MAX_MESSAGES | Optional | Default number of messages a listing returns (default: 100) |
IMAP_MAX_ATTACHMENT_BYTES | Optional | Ceiling for returning an attachment inline (default: 1048576) |
IMAP_MAX_DOWNLOAD_BYTES | Optional | Ceiling for writing an attachment to disk (default: 26214400) |
IMAP_MAX_EXTRACT_BYTES | Optional | Ceiling for reading a document's text with mode=text (default: 10485760, maximum: 67108864) |
IMAP_COMMAND_TIMEOUT_SECONDS | Optional | Seconds one IMAP command may take before the call is abandoned (default: 30, maximum: 600) |
IMAP_ATTACHMENT_TYPES | Optional | Comma-separated content-type allowlist for attachments |
IMAP_TRUSTED_AUTHSERV_ID | Optional | authserv-id your provider stamps into Authentication-Results; without it every verdict is reported as forgeable |
Tools11Tool docs quality grade D
All capabilitiesdelete_messagestool👤 asks the user, 🔒 where the client cannot
get_attachmentstoolWithout partid lists them, with partid reads, extracts or saves one
get_messagetoolHeaders and body, fenced untrusted, plus the security assessment; includethread
get_server_infotoolCapabilities, permanent flags, whether the keyword is storable, which tool groups are on
list_mailboxestoolEvery folder with message and unseen counts and its special-use role
list_messagestoolLists and searches: sender, recipient, subject, body, date range, flags, Gmail query
Messages not handed over yet; marks them afterwards, dryrun to preview
manage_mailboxtool👤 for delete, 🔒 for rename, none for create
move_messagestool👤 for both move and copy, 🔒 where the client cannot
save_drafttoolnone — a draft does not leave the mailbox
none — flags are reversible, and \Deleted is refused
About
MCP server for IMAP mailboxes: read, search, organise and draft mail — it deliberately cannot send
Frequently asked questions
What is IMAP mailbox MCP Server?
Read, search and organise any IMAP mailbox, with writes off by default
How do I install IMAP mailbox MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. IMAP mailbox MCP Server runs locally from the npm package @ni-c/imap-mcp with the command npx -y @ni-c/imap-mcp@0.9.0.
Is IMAP mailbox MCP Server free and open source?
Yes. IMAP mailbox MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does IMAP mailbox MCP Server support remote (HTTP) connections?
No remote endpoint is listed for IMAP mailbox MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does IMAP mailbox MCP Server provide?
IMAP mailbox MCP Server provides 11 tools, including delete_messages, get_attachments, get_message, and get_server_info. See the full tool list for descriptions and parameters.
How is IMAP mailbox MCP Server's trust score calculated?
IMAP mailbox MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.