PrivateEmail MCP
Provides an MCP interface for Namecheap PrivateEmail, enabling mailbox management including reading inbox, searching emails, sending and replying to messages, managing folders and drafts, and handling attachments via IMAP and SMTP.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PrivateEmail MCPshow me my recent inbox emails"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PrivateEmail MCP
PrivateEmail MCP is a Model Context Protocol server for Namecheap PrivateEmail.
It connects to mail.privateemail.com over IMAP and SMTP so Claude Code can read inboxes, search mail, draft replies, send messages, manage folders, and work with drafts.
This server is built for the Namecheap email provider called PrivateEmail. It is session scoped by design. Everything runs while Claude Code is connected to the server. There are no background workers, schedulers, or durable campaign daemons.
What it does
Reads inbox messages, threads, and attachments
Searches mail by sender, recipient, subject, body text, and date filters
Sends new emails
Replies and forwards while preserving thread headers
Saves and sends drafts
Moves, copies, deletes, and marks messages
Creates, renames, and deletes folders
Exposes inbox context as MCP resources
Exposes reusable prompts for summarizing inboxes and drafting replies
Saves sent messages into the
Sentfolder so they appear in PrivateEmail webmail
Related MCP server: @aiwerk/mcp-server-imap
Why this exists
Namecheap PrivateEmail does not provide a public API for mailbox automation in the same way many SaaS products do. The supported integration path is standard email protocols. This server gives Claude Code a clean MCP interface on top of those protocols.
Features exposed to Claude Code
Tools
health_checkaccount_infolist_folderslist_emailssearch_emailsget_emailget_threaddownload_attachmentsend_emailreply_emailforward_emailsave_draftlist_draftssend_draftmove_emailcopy_emaildelete_emailmark_emailcreate_folderrename_folderdelete_folder
Resources
privateemail://accountprivateemail://foldersprivateemail://inbox/recentprivateemail://inbox/unreadprivateemail://email/{folder}/{uid}
Prompts
summarize_inboxtriage_unreaddraft_replycompose_email
Requirements
Python 3.11 or newer
uvinstalledA Namecheap PrivateEmail mailbox
Installation for Claude Code
Fastest install from GitHub
After this repository is pushed, add it directly to Claude Code with one command:
claude mcp add --scope user \
--env PRIVATEEMAIL_ADDRESS="you@yourdomain.com" \
--env PRIVATEEMAIL_PASSWORD="your-password" \
--env PRIVATEEMAIL_DISPLAY_NAME="Your Name" \
privateemail \
-- uvx --from git+https://github.com/ciphersolutions-dev/private-email-mcp privateemail-mcpNotes:
--scope userinstalls it once for all your projects. Use--scope projectif you want a repo-local setup instead.Everything after the
--separator is the command Claude Code runs.uvx --from git+... privateemail-mcpinstalls and launches the server directly from GitHub.
Install from a local clone
git clone https://github.com/ciphersolutions-dev/private-email-mcp.git
cd private-email-mcp
uv sync
claude mcp add --scope user \
--env PRIVATEEMAIL_ADDRESS="you@yourdomain.com" \
--env PRIVATEEMAIL_PASSWORD="your-password" \
--env PRIVATEEMAIL_DISPLAY_NAME="Your Name" \
privateemail \
-- uv run --directory "$PWD" privateemail-mcpHelper install script
You can also use the included helper script after cloning the repo:
./scripts/install-claude-code.sh "you@yourdomain.com" "your-password" "Your Name"By default it registers the server at user scope. Pass a fourth argument of project to make it project scoped:
./scripts/install-claude-code.sh "you@yourdomain.com" "your-password" "Your Name" projectConfiguration
Environment variables:
PRIVATEEMAIL_ADDRESS- full mailbox addressPRIVATEEMAIL_PASSWORD- mailbox passwordPRIVATEEMAIL_DISPLAY_NAME- display name used for outbound mailPRIVATEEMAIL_IMAP_HOST- defaults tomail.privateemail.comPRIVATEEMAIL_IMAP_PORT- defaults to993PRIVATEEMAIL_SMTP_HOST- defaults tomail.privateemail.comPRIVATEEMAIL_SMTP_PORT- defaults to465PRIVATEEMAIL_MAX_ATTACHMENT_BYTES- maximum attachment payload returned by the server
Example .env:
PRIVATEEMAIL_ADDRESS=you@yourdomain.com
PRIVATEEMAIL_PASSWORD=your-password
PRIVATEEMAIL_IMAP_HOST=mail.privateemail.com
PRIVATEEMAIL_IMAP_PORT=993
PRIVATEEMAIL_SMTP_HOST=mail.privateemail.com
PRIVATEEMAIL_SMTP_PORT=465
PRIVATEEMAIL_DISPLAY_NAME=Your Name
PRIVATEEMAIL_MAX_ATTACHMENT_BYTES=10485760Usage in Claude Code
Useful Claude Code commands:
claude mcp listclaude mcp get privateemailclaude mcp remove privateemail
Typical flows:
Read inbox: use
privateemail://inbox/recentor calllist_emailsReview unread mail: use
triage_unreadDraft a reply: use
draft_replySend a message now: use
send_emailReply in-thread: use
reply_emailSave a draft: use
save_draft
Development
uv sync
uv run pytest tests/ -qRun locally:
uv run privateemail-mcpPrivateEmail behavior note
SMTP delivery alone does not create a copy in the Sent folder.
This server explicitly appends a copy to Sent after a successful send so the message shows up in PrivateEmail webmail.
Security
Keep your mailbox password in environment variables, not source control
.envis ignored by gitConsider using a dedicated mailbox or app-specific credential if your setup allows it
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ciphersolutions-dev/private-email-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server