L'Agora
MCPLocal

IMAP mailbox

io.github.ni-c/imap-mcp

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

No review yet · 0 questions Write a reviewAsk the authorFollow this entry

Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.

All projects by ni-c

Repository
github.com/ni-c/imap-mcp
Website
imap-mcp.ni-c.de/
Version
0.8.0
Author
ni-c (namespace verified by the registry)
Source
Official MCP registry (updated Nov 24, 2026)

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Questions for the author

No question yet.

Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.

Continue with GoogleGet a link by email

How to install it

Variables to fill in: 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.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add imap-mcp -e IMAP_HOST=YOUR_IMAP_HOST -e IMAP_USER=YOUR_IMAP_USER -e IMAP_PASSWORD=YOUR_IMAP_PASSWORD -e IMAP_PORT=YOUR_IMAP_PORT -e IMAP_TLS=YOUR_IMAP_TLS -e IMAP_MAILBOX=YOUR_IMAP_MAILBOX -e IMAP_SEEN_KEYWORD=YOUR_IMAP_SEEN_KEYWORD -e IMAP_READ_ONLY=YOUR_IMAP_READ_ONLY -e IMAP_ALLOW_TOOLS=YOUR_IMAP_ALLOW_TOOLS -e IMAP_DENY_TOOLS=YOUR_IMAP_DENY_TOOLS -e IMAP_DOWNLOAD_DIR=YOUR_IMAP_DOWNLOAD_DIR -e IMAP_INSECURE_TLS=YOUR_IMAP_INSECURE_TLS -e IMAP_DRAFTS_MAILBOX=YOUR_IMAP_DRAFTS_MAILBOX -e IMAP_MAX_MESSAGES=YOUR_IMAP_MAX_MESSAGES -e IMAP_MAX_ATTACHMENT_BYTES=YOUR_IMAP_MAX_ATTACHMENT_BYTES -e IMAP_MAX_DOWNLOAD_BYTES=YOUR_IMAP_MAX_DOWNLOAD_BYTES -e IMAP_MAX_EXTRACT_BYTES=YOUR_IMAP_MAX_EXTRACT_BYTES -e IMAP_COMMAND_TIMEOUT_SECONDS=YOUR_IMAP_COMMAND_TIMEOUT_SECONDS -e IMAP_ATTACHMENT_TYPES=YOUR_IMAP_ATTACHMENT_TYPES -e IMAP_TRUSTED_AUTHSERV_ID=YOUR_IMAP_TRUSTED_AUTHSERV_ID -- npx -y @ni-c/[email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "imap-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/[email protected]"
      ],
      "env": {
        "IMAP_HOST": "YOUR_IMAP_HOST",
        "IMAP_USER": "YOUR_IMAP_USER",
        "IMAP_PASSWORD": "YOUR_IMAP_PASSWORD",
        "IMAP_PORT": "YOUR_IMAP_PORT",
        "IMAP_TLS": "YOUR_IMAP_TLS",
        "IMAP_MAILBOX": "YOUR_IMAP_MAILBOX",
        "IMAP_SEEN_KEYWORD": "YOUR_IMAP_SEEN_KEYWORD",
        "IMAP_READ_ONLY": "YOUR_IMAP_READ_ONLY",
        "IMAP_ALLOW_TOOLS": "YOUR_IMAP_ALLOW_TOOLS",
        "IMAP_DENY_TOOLS": "YOUR_IMAP_DENY_TOOLS",
        "IMAP_DOWNLOAD_DIR": "YOUR_IMAP_DOWNLOAD_DIR",
        "IMAP_INSECURE_TLS": "YOUR_IMAP_INSECURE_TLS",
        "IMAP_DRAFTS_MAILBOX": "YOUR_IMAP_DRAFTS_MAILBOX",
        "IMAP_MAX_MESSAGES": "YOUR_IMAP_MAX_MESSAGES",
        "IMAP_MAX_ATTACHMENT_BYTES": "YOUR_IMAP_MAX_ATTACHMENT_BYTES",
        "IMAP_MAX_DOWNLOAD_BYTES": "YOUR_IMAP_MAX_DOWNLOAD_BYTES",
        "IMAP_MAX_EXTRACT_BYTES": "YOUR_IMAP_MAX_EXTRACT_BYTES",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "YOUR_IMAP_COMMAND_TIMEOUT_SECONDS",
        "IMAP_ATTACHMENT_TYPES": "YOUR_IMAP_ATTACHMENT_TYPES",
        "IMAP_TRUSTED_AUTHSERV_ID": "YOUR_IMAP_TRUSTED_AUTHSERV_ID"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "imap-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/[email protected]"
      ],
      "env": {
        "IMAP_HOST": "YOUR_IMAP_HOST",
        "IMAP_USER": "YOUR_IMAP_USER",
        "IMAP_PASSWORD": "YOUR_IMAP_PASSWORD",
        "IMAP_PORT": "YOUR_IMAP_PORT",
        "IMAP_TLS": "YOUR_IMAP_TLS",
        "IMAP_MAILBOX": "YOUR_IMAP_MAILBOX",
        "IMAP_SEEN_KEYWORD": "YOUR_IMAP_SEEN_KEYWORD",
        "IMAP_READ_ONLY": "YOUR_IMAP_READ_ONLY",
        "IMAP_ALLOW_TOOLS": "YOUR_IMAP_ALLOW_TOOLS",
        "IMAP_DENY_TOOLS": "YOUR_IMAP_DENY_TOOLS",
        "IMAP_DOWNLOAD_DIR": "YOUR_IMAP_DOWNLOAD_DIR",
        "IMAP_INSECURE_TLS": "YOUR_IMAP_INSECURE_TLS",
        "IMAP_DRAFTS_MAILBOX": "YOUR_IMAP_DRAFTS_MAILBOX",
        "IMAP_MAX_MESSAGES": "YOUR_IMAP_MAX_MESSAGES",
        "IMAP_MAX_ATTACHMENT_BYTES": "YOUR_IMAP_MAX_ATTACHMENT_BYTES",
        "IMAP_MAX_DOWNLOAD_BYTES": "YOUR_IMAP_MAX_DOWNLOAD_BYTES",
        "IMAP_MAX_EXTRACT_BYTES": "YOUR_IMAP_MAX_EXTRACT_BYTES",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "YOUR_IMAP_COMMAND_TIMEOUT_SECONDS",
        "IMAP_ATTACHMENT_TYPES": "YOUR_IMAP_ATTACHMENT_TYPES",
        "IMAP_TRUSTED_AUTHSERV_ID": "YOUR_IMAP_TRUSTED_AUTHSERV_ID"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "imap-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/[email protected]"
      ],
      "env": {
        "IMAP_HOST": "YOUR_IMAP_HOST",
        "IMAP_USER": "YOUR_IMAP_USER",
        "IMAP_PASSWORD": "YOUR_IMAP_PASSWORD",
        "IMAP_PORT": "YOUR_IMAP_PORT",
        "IMAP_TLS": "YOUR_IMAP_TLS",
        "IMAP_MAILBOX": "YOUR_IMAP_MAILBOX",
        "IMAP_SEEN_KEYWORD": "YOUR_IMAP_SEEN_KEYWORD",
        "IMAP_READ_ONLY": "YOUR_IMAP_READ_ONLY",
        "IMAP_ALLOW_TOOLS": "YOUR_IMAP_ALLOW_TOOLS",
        "IMAP_DENY_TOOLS": "YOUR_IMAP_DENY_TOOLS",
        "IMAP_DOWNLOAD_DIR": "YOUR_IMAP_DOWNLOAD_DIR",
        "IMAP_INSECURE_TLS": "YOUR_IMAP_INSECURE_TLS",
        "IMAP_DRAFTS_MAILBOX": "YOUR_IMAP_DRAFTS_MAILBOX",
        "IMAP_MAX_MESSAGES": "YOUR_IMAP_MAX_MESSAGES",
        "IMAP_MAX_ATTACHMENT_BYTES": "YOUR_IMAP_MAX_ATTACHMENT_BYTES",
        "IMAP_MAX_DOWNLOAD_BYTES": "YOUR_IMAP_MAX_DOWNLOAD_BYTES",
        "IMAP_MAX_EXTRACT_BYTES": "YOUR_IMAP_MAX_EXTRACT_BYTES",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "YOUR_IMAP_COMMAND_TIMEOUT_SECONDS",
        "IMAP_ATTACHMENT_TYPES": "YOUR_IMAP_ATTACHMENT_TYPES",
        "IMAP_TRUSTED_AUTHSERV_ID": "YOUR_IMAP_TRUSTED_AUTHSERV_ID"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Cite this entry

For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.

IMAP mailbox · L’Agora

[IMAP mailbox — L’Agora](https://lagora.dev/en/entry/io.github.ni-c/imap-mcp)

Sources, methodology and limitations

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.ni-c/imap-mcp on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.ni-c/imap-mcp on L’Agora](https://lagora.dev/badge/io.github.ni-c/imap-mcp.svg?lang=en)](https://lagora.dev/en/entry/io.github.ni-c/imap-mcp)

HTML

<a href="https://lagora.dev/en/entry/io.github.ni-c/imap-mcp"><img src="https://lagora.dev/badge/io.github.ni-c/imap-mcp.svg?lang=en" alt="io.github.ni-c/imap-mcp on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

SMTP Local

CalDAV calendars Local

mcp-hub Local

CardDAV address books Local

Report this entry