Search & web / IMAP mailbox

IMAP mailbox

io.github.ni-c/imap-mcp · v0.7.0

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

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #319 of 817 Search & web servers on Socketlist by score, with 4 GitHub stars and a last code push 25d ago.

Install

npx -y @ni-c/imap-mcp
docker run -i --rm ghcr.io/ni-c/imap-mcp:0.7.0

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect IMAP mailbox to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env IMAP_HOST=<imap_host> --env IMAP_USER=<imap_user> --env IMAP_PASSWORD=<imap_password> --transport stdio imap-mailbox -- npx -y @ni-c/imap-mcp

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "imap-mailbox": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "${IMAP_HOST}",
        "IMAP_USER": "${IMAP_USER}",
        "IMAP_PASSWORD": "${IMAP_PASSWORD}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "imap-mailbox": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "${env:IMAP_HOST}",
        "IMAP_USER": "${env:IMAP_USER}",
        "IMAP_PASSWORD": "${env:IMAP_PASSWORD}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
IMAP_HOSTYesNoHostname of the IMAP server, e.g. imap.example.net
IMAP_USERYesNoMailbox user name
IMAP_PASSWORDYesYesMailbox password or app password
IMAP_PORTNoNoDefaults to 993 with implicit TLS, 143 otherwise
IMAP_TLSNoNoimplicit (default), starttls or none
IMAP_MAILBOXNoNoDefault mailbox to work in (default: INBOX)
IMAP_SEEN_KEYWORDNoNoIMAP keyword marking what the assistant has already seen (default: AiSeen)
IMAP_READ_ONLYNoNoSet to false to register the mailbox write tools; defaults to true
IMAP_ALLOW_TOOLSNoNoComma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
IMAP_DENY_TOOLSNoNoComma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left
IMAP_DOWNLOAD_DIRNoNoDirectory attachments may be written to; unset means the server never touches the filesystem
IMAP_INSECURE_TLSNoNoSet to true to accept self-signed certificates, scoped to this connection

8 more are listed in the registry entry; see the README for the full set.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "@ni-c/imap-mcp"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars4
npm weekly downloads0
Last push25d ago
LicenceMIT
Open issues0
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-11-04

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers

Apple Mail

Score 79

Search, read and act on Apple Mail — threads, attachments, body search, writes off by default

★ 5MITpushed 18d ago
Search & webProductivity

Groundhog

Score 76

Search, read and research the web, with hidden text stripped by default and sources hashed

★ 1MITpushed 18d ago
Search & webAI & media

WireCat Mail

Score 72

Your mailbox for agents: search, organise, draft and send mail. Add the account with mail first.

★ 2Apache-2.0pushed 18d ago
Search & webProductivity

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free