Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

IMAP mailbox

by ni-cversion 0.7.0i★ –iRuns on your computer
Registry nameio.github.ni-c/imap-mcp

Install

Overview

Description from the maker (original English)

Read, search and organise any IMAP mailbox, with writes off by default

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Search & AI memory
  • You need to fill in: IMAP_HOST, IMAP_USER, IMAP_PASSWORD

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: IMAP_HOST, IMAP_USER, 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

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "imap": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "your-value",
        "IMAP_USER": "your-value",
        "IMAP_PASSWORD": "your-value",
        "IMAP_PORT": "your-value",
        "IMAP_TLS": "your-value",
        "IMAP_MAILBOX": "your-value",
        "IMAP_SEEN_KEYWORD": "your-value",
        "IMAP_READ_ONLY": "your-value",
        "IMAP_ALLOW_TOOLS": "your-value",
        "IMAP_DENY_TOOLS": "your-value",
        "IMAP_DOWNLOAD_DIR": "your-value",
        "IMAP_INSECURE_TLS": "your-value",
        "IMAP_DRAFTS_MAILBOX": "your-value",
        "IMAP_MAX_MESSAGES": "your-value",
        "IMAP_MAX_ATTACHMENT_BYTES": "your-value",
        "IMAP_MAX_DOWNLOAD_BYTES": "your-value",
        "IMAP_MAX_EXTRACT_BYTES": "your-value",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "your-value",
        "IMAP_ATTACHMENT_TYPES": "your-value",
        "IMAP_TRUSTED_AUTHSERV_ID": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add imap --env IMAP_HOST=your-value --env IMAP_USER=your-value --env IMAP_PASSWORD=your-value --env IMAP_PORT=your-value --env IMAP_TLS=your-value --env IMAP_MAILBOX=your-value --env IMAP_SEEN_KEYWORD=your-value --env IMAP_READ_ONLY=your-value --env IMAP_ALLOW_TOOLS=your-value --env IMAP_DENY_TOOLS=your-value --env IMAP_DOWNLOAD_DIR=your-value --env IMAP_INSECURE_TLS=your-value --env IMAP_DRAFTS_MAILBOX=your-value --env IMAP_MAX_MESSAGES=your-value --env IMAP_MAX_ATTACHMENT_BYTES=your-value --env IMAP_MAX_DOWNLOAD_BYTES=your-value --env IMAP_MAX_EXTRACT_BYTES=your-value --env IMAP_COMMAND_TIMEOUT_SECONDS=your-value --env IMAP_ATTACHMENT_TYPES=your-value --env IMAP_TRUSTED_AUTHSERV_ID=your-value -- npx -y @ni-c/imap-mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "imap": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "your-value",
        "IMAP_USER": "your-value",
        "IMAP_PASSWORD": "your-value",
        "IMAP_PORT": "your-value",
        "IMAP_TLS": "your-value",
        "IMAP_MAILBOX": "your-value",
        "IMAP_SEEN_KEYWORD": "your-value",
        "IMAP_READ_ONLY": "your-value",
        "IMAP_ALLOW_TOOLS": "your-value",
        "IMAP_DENY_TOOLS": "your-value",
        "IMAP_DOWNLOAD_DIR": "your-value",
        "IMAP_INSECURE_TLS": "your-value",
        "IMAP_DRAFTS_MAILBOX": "your-value",
        "IMAP_MAX_MESSAGES": "your-value",
        "IMAP_MAX_ATTACHMENT_BYTES": "your-value",
        "IMAP_MAX_DOWNLOAD_BYTES": "your-value",
        "IMAP_MAX_EXTRACT_BYTES": "your-value",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "your-value",
        "IMAP_ATTACHMENT_TYPES": "your-value",
        "IMAP_TRUSTED_AUTHSERV_ID": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "imap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "your-value",
        "IMAP_USER": "your-value",
        "IMAP_PASSWORD": "your-value",
        "IMAP_PORT": "your-value",
        "IMAP_TLS": "your-value",
        "IMAP_MAILBOX": "your-value",
        "IMAP_SEEN_KEYWORD": "your-value",
        "IMAP_READ_ONLY": "your-value",
        "IMAP_ALLOW_TOOLS": "your-value",
        "IMAP_DENY_TOOLS": "your-value",
        "IMAP_DOWNLOAD_DIR": "your-value",
        "IMAP_INSECURE_TLS": "your-value",
        "IMAP_DRAFTS_MAILBOX": "your-value",
        "IMAP_MAX_MESSAGES": "your-value",
        "IMAP_MAX_ATTACHMENT_BYTES": "your-value",
        "IMAP_MAX_DOWNLOAD_BYTES": "your-value",
        "IMAP_MAX_EXTRACT_BYTES": "your-value",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "your-value",
        "IMAP_ATTACHMENT_TYPES": "your-value",
        "IMAP_TRUSTED_AUTHSERV_ID": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • IMAP_HOST required env
    Hostname of the IMAP server, e.g. imap.example.net
  • IMAP_USER required env
    Mailbox user name
  • IMAP_PASSWORD secret required env
    Mailbox password or app password
  • IMAP_PORT env
    Defaults to 993 with implicit TLS, 143 otherwise
  • IMAP_TLS env
    implicit (default), starttls or none
  • IMAP_MAILBOX env
    Default mailbox to work in (default: INBOX)
  • IMAP_SEEN_KEYWORD env
    IMAP keyword marking what the assistant has already seen (default: AiSeen)
  • IMAP_READ_ONLY env
    Set to false to register the mailbox write tools; defaults to true
  • IMAP_ALLOW_TOOLS env
    Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
  • IMAP_DENY_TOOLS env
    Comma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left
  • IMAP_DOWNLOAD_DIR env
    Directory attachments may be written to; unset means the server never touches the filesystem
  • IMAP_INSECURE_TLS env
    Set to true to accept self-signed certificates, scoped to this connection
  • IMAP_DRAFTS_MAILBOX env
    Drafts folder to save into; by default the one flagged \Drafts is used
  • IMAP_MAX_MESSAGES env
    Default number of messages a listing returns (default: 100)
  • IMAP_MAX_ATTACHMENT_BYTES env
    Ceiling for returning an attachment inline (default: 1048576)
  • IMAP_MAX_DOWNLOAD_BYTES env
    Ceiling for writing an attachment to disk (default: 26214400)
  • IMAP_MAX_EXTRACT_BYTES env
    Ceiling for reading a document's text with mode=text (default: 10485760, maximum: 67108864)
  • IMAP_COMMAND_TIMEOUT_SECONDS env
    Seconds one IMAP command may take before the call is abandoned (default: 30, maximum: 600)
  • IMAP_ATTACHMENT_TYPES env
    Comma-separated content-type allowlist for attachments
  • IMAP_TRUSTED_AUTHSERV_ID env
    authserv-id your provider stamps into Authentication-Results; without it every verdict is reported as forgeable

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account ni-c, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 5678 servers in this category
  • Published to the registry more recently than 91% of the other 5678 servers in this category
  • Basic checks equal to or better than 100% of the other 5678 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is IMAP mailbox safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: IMAP_HOST, IMAP_USER, IMAP_PASSWORD

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.7.0) reached the registry 3 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js, Docker on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Exa

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

