Описание
MCP Server that can connect to IMAP and SMTP
README
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
- Deployment guide: Docker, reverse proxy, direct HTTPS, OAuth secrets, and runtime setup.
- Integration guide: ChatGPT setup, routing quirks, and untested notes for Claude, Mistral, Perplexity, and other MCP clients.
- Configuration reference: complete environment-variable reference for server and test-suite settings.
- Example prompts: safe prompts for common mail actions and full-capability smoke testing.
- Local shell debugging: non-production helper for running without Docker, including reverse-proxy and standalone HTTPS modes.
- Manual MCP compatibility suite: destructive end-to-end mailbox test flow.
- Security operations: secrets, audit logs, OAuth cookies, and operational security notes.
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.
Установка Imap Smtp
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/mrworf/imap-smtp-mcpFAQ
Imap Smtp MCP бесплатный?
Да, Imap Smtp MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Imap Smtp?
Нет, Imap Smtp работает без API-ключей и переменных окружения.
Imap Smtp — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Imap Smtp в Claude Desktop, Claude Code или Cursor?
Открой Imap Smtp на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Gmail
Read, send and search emails from Claude
автор: GoogleSlack
Send, search and summarize Slack messages
автор: SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Compare Imap Smtp with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication
