Self-hosted MCP email server for IMAP and SMTP

Self-hosted MCP email server for IMAP and SMTP

mcp-email•byoneshotforge

A self-hosted MCP server that connects to IMAP and SMTP accounts, offering email reading, sending, drafting, and folder management tools to MCP-compliant clients.

License: Commercial license•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Connects to any IMAP/SMTP provider, including Gmail, Hostinger, Fastmail, iCloud, Outlook 365, Proton via Bridge, Yahoo, Zoho, and custom domains.
  • •Supports multiple email accounts in one configuration, with every tool call taking an account argument.
  • •Provides reading tools for listing folders, listing and searching messages, reading message bodies and attachments, and reconstructing threads.
  • •Provides writing and management tools to send messages, create drafts, move, copy, delete, flag messages, and manage folders.

BEST FOR

  • •Connecting Claude Code or another MCP-compliant client to a personal or business email account for listing and searching messages.
  • •Handling multiple mailboxes from a single MCP server instance, such as searching one account and drafting a reply from another.

ABOUT MCP-EMAIL

Self-hosted MCP email server for IMAP and SMTP is cataloged as an MCP server attributed to oneshotforge. A self-hosted MCP server that connects to IMAP and SMTP accounts, offering email reading, sending, drafting, and folder management tools to MCP-compliant clients. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Commercial license. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Self-hosted MCP email server for IMAP and SMTP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server support OAuth?

No, authentication uses app passwords or plain passwords only, with no OAuth 2.0 support.

What transport does the server use?

It uses HTTP only; there is no stdio transport.

How large can attachments be when fetched?

Binary attachments have a 1 MB cap and are returned as base64, while textual attachments have no cap.

Upstream README

View this exact version on GitHub

README.md · 27bfeef00d0f · Fetched 2026-11-13 13:22:55 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

mcp-email

Self-hosted MCP server for IMAP and SMTP. Multi-account in one config. Built for Claude Code and any MCP-compliant client.

Buy on Gumroad — $49 · Landing page · Provider config docs


What this repo is

This is the public face of mcp-email, a paid product from OneShotForge. The source code lives in the paid bundle sold on Gumroad. This repo contains:

  • The README you're reading (features, scope, FAQ)
  • The full per-provider config docs (docs/CONFIG.md)
  • The public changelog (CHANGELOG.md)
  • The license terms (LICENSE)

If you're shopping: this is enough to decide whether mcp-email fits your setup. The buy link is at the top.

If you've already purchased: the full TypeScript source, Docker setup, build configs, and complete installation guide are in the zip you received after checkout.


Why this exists

Anthropic's MCP spec lets agents talk to your tools. Email is the most-asked tool. But the existing "MCP email" servers I tried either lock you to Gmail, demand an OAuth setup that takes an afternoon, or break the moment you point them at a second account.

mcp-email is the one I built for myself after that triage. I sell it because it now solves a problem cleanly enough that I'd rather get paid to maintain it than maintain it for free.

What's different:

  • Any IMAP/SMTP provider — Gmail, Hostinger, Fastmail, iCloud, Outlook 365, Proton (via Bridge), Yahoo, Zoho, custom domains, anything that speaks the protocol.
  • Multi-account in one config — declare N accounts via env vars, every tool call takes an account argument. One server instance speaks to all of them.
  • 15 tools, prod-grade — list, search, read, threads, attachments, send, draft, move, copy, delete, flag, folder CRUD. The boring operations are covered.
  • Self-hosted, credentials never leave your box — runs locally via npm or in Docker. Bearer-token auth on the MCP endpoint. No telemetry, no SaaS proxy.
  • One .env file — no OAuth dance, no service account JSON, no Google Cloud project. Generate app passwords on the provider side, drop them in, done.

What you get when you buy

