Privateemail MCP logo

Privateemail MCP

Access Namecheap Private Email or other IMAP/SMTP mailboxes to search, read, organize, reply to, and send messages.

Install Privateemail MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "privateemail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "privateemail-mcp"
      ],
      "env": {
        "EMAIL_ADDRESS": "YOUR_VALUE_HERE",
        "EMAIL_APP_PASSWORD": "YOUR_VALUE_HERE",
        "EMAIL_KEYCHAIN_SERVICE": "YOUR_VALUE_HERE",
        "IMAP_HOST": "YOUR_VALUE_HERE",
        "IMAP_PORT": "YOUR_VALUE_HERE",
        "SMTP_HOST": "YOUR_VALUE_HERE",
        "SMTP_PORT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env EMAIL_ADDRESS=YOUR_VALUE_HERE --env EMAIL_APP_PASSWORD=YOUR_VALUE_HERE --env EMAIL_KEYCHAIN_SERVICE=YOUR_VALUE_HERE --env IMAP_HOST=YOUR_VALUE_HERE --env IMAP_PORT=YOUR_VALUE_HERE --env SMTP_HOST=YOUR_VALUE_HERE --env SMTP_PORT=YOUR_VALUE_HERE --transport stdio privateemail-mcp -- npx -y privateemail-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 7 tools correctly ().

Overview

privateemail-mcp connects MCP clients to Namecheap Private Email through IMAP and SMTP, with configurable hosts for other mailboxes. It exposes tools for folder counts, message search, reading, sending, replying, marking messages, and moving messages. Reach for it when an agent needs mailbox access from Claude, Cursor, Codex, or another compatible client. Node.js 20 or newer and mailbox credentials are required.

Use cases

  • Search unread customer email from a recent date range
  • Read messages and inspect attachment names
  • Draft and review threaded replies before sending
  • Send new email and preserve a copy in Sent
  • Move processed messages into an archive folder

Key features

  • IMAP mailbox search with multiple filters
  • SMTP sending with plain-text or HTML content
  • Thread-aware replies with reply-all and dry-run support
  • Folder counts and message organization
  • Read-state management
  • Configurable IMAP and SMTP hosts

Tools7

What Privateemail MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 20d

What it can do

From the 7 tools this server returned when we ran it.

Can delete or modify data · 1Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age22 days
Maintainers1

Observed 2026-11-16 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · privateemail-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads239Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed7Callable tools this server registers over MCP.

How Privateemail MCP works

What privateemail-mcp does

privateemail-mcp gives an MCP-compatible AI client access to an email mailbox through standard IMAP and SMTP connections. Namecheap Private Email is the default target, using mail.privateemail.com, but the host and port settings can be changed for another IMAP/SMTP mailbox.

The server supports mailbox inspection and common message workflows. An agent can list folders with total and unread counts, find messages by sender, recipient, subject, body text, date range, or unread state, and read headers, plain-text content, and attachment names. Reading a message does not change its read status.

Message actions include sending a new plain-text or optional HTML email, replying with normal recipients and threading headers, marking messages read or unread, and moving messages between folders. Sent messages are saved in Sent. Replies can include the original quoted text, support reply-all, and run in dry-run mode to show the final recipients and text before sending.

How it works

The package runs as a standard stdio MCP server. Clients launch it with npx -y privateemail-mcp and pass configuration through environment variables. IMAP handles mailbox access and SMTP handles outgoing mail. TLS is used on the default IMAP port 993 and SMTP port 465; alternate ports use STARTTLS.

An MCP client can chain searches, reads, and replies to handle multi-step requests. Sending should remain subject to the client’s approval flow. A dry run is available when the final recipient list and composed text should be reviewed before transmission.

Setup and configuration

Install Node.js 20 or newer, then configure the server in the MCP client of your choice with the npx command, the -y privateemail-mcp arguments, and the mailbox environment variables. EMAIL_ADDRESS is the full mailbox address and login. EMAIL_APP_PASSWORD accepts the mailbox password or an app password.

On macOS, the password can instead be stored in Keychain. The server looks up the item on each call when EMAIL_APP_PASSWORD is omitted. The Keychain service name defaults to privateemail-mcp and can be changed with EMAIL_KEYCHAIN_SERVICE.

IMAP_HOST and IMAP_PORT customize the incoming-mail connection. SMTP_HOST and SMTP_PORT customize outgoing mail. The defaults are mail.privateemail.com, port 993 for IMAP, and port 465 for SMTP.

The package includes configuration examples for Claude Desktop, Claude Code, Codex, Cursor, VS Code, Gemini CLI, Zed, and other MCP clients. VS Code can request the password at startup instead of storing it in its configuration.

Tools and capabilities

  • list_folders returns folders with total and unread message counts.
  • search_messages finds newest messages using sender, recipient, subject, body, date, or unread filters.
  • read_message returns headers, plain-text body content, and attachment names without marking the message read.
  • reply_to_message builds a threaded reply, with reply-all and dry-run options.
  • send_email sends plain-text or optional HTML mail and saves a copy in Sent.
  • mark_read changes a message’s read or unread state.
  • move_messages transfers messages to another folder, such as Archive.

Limitations and notes

There is no delete tool. A message can have no more than 20 recipients. Namecheap Private Email is the default and tested mailbox configuration, while other providers depend on compatible IMAP and SMTP settings. The project is not affiliated with or endorsed by Namecheap.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Privateemail MCP

privateemail-mcp is an MCP server that connects AI clients to Namecheap Private Email and compatible IMAP/SMTP mailboxes. Its main tools list folders, search and read messages, send new email, reply with threading and reply-all support, mark messages read or unread, and move messages between folders.

Install it through your MCP client with `npx -y privateemail-mcp`, then set `EMAIL_ADDRESS` and `EMAIL_APP_PASSWORD`. Node.js 20 or newer is required. The package includes setup patterns for Claude Desktop, Claude Code, Codex, Cursor, VS Code, Gemini CLI, Zed, and other clients.

Yes, privateemail-mcp can connect to other IMAP/SMTP mailboxes when you change the host and port settings. Set `IMAP_HOST`, `IMAP_PORT`, `SMTP_HOST`, and `SMTP_PORT` as needed. Namecheap Private Email remains the default mailbox configuration.

Yes, `reply_to_message` supports a dry run that returns the recipients and complete final text without sending. This is useful for reviewing reply-all behavior, threading headers, and quoted original content before approving delivery.

No, privateemail-mcp has no delete tool. It can mark messages read or unread and move them to another folder, including an Archive folder.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPrivateemail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/privateemail-mcp?style=directory)](https://allmcps.com/mcp/privateemail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/privateemail-mcp"><img src="https://allmcps.com/api/badge/privateemail-mcp?style=directory" alt="Privateemail MCP on AllMCPs" /></a>