by upstash

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

Computer or cloud★ 64,224MITUpdated yesterday
Install

Codebase Memory

by DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

Runs on your computer★ 48,148MITUpdated 21 days ago
Install

Exa

by exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

Runs in the cloud★ 5,213MITUpdated 2 months ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

imap-mcp

A Model Context Protocol (MCP) server for any IMAP mailbox. It speaks IMAP rather than one vendor's API, so it works with whatever provider you already have.

Lets MCP clients like Claude Code, Claude Desktop or Codex read and search your mail, organise it into folders, save attachments and draft replies — with every message fenced as untrusted content, and the write tools off unless you turn them on.

Eleven tools, not fifty: a mail account is a workflow, not an API surface, so related operations are folded into one tool with a mode rather than split across many. And eleven is the ceiling, not the floor — IMAP_ALLOW_TOOLS=essential registers a curated six instead, and under the read-only default that narrows to four. See choosing which tools load.

What makes it different

It cannot send mail. That is the feature. An agent with access to private data, exposure to untrusted content, and a channel to the outside world is exploitable by anyone who can put a message in the inbox — the pattern that produced EchoLeak, where one crafted email exfiltrated internal data from Microsoft 365 Copilot with no user interaction. This server has the first two and deliberately not the third. save_draft writes the reply into your Drafts folder; you send it from your own mail client. No amount of clever text in a message can make this server post anything anywhere.

Writes are off until you turn them on. With only IMAP_HOST, IMAP_USER and IMAP_PASSWORD set, the server registers six read tools and nothing else. The mailbox tools appear with IMAP_READ_ONLY=false — note the default is true, the opposite of the other servers in this family, because this one reaches a mailbox. Tools that are off are not registered at all — a capability the model cannot see is one it cannot be talked into using.

Mail is treated as hostile input, because it is. Anyone in the world can put text in your inbox. Message bodies are fenced between markers carrying a per-call random nonce, _and_ every line inside them is prefixed with that nonce, so the "this is data" signal does not stop at the edges of a long forwarded thread. A reminder follows the block, because otherwise the last instruction-shaped sentence in the model's context is the attacker's. Zero-width characters and directional overrides are stripped before the model sees anything, hidden HTML elements are dropped on a best-effort basis (the fencing, not the stripping, is what carries the weight), and markdown image syntax — inline and reference style — is defused so a rendering client cannot be made to fetch a tracking URL.

