NestDaddy

IMAP Mail

io.github.buzzer/imap-mcp · v0.2.1

Read and search IMAP mailboxes and create drafts. Sending and deleting are not possible.

Connect Runs on your machine

Terminal
claude mcp add imap-mcp -e IMAP_HOST=<IMAP_HOST> -e MAIL_USER=<MAIL_USER> -e MAIL_PASSWORD=<MAIL_PASSWORD> -e IMAP_PORT=<IMAP_PORT> -e MAIL_ADDRESS=<MAIL_ADDRESS> -e MAIL_FROM_NAME=<MAIL_FROM_NAME> -e MAIL_ALIASES=<MAIL_ALIASES> -e DRAFTS_FOLDER=<DRAFTS_FOLDER> -e MARK_READ_ON_READ=<MARK_READ_ON_READ> -e DRAFT_UNREAD=<DRAFT_UNREAD> -e BCC_SELF=<BCC_SELF> -- docker run -i --rm ghcr.io/buzzer/imap-mcp:0.2.1
claude_desktop_config.json
{
  "mcpServers": {
    "imap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/buzzer/imap-mcp:0.2.1"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "MAIL_USER": "<MAIL_USER>",
        "MAIL_PASSWORD": "<MAIL_PASSWORD>",
        "IMAP_PORT": "<IMAP_PORT>",
        "MAIL_ADDRESS": "<MAIL_ADDRESS>",
        "MAIL_FROM_NAME": "<MAIL_FROM_NAME>",
        "MAIL_ALIASES": "<MAIL_ALIASES>",
        "DRAFTS_FOLDER": "<DRAFTS_FOLDER>",
        "MARK_READ_ON_READ": "<MARK_READ_ON_READ>",
        "DRAFT_UNREAD": "<DRAFT_UNREAD>",
        "BCC_SELF": "<BCC_SELF>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "imap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/buzzer/imap-mcp:0.2.1"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "MAIL_USER": "<MAIL_USER>",
        "MAIL_PASSWORD": "<MAIL_PASSWORD>",
        "IMAP_PORT": "<IMAP_PORT>",
        "MAIL_ADDRESS": "<MAIL_ADDRESS>",
        "MAIL_FROM_NAME": "<MAIL_FROM_NAME>",
        "MAIL_ALIASES": "<MAIL_ALIASES>",
        "DRAFTS_FOLDER": "<DRAFTS_FOLDER>",
        "MARK_READ_ON_READ": "<MARK_READ_ON_READ>",
        "DRAFT_UNREAD": "<DRAFT_UNREAD>",
        "BCC_SELF": "<BCC_SELF>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "imap-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/buzzer/imap-mcp:0.2.1"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "MAIL_USER": "<MAIL_USER>",
        "MAIL_PASSWORD": "<MAIL_PASSWORD>",
        "IMAP_PORT": "<IMAP_PORT>",
        "MAIL_ADDRESS": "<MAIL_ADDRESS>",
        "MAIL_FROM_NAME": "<MAIL_FROM_NAME>",
        "MAIL_ALIASES": "<MAIL_ALIASES>",
        "DRAFTS_FOLDER": "<DRAFTS_FOLDER>",
        "MARK_READ_ON_READ": "<MARK_READ_ON_READ>",
        "DRAFT_UNREAD": "<DRAFT_UNREAD>",
        "BCC_SELF": "<BCC_SELF>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
IMAP_HOST
Required
IMAP server host name (IMAPS), e.g. imap.example.com
MAIL_USER
Required
IMAP login, usually the mail address
MAIL_PASSWORD
Required, secret
IMAP password; an app-specific password where the provider requires one
IMAP_PORT
Optional
IMAPS port
MAIL_ADDRESS
Optional
Own sender address, if it differs from the login
MAIL_FROM_NAME
Optional
Display name used as sender of drafts
MAIL_ALIASES
Optional
Additional allowed sender addresses, comma-separated; *@example.com allows a whole domain
DRAFTS_FOLDER
Optional
Drafts folder, if it is not detected automatically
MARK_READ_ON_READ
Optional
read_message marks every message it returns as read
DRAFT_UNREAD
Optional
Store new drafts as unread, so they stand out in the mailbox
BCC_SELF
Optional
Add the sender address as Bcc to every draft

Details

Packageghcr.io/buzzer/imap-mcp:0.2.1 (OCI, stdio)
First published13 Nov 2026
Last updated13 Nov 2026
Registry nameio.github.buzzer/imap-mcp

More search and web servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.