L'Agora
MCPLocal

IMAP Mail

io.github.buzzer/imap-mcp

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

Repository
github.com/buzzer/imap-mcp
Version
0.2.1
Author
buzzer (namespace verified by the registry)
Source
Official MCP registry (updated Nov 13, 2026)

How to install it

Variables to fill in: IMAP_HOST, MAIL_USER, MAIL_PASSWORD, IMAP_PORT, MAIL_ADDRESS, MAIL_FROM_NAME, MAIL_ALIASES, DRAFTS_FOLDER, MARK_READ_ON_READ, DRAFT_UNREAD, BCC_SELF.

On your machine

Claude Code

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

claude mcp add imap-mcp -e IMAP_HOST=YOUR_IMAP_HOST -e MAIL_USER=YOUR_MAIL_USER -e MAIL_PASSWORD=YOUR_MAIL_PASSWORD -e IMAP_PORT=YOUR_IMAP_PORT -e MAIL_ADDRESS=YOUR_MAIL_ADDRESS -e MAIL_FROM_NAME=YOUR_MAIL_FROM_NAME -e MAIL_ALIASES=YOUR_MAIL_ALIASES -e DRAFTS_FOLDER=YOUR_DRAFTS_FOLDER -e MARK_READ_ON_READ=YOUR_MARK_READ_ON_READ -e DRAFT_UNREAD=YOUR_DRAFT_UNREAD -e BCC_SELF=YOUR_BCC_SELF -- docker run -i --rm -e IMAP_HOST -e MAIL_USER -e MAIL_PASSWORD -e IMAP_PORT -e MAIL_ADDRESS -e MAIL_FROM_NAME -e MAIL_ALIASES -e DRAFTS_FOLDER -e MARK_READ_ON_READ -e DRAFT_UNREAD -e BCC_SELF ghcr.io/buzzer/imap-mcp:0.2.1
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "imap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "IMAP_HOST",
        "-e",
        "MAIL_USER",
        "-e",
        "MAIL_PASSWORD",
        "-e",
        "IMAP_PORT",
        "-e",
        "MAIL_ADDRESS",
        "-e",
        "MAIL_FROM_NAME",
        "-e",
        "MAIL_ALIASES",
        "-e",
        "DRAFTS_FOLDER",
        "-e",
        "MARK_READ_ON_READ",
        "-e",
        "DRAFT_UNREAD",
        "-e",
        "BCC_SELF",
        "ghcr.io/buzzer/imap-mcp:0.2.1"
      ],
      "env": {
        "IMAP_HOST": "YOUR_IMAP_HOST",
        "MAIL_USER": "YOUR_MAIL_USER",
        "MAIL_PASSWORD": "YOUR_MAIL_PASSWORD",
        "IMAP_PORT": "YOUR_IMAP_PORT",
        "MAIL_ADDRESS": "YOUR_MAIL_ADDRESS",
        "MAIL_FROM_NAME": "YOUR_MAIL_FROM_NAME",
        "MAIL_ALIASES": "YOUR_MAIL_ALIASES",
        "DRAFTS_FOLDER": "YOUR_DRAFTS_FOLDER",
        "MARK_READ_ON_READ": "YOUR_MARK_READ_ON_READ",
        "DRAFT_UNREAD": "YOUR_DRAFT_UNREAD",
        "BCC_SELF": "YOUR_BCC_SELF"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "imap-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "IMAP_HOST",
        "-e",
        "MAIL_USER",
        "-e",
        "MAIL_PASSWORD",
        "-e",
        "IMAP_PORT",
        "-e",
        "MAIL_ADDRESS",
        "-e",
        "MAIL_FROM_NAME",
        "-e",
        "MAIL_ALIASES",
        "-e",
        "DRAFTS_FOLDER",
        "-e",
        "MARK_READ_ON_READ",
        "-e",
        "DRAFT_UNREAD",
        "-e",
        "BCC_SELF",
        "ghcr.io/buzzer/imap-mcp:0.2.1"
      ],
      "env": {
        "IMAP_HOST": "YOUR_IMAP_HOST",
        "MAIL_USER": "YOUR_MAIL_USER",
        "MAIL_PASSWORD": "YOUR_MAIL_PASSWORD",
        "IMAP_PORT": "YOUR_IMAP_PORT",
        "MAIL_ADDRESS": "YOUR_MAIL_ADDRESS",
        "MAIL_FROM_NAME": "YOUR_MAIL_FROM_NAME",
        "MAIL_ALIASES": "YOUR_MAIL_ALIASES",
        "DRAFTS_FOLDER": "YOUR_DRAFTS_FOLDER",
        "MARK_READ_ON_READ": "YOUR_MARK_READ_ON_READ",
        "DRAFT_UNREAD": "YOUR_DRAFT_UNREAD",
        "BCC_SELF": "YOUR_BCC_SELF"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "imap-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "IMAP_HOST",
        "-e",
        "MAIL_USER",
        "-e",
        "MAIL_PASSWORD",
        "-e",
        "IMAP_PORT",
        "-e",
        "MAIL_ADDRESS",
        "-e",
        "MAIL_FROM_NAME",
        "-e",
        "MAIL_ALIASES",
        "-e",
        "DRAFTS_FOLDER",
        "-e",
        "MARK_READ_ON_READ",
        "-e",
        "DRAFT_UNREAD",
        "-e",
        "BCC_SELF",
        "ghcr.io/buzzer/imap-mcp:0.2.1"
      ],
      "env": {
        "IMAP_HOST": "YOUR_IMAP_HOST",
        "MAIL_USER": "YOUR_MAIL_USER",
        "MAIL_PASSWORD": "YOUR_MAIL_PASSWORD",
        "IMAP_PORT": "YOUR_IMAP_PORT",
        "MAIL_ADDRESS": "YOUR_MAIL_ADDRESS",
        "MAIL_FROM_NAME": "YOUR_MAIL_FROM_NAME",
        "MAIL_ALIASES": "YOUR_MAIL_ALIASES",
        "DRAFTS_FOLDER": "YOUR_DRAFTS_FOLDER",
        "MARK_READ_ON_READ": "YOUR_MARK_READ_ON_READ",
        "DRAFT_UNREAD": "YOUR_DRAFT_UNREAD",
        "BCC_SELF": "YOUR_BCC_SELF"
      }
    }
  }
}
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.

Reviews

No review yet.

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

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.buzzer/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.buzzer/imap-mcp on L’Agora](https://lagora.dev/badge/io.github.buzzer/imap-mcp.svg?lang=en)](https://lagora.dev/en/entry/io.github.buzzer/imap-mcp)

HTML

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

Promote

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

Report this entry