That covers folder names too: a folder name is chosen by whoever created the folder, which on a shared mailbox is not necessarily you. list_mailboxes returns the name twice — path exactly as the server spelled it, because that is the handle every other tool takes, and display_name cleaned up for reading, with a warning on the entry when the two differ.

Alongside the message you get a server-side assessment: the SPF/DKIM/DMARC verdicts with the authserv-id they came from, which prompt-injection shapes matched, and which words mix Latin with Cyrillic or Greek letters. When something matches, the warning is the first thing in the result rather than a field buried in JSON.

Those verdicts carry a forgeable flag, and by default it is always true. A sender can write an Authentication-Results header of their own, and if your provider does not add one, theirs is the only one there — nothing inside the message distinguishes the two. Set IMAP_TRUSTED_AUTHSERV_ID to the id your provider stamps (it is the first token of the header on any message you already have) and only that id counts as authentic. Until you do, spf=pass is reported as what it is: a claim, from a header anyone could have written.

"New mail" that actually works. The server tags messages it has handed over with a custom IMAP keyword (AiSeen by default), so list_new_messages returns each message once. The human \Seen state is never touched — everything is read with BODY.PEEK.

Deleting and moving ask a person. Where the client supports MCP elicitation, delete_messages, move_messages and deleting a folder raise a real dialog that the model cannot answer on its behalf. Where it does not, they fall back to a two-call token — and say so, rather than implying somebody approved. ELICITATION=false takes that fallback deliberately; it never removes the guard. See Asking a person.

Requirements

  • Node.js 24 or newer
  • An IMAP account. Providers with two-factor authentication generally need an app-specific password.

Configuration

VariableRequiredDefaultDescription
IMAP_HOSTyes—Hostname of the IMAP server, e.g. imap.example.net
IMAP_USERyes—Account username, usually the address
IMAP_PASSWORDyes—Password or app-specific password
IMAP_PORTno993 / 143Defaults by TLS mode
IMAP_TLSnoimplicitimplicit, starttls or none
IMAP_MAILBOXnoINBOXMailbox the message tools default to
IMAP_READ_ONLYno`true`Exactly false registers the five mailbox tools
IMAP_ALLOW_TOOLSno—Tool names, list_* prefixes or essential
IMAP_DENY_TOOLSno—Same syntax; subtracted from the allow list
IMAP_SEEN_KEYWORDnoAiSeenKeyword for new-mail tracking; empty turns it off
IMAP_TRUSTED_AUTHSERV_IDno—The authserv-id your provider stamps; see below
IMAP_DRAFTS_MAILBOXnoautoOverrides the folder found via the \Drafts flag
IMAP_MAX_MESSAGESno100Default page size
IMAP_MAX_ATTACHMENT_BYTESno1048576Ceiling for returning an attachment inline
IMAP_MAX_DOWNLOAD_BYTESno26214400Ceiling for writing one to disk
IMAP_MAX_EXTRACT_BYTESno10485760Ceiling for reading a document's text; max 67108864
IMAP_COMMAND_TIMEOUT_SECONDSno30Seconds one IMAP command may take; max 600
IMAP_ATTACHMENT_TYPESnosee belowComma-separated content-type allowlist
IMAP_DOWNLOAD_DIRno—Setting it allows saving attachments there
IMAP_INSECURE_TLSnofalseExactly true accepts a self-signed certificate
ELICITATIONnotruefalse replaces the dialog with the token. Not prefixed

Booleans are compared against the literal string true; 1, yes and True are not true. IMAP_READ_ONLY is the mirror image: only the literal false turns it off, so a typo leaves the write tools unregistered.

IMAP_COMMAND_TIMEOUT_SECONDS applies to each IMAP command, not to a whole tool call, and your MCP client has a deadline of its own; read slow servers before raising it.

Choosing which tools load

IMAP_ALLOW_TOOLS and IMAP_DENY_TOOLS take comma-separated tool names; a trailing * matches a whole family. essential is a curated preset of six — list_mailboxes, list_new_messages, list_messages, get_message, set_message_flags and move_messages. Four of those are read tools, so it stays useful under the read-only default.

IMAP_ALLOW_TOOLS=essential

IMAP_ALLOW_TOOLS=list_new_messages,get_message,move_messages IMAP_DENY_TOOLS=delete_messages

One boundary the list cannot draw: move_messages copies as well as moves (mode: "copy"), and the two are one tool. Denying move_messages removes both; there is no way to keep moving and forbid copying, or the other way round. Both modes ask for confirmation.

An entry that matches no tool aborts startup and names it, so a typo cannot silently hide a tool — an absent tool is not something anyone traces back to an environment variable. A filtered tool is never registered, so it is absent from tools/list and unknown to tools/call alike, exactly like a write tool under IMAP_READ_ONLY.

It covers tools, and the attachment resources follow get_attachments: when that tool is filtered out, they are not registered either.

If you run several of these servers at once, mcp-hub is the other answer — its /hub endpoint

Only the beginning is shown; read the rest in the repo

Ask PopNx