Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Imap Smtp

FreeNot checked

MCP Server that can connect to IMAP and SMTP

GitHubEmbed

About

MCP Server that can connect to IMAP and SMTP

README

Personal Email Connector logo

CI Docker image

imap-smtp-mcp advertises itself as Personal Email Connector, a self-hosted MCP server that lets compatible remote MCP clients use a regular IMAP and SMTP account. It exposes an HTTP MCP endpoint, handles OAuth authorization, verifies users through IMAP login, and stores mailbox credentials encrypted in a local SQLite-backed OAuth store.

The intended production shape is a Docker container behind a public HTTPS reverse proxy. Remote MCP clients see only the public /sse endpoint and the OAuth metadata endpoints; IMAP and SMTP credentials are entered during OAuth authorization and are never supplied as tool arguments.

What It Provides

  • ChatGPT-compatible remote MCP over Streamable HTTP-style JSON-RPC at /sse.
  • Built-in OAuth authorization-code + PKCE flow with Dynamic Client Registration.
  • Separate IMAP and SMTP credentials per OAuth session.
  • ChatGPT-friendly mail aliases for common search, recent-mail, and send-mail requests.
  • SQLite persistence for OAuth clients, sessions, authorization codes, and refresh tokens.
  • Encrypted credential storage and audit logging with secret redaction.
  • IMAP folder lifecycle tools for creating, renaming, and deleting folders, guarded by write scopes and disabled-by-default action flags.
  • Docker deployment with healthchecks and reverse-proxy support.

Documentation

Container Image

Images are published to GitHub Container Registry:

ghcr.io/mrworf/imap-smtp-mcp

Package page: github.com/mrworf/imap-smtp-mcp/pkgs/container/imap-smtp-mcp

The CI workflow runs lint, type checks, and tests first. The Docker image job runs only after those quality gates pass, and only for Docker/runtime-relevant changes merged to main.

Local Debugging

For quick debugging outside Docker:

.venv/bin/python scripts/run_debug_server.py \
  --mode reverse-proxy \
  --host 127.0.0.1 \
  --port 8000 \
  --public-base-url https://mail-mcp.example.com

The shell helper is not a production launcher. It creates local runtime directories and may generate debug-only secrets or self-signed certificates. See local shell debugging before exposing it on a LAN/VPN interface.

License

This project is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE.

from github.com/mrworf/imap-smtp-mcp

Installing Imap Smtp

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/mrworf/imap-smtp-mcp

FAQ

Is Imap Smtp MCP free?

Yes, Imap Smtp MCP is free — one-click install via Unyly at no cost.

Does Imap Smtp need an API key?

No, Imap Smtp runs without API keys or environment variables.

Is Imap Smtp hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Imap Smtp in Claude Desktop, Claude Code or Cursor?

Open Imap Smtp on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Imap Smtp with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All communication MCPs