MCP Hub
Back to servers

mcp-imap-server

An MCP server that enables Claude to directly access and manage email through IMAP. It provides tools for reading, searching, organizing, and drafting emails within your mailbox.

glama
Updated
Apr 18, 2026

mcp-imap-server

MCP (Model Context Protocol) server for IMAP email access. Connect Claude to your mailbox directly.

Setup

npm install
npm run build

Configuration

Copy .env.example to .env and fill in your IMAP credentials:

cp .env.example .env

Claude Desktop / Claude Code Integration

Add to your MCP config (~/.claude.json or Claude Desktop settings):

{
  "mcpServers": {
    "imap": {
      "command": "node",
      "args": ["/path/to/mcp-imap-server/dist/index.js"],
      "env": {
        "IMAP_HOST": "mail.datatp.cloud",
        "IMAP_PORT": "993",
        "IMAP_USER": "your-email",
        "IMAP_PASSWORD": "your-password"
      }
    }
  }
}

Tools

ToolDescription
list_foldersList all mailbox folders
list_messagesList recent messages in a folder
get_messageFetch a single email by UID
search_messagesSearch by subject, from, date, unseen
mark_messageSet/remove flags (read, flagged)
move_messageMove message to another folder
delete_messageDelete or trash a message
create_draftCreate a new draft email
create_reply_draftCreate a reply draft on an existing thread (preserves In-Reply-To/References)

Reviews

No reviews yet

Sign in to write a review