
mcp-email-server
MCP通过 IMAP/SMTP 让 agent 读取、搜索、整理和发送邮件,任何支持这两种协议的邮箱都能接入,支持多个账号,自带本地网页配置界面。需要邮箱账号的密码或授权码。
mcp-email-server
An MCP server for reading, searching, organizing, and sending email through IMAP and SMTP.
[!NOTE] Version 1.0.0 introduces Local Email App V2. Updating the package does not automatically import existing settings created with PyPI 0.16.0 and earlier: they remain active in backward-compatible
legacymode, so there is no required migration. If you would like to use the new managed storage, you can review and import those settings whenever it is convenient.
mcp-email-server supports Windows, macOS, and Linux. See
Security for platform-specific filesystem and credential
storage details.
Optional migration for existing installations
An @latest release that includes Local Email App V2 offers a preview-first
CLI migration:
uvx mcp-email-server@latest config init \
--database ~/.config/mcp-email-server/managed.sqlite3
uvx mcp-email-server@latest config import-legacy
uvx mcp-email-server@latest config import-legacy --apply
uvx mcp-email-server@latest config doctor
The apply step displays the plan again and asks for IMPORT confirmation. A
complete import selects managed mode; otherwise the existing legacy settings
remain selected. The source TOML file and its legacy keyring entries are left
untouched. You can also run uvx mcp-email-server@latest ui and choose Import
existing settings. After a successful import, restart running MCP clients. See
the detailed upgrade guidance
and import troubleshooting.
Quick start
1. Configure an email account
From this source checkout, run the configuration UI with
uv:
uv sync
uv run mcp-email-server ui
For a published release whose notes state that it includes Local Email App V2,
uvx mcp-email-server@latest ui is the equivalent temporary invocation.
Keep the foreground command running. On a truly empty installation, the authenticated browser session prepares private account storage at the safe local default; existing TOML or environment configuration instead offers an explicit import review while the previous settings keep running. The account-first UI has only Email accounts and Settings & help as primary destinations. Start with the email address and password; the UI fills common connection settings from the email domain and keeps them editable, while outgoing mail remains optional. A saved complete account is ready without a separate activation step. Use Password & test on the saved account if desired, then restart the MCP client to apply the selected settings.
2. Configure the MCP client
Use the same V2-capable distribution for stdio as for the UI. For a published V2 release, add the following server definition to the MCP client:
{
"mcpServers": {
"mcp-email-server": {
"command": "uvx",
"args": ["mcp-email-server@latest", "stdio"]
}
}
}
Restart the MCP client after updating its configuration. When testing this
source checkout before publication, invoke uv run --directory /absolute/path/to/mcp-email-server mcp-email-server stdio instead of pairing a
managed catalog with PyPI @latest.
3. Verify the connection
Ask the client to list the configured email accounts or recent messages.
Other configuration methods
For the SQLite-backed managed CLI workflow, Windows and POSIX storage boundaries,
headless environments, multiple accounts, custom TLS settings, and
environment-variable configuration, see the
documentation. Release 1.6.2 and later
also publish Linux amd64/arm64 images at
ghcr.io/wh1isper/mcp-email-server; see the
container instructions.
Documentation
Development
See CONTRIBUTING.md.
License
This project is licensed under the terms of the LICENSE.
相關資源

Himalaya
CLI命令行邮件客户端,支持 IMAP、SMTP、JMAP、Gmail 与 Microsoft Graph,多账户、可用 --json 输出,适合让 agent 查收、搜索、撰写与发送邮件;首次运行时向导会自动探测邮箱配置。
pimalaya/himalaya7.8k
Google Workspace MCP Server
MCP操作 Gmail、日历、Drive、Docs、Sheets、Slides、Tasks、Chat 等 Google Workspace 服务,支持多用户 OAuth 与只读模式;需自建 Google OAuth 客户端并以 HTTP 模式启动。
taylorwilsdon/google_workspace_mcp3.6k
Time MCP Server
MCP为 agent 提供当前时间查询与 IANA 时区换算,自动识别系统时区,无需 API Key。MCP 官方参考服务器,Python 实现。
modelcontextprotocol/servers92.4k
Gmail
PluginOpenAI 官方 Codex 插件,通过 Gmail 连接器搜索邮件、阅读会话、起草回复、整理收件箱。插件本身不带额外技能,需在 Codex 中授权 Google 账号。
openai/plugins8.5k
Outlook Email
PluginOpenAI 官方 Codex 插件:通过 Outlook 连接器分拣收件箱、总结邮件往来、提取待办,并起草回复或转发,适合靠 Outlook 处理大量邮件的行政、法务与教务人员。需用 ChatGPT 账号登录 Codex 并授权 Microsoft 账号。
openai/plugins8.5k
Resend MCP Server
MCPResend 官方 MCP,让 agent 收发邮件,管理联系人、群发(Broadcasts)与发信域名。提供免安装的远程服务(OAuth 登录),也可用 npm 包本地运行,本地运行需要 Resend API Key。
resend/resend-mcp588