After checkout on Gumroad, you download a single zip containing:

  • Full TypeScript source for the server (Node 20+, @modelcontextprotocol/sdk, imapflow, nodemailer)
  • Dockerfile + docker-compose.yml ready to run
  • .env.example with the full template and inline comments
  • The expanded README with install instructions, Claude Code wiring, production deployment via Caddy, and troubleshooting
  • A perpetual commercial license (see LICENSE for the full terms — unlimited business use, no resale, refund within the first day if it doesn't fit)
  • Free patch and minor updates within the 1.x major version

Approximate first-tool-call time after checkout: 5 minutes if your provider's app password is already generated.


Provider matrix

I run on Hostinger and Gmail daily. Setup is documented and tested for the others.

ProviderAuthenticationIMAP hostSMTP hostNotes
HostingerMailbox passwordimap.hostinger.com:993smtp.hostinger.com:465What I use for hello@oneshotforge.com. 10/10 on mail-tester.com.
Gmail / WorkspaceApp passwordimap.gmail.com:993smtp.gmail.com:465Enable 2FA first. Workspace admins can disable IMAP at the org level.
FastmailApp passwordimap.fastmail.com:993smtp.fastmail.com:465Clean implementation, no surprises.
iCloud MailApp-specific passwordimap.mail.me.com:993smtp.mail.me.com:587SMTP on 587/STARTTLS.
Outlook 365App passwordoutlook.office365.com:993smtp.office365.com:587Some tenants disable SMTP AUTH. Personal accounts always work.
Proton MailVia Proton Bridge127.0.0.1:1143127.0.0.1:1025Bridge must be running locally.
Yahoo MailApp passwordimap.mail.yahoo.com:993smtp.mail.yahoo.com:465App password under account security.
Zoho MailApp password (or normal)imap.zoho.eu:993 / .comsmtp.zoho.eu:465 / .comEU vs US tenants use different hosts.
GenericApp password or normaldependsdependsAnything RFC-compliant works.

Full per-provider setup in docs/CONFIG.md.


The 15 tools

All tools take an account parameter — the ID you declared in .env. Folders default to INBOX where applicable.

Reading (6)

ToolPurpose
email_list_foldersList all IMAP folders with unread counts
email_list_messagesList messages in a folder with pagination and unseen filter
email_search_messagesSearch by sender, subject, body, date, or has-attachment
email_get_messageFull message body (text + HTML + attachment metadata) by UID
email_get_attachmentFetch an attachment's content (UTF-8 or base64)
email_get_threadReconstruct a conversation thread from Message-ID / In-Reply-To / References

Writing (2)

ToolPurpose
email_send_messageSend via SMTP, append a copy to Sent folder via IMAP
email_create_draftCreate a draft in the Drafts folder

Management (7)

ToolPurpose
email_move_messageMove a message to another folder
email_copy_messageCopy a message to another folder
email_delete_messageMove to Trash (default) or \Deleted + expunge
email_mark_messageSet or unset \Seen / \Flagged / \Answered flags
email_create_folderCreate an IMAP folder
email_rename_folderRename an IMAP folder
email_delete_folderDelete an IMAP folder

How it connects to Claude Code

After install (covered in the zip), add this to your project .mcp.json or ~/.claude.json global:

{
  "mcpServers": {
    "email": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_AUTH_TOKEN"
      }
    }
  }
}

Restart Claude Code (/mcp to verify the server is connected), then try:

"List my last 5 unread emails in account main."

Or, for advanced usage with multi-account:

"Search account support for unanswered messages from customer@example.com in the last 7 days, summarize them, and draft a reply in account main."


Pricing

$49 one-time. Perpetual commercial license, unlimited business use, no recurring fee.

Same-day refund if it doesn't fit your setup. Email hello@oneshotforge.com within 24 hours of buying and I'll process it (next morning if I'm asleep when you write).

Buy on Gumroad


Limits and scope (intentional)

  • Authentication: app password or plain password only. No OAuth 2.0. This keeps the server stateless and provider-agnostic.
  • Transport: HTTP only (no stdio). MCP over HTTP is the only mode that supports remote agents and shared infrastructure.
  • Folder names: defaults assume INBOX, Sent, Drafts, Trash. Servers with prefixes like INBOX.Sent are handled with a fallback. Custom names require small code changes.
  • Attachment download: 1 MB cap for binary attachments (returned as base64). Textual attachments (text/*, JSON, XML, ICS) have no cap.
  • HTML body: truncated past 25,000 characters in email_get_message. The text body is always sent in full.

Roadmap (post-1.0, not committed)

  • Optional SENT_FOLDER / DRAFTS_FOLDER / TRASH_FOLDER env overrides per account
  • OAuth flow for Gmail and Microsoft (separate add-on, not bundled)
  • Webhook on incoming mail (push-style notifications for agents)
  • Calendar/ICS bridge (separate product, will integrate cleanly)
  • AI auto-tagging via the Anthropic API

Vote with email — what do you want next? hello@oneshotforge.com.


License

Commercial license — see LICENSE.

TL;DR: unlimited personal and business use after purchase, no resale or redistribution of the source.


Support

  • Bugs and feature requests: email hello@oneshotforge.com with a clear repro.
  • License questions, volume pricing: same address.
  • Public changelog: CHANGELOG.md.

Built by OneShotForge.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Self-hosted MCP email server for IMAP and SMTP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-email)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication