MepMail
io.github.JE4NVRG由 GitHub 账号 JE4NVRG 发布v0.71.1更新于 Oct 24, 2026
Transactional email and agent mailboxes: send, broadcasts, domains, Correio inboxes.
概览
MepMail 让助手发送事务性邮件、管理联系人和域名,并在 Correio 代理邮箱中读取、起草和发送邮件。
- 可以做什么
- 发送、定时、改期或取消事务性邮件,支持单次最多 100 封的批量发送,并提供单封邮件最佳实践报告和用量查询。查询邮件状态与时间线,并在批量发送前检查账户送达率。创建、更新、删除或彻底清除联系人,并列出域名、广播、模板、Webhook 和抑制列表。使用 Correio 代理密钥时,列出并读取邮箱邮件、获取附件。保存草稿、回复和转发,然后发送或请求邮箱所有者批准。
- 适用场景
- 适合需要让助手发送或定时事务性邮件、查看投递状态、管理联系人和受众数据,或在 Correio 邮箱中读信、准备草稿并在有权限时发送的场景。
- 运行要求
- 本地 npm 包需要 Node.js 20 或更高版本,也可使用托管 OAuth 端点。至少需要 MEPMAIL_API_KEY(用于发送和联系人工具的完全访问团队密钥)或 MEPMAIL_MAIL_TOKEN(用于邮箱的 Correio 代理密钥)之一。可选 MEPMAIL_BASE_URL、MEPMAIL_MAIL_ORIGIN、MEPMAIL_MAIL_DOWNLOAD_DIR 和 MEPMAIL_MAIL_UPLOAD_DIR。需要能访问 MepMail API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 MepMail,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.JE4NVRG%2Fmepmail/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"mepmail": {
"type": "http",
"url": "https://api.mepmail.dev/mcp"
}
}
}README
@mepmail/mcp
Official MepMail MCP server for local MCP clients — Claude Desktop, Claude Code, Cursor, Codex and anything that speaks stdio. It drives your MepMail instance over the public REST API (Resend-compatible wire) with a team API key, and, with a Correio agent key, your mailboxes: read the inbox, save replies as drafts and send them (or ask the owner to approve).
MepMail also runs a hosted MCP server (OAuth, no install) at
https://api.mepmail.dev/mcp. This package is for clients that launch
local servers from config. Tool names and result shapes match the hosted
server's; it covers a subset — the reading, sending and contact tools (22) —
and the write surfaces beyond contacts (segments, topics, broadcasts,
templates, webhooks, domains, API keys) plus the team picker are hosted-only.
Guide: https://docs.mepmail.dev/mcp ·
Packages: https://docs.mepmail.dev/packages · Published as
@mepmail/mcp on npm.
Requires Node.js 20 or newer.
Quickstart
- Create an API key in the MepMail dashboard (API keys) — a full-access
key, optionally scoped to the sender domain your agent sends from. A
sending-access key is confined to
/emails, so it would 403 on the contact tools (list_contacts,get_contact,create_contact,update_contact,delete_contact) withrestricted_api_key. - Add the server to your client:
Claude Desktop (claude_desktop_config.json) — and any client with the
same config shape (Cursor: mcp.json):
Claude Code:
Correio mailboxes — create an agent key in Correio → Settings → Agents:
mmb_... for one mailbox, or "Connect an agent to several mailboxes" for an
mmt_... credential over the mailboxes you choose, with read, draft and
optionally send permission. Then add it to the same server (an API key is
optional when you only need mailboxes):
Environment
Set at least one of MEPMAIL_API_KEY and MEPMAIL_MAIL_TOKEN.
Tools (22)
Send and manage email:
send_email— send or schedule one transactional email (cc/bcc/reply_to, tags, attachments, topic-scoped sends).send_email_batch— up to 100 emails in one call.get_email,list_emails— status and timeline (last_event: delivered, bounced, complained, ...).update_email,cancel_email— reschedule or cancel a scheduled email.get_email_insights— per-email best-practice report and score.get_deliverability,get_usage— account standing before bulk work.
Audience and account:
create_contact,update_contact,delete_contact(witherase=truefor GDPR/LGPD scrubbing),get_contact,list_contacts— with segment filters.list_domains,get_domain— DNS records and verification state.list_broadcasts,get_broadcast.list_templates,get_template.list_webhooks,list_suppressions.
Correio mailboxes (with MEPMAIL_MAIL_TOKEN, same five tools as the hosted
https://api.mepmail.dev/mcp/correio):
mailbox_list_accounts— the mailboxes the key reaches, with permissions and the default one.mailbox_list_messages,mailbox_read_message— inbox, drafts and sent; passmailboxwith a team credential. Listing is one page at a time, newest first: pass the returnednextCursorascursoruntilhasMoreis false (a cursor only works for the same mailbox, folder and filters). Filters run on the server before the page is cut:query(words, "quoted phrases",de:/from:,para:/to:,assunto:/subject:,tem:anexo,depois:/antes:),from,subject,unread,after,before;limitup to 100 (50 when searching). Mail that arrives while paging comes before the first page, so start over to see it. A short or empty page never proves a message is absent from the mailbox, and search reads an index that can lag about a minute behind new mail. Dates: a listing'safter/beforeuse the order time (arrival, or when a snoozed message came back; a draft's last edit), a search uses the arrival time, and a search also finds snoozed messages, which the listing leaves out until they return.mailbox_get_attachment— one attachment by message id, revision and index (frommailbox_read_message): filename, bytes and sha256. WithMEPMAIL_MAIL_DOWNLOAD_DIRset the file is saved there (never overwriting); otherwise it comes back ascontent_base64, up to 512 KiB.mailbox_save_draft— new draft, edit, reply or forward, from that mailbox's address and signature.attachmentsadds files as{ filename, content_base64 }, or{ path }for a file insideMEPMAIL_MAIL_UPLOAD_DIR(no other local path is ever read);keep_attachmentspicks the files to keep from the edited draft or the forwarded message (by default all of them; a reply keeps none). Limits: 10 files, 256 KiB each, about 700 KiB in all. Files travel only inside the draft request, so nothing is left behind when a draft is abandoned.mailbox_send_draft— sends with the send permission; otherwise the owner gets an approval request (awaiting_approval).
Every tool result is one JSON block envelope — { notice, untrusted_data } —
so agents can tell team-authored strings from tool output and never treat
recipient data as instructions.
Safe retries when sending
send_email and send_email_batch accept an optional top-level
idempotency_key. Keep the same key and identical arguments when retrying the
same send operation. Generate a new key for a new operation. The server passes
it as the HTTP Idempotency-Key header; it is not an email header or message
field.
Keys are scoped to the team and retained for 24 hours. A completed retry replays the original result. Reusing a key with different arguments returns a conflict; an operation still in progress can also return a conflict. An incomplete reservation can be recovered after 10 minutes. These limits apply to the server, so use an API version that supports this contract.
Agent discovery
- Machine catalog: https://mepmail.dev/.well-known/ai-catalog.json
- Auth guide for agents: https://mepmail.dev/auth.md
- API + errors + rate limits: https://docs.mepmail.dev
License
MIT
来源:packages/mcp/README.md,提交 33c43a5
工具
0版本历史
3- v0.71.1最新Oct 16, 2026
- v0.71.0Oct 9, 2026
- v0.6.69Sep 28, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分