MepMail

io.github.JE4NVRG由 GitHub 账号 JE4NVRG 发布v0.71.1更新于 Oct 24, 2026

Transactional email and agent mailboxes: send, broadcasts, domains, Correio inboxes.

已验证Streamable HTTP可网页运行沟通与协作商业与电商

概览

AI 生成的概览

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 的网络。
安装前请注意
API 密钥和邮箱令牌是敏感凭据,以 Bearer 方式发送;联系人工具需要完全访问密钥,建议尽量限定到发件域名。发送、定时、取消、修改联系人以及删除或清除联系人均会改动数据,发送邮件可能产生费用。附件下载和上传仅限配置的目录。本地包只覆盖部分工具;广播、域名、API 密钥等写入功能仅在托管服务中提供。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MepMail,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

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

[MepMail MCP server]

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

  1. 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) with restricted_api_key.
  2. Add the server to your client:

Claude Desktop (claude_desktop_config.json) — and any client with the same config shape (Cursor: mcp.json):

json
{  "mcpServers": {    "mepmail": {      "command": "npx",      "args": ["-y", "@mepmail/mcp"],      "env": {        "MEPMAIL_API_KEY": "ms_...",        "MEPMAIL_BASE_URL": "https://api.mepmail.dev"      }    }  }}

Claude Code:

bash
claude mcp add mepmail -e MEPMAIL_API_KEY=ms_... -e MEPMAIL_BASE_URL=https://api.mepmail.dev -- npx -y @mepmail/mcp

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):

bash
claude mcp add mepmail -e MEPMAIL_MAIL_TOKEN=mmt_... -- npx -y @mepmail/mcp

Environment

Set at least one of MEPMAIL_API_KEY and MEPMAIL_MAIL_TOKEN.

VariableRequiredDefaultMeaning
MEPMAIL_API_KEYfor sending tools—Team API key (ms_...). Sent as Bearer to your instance only.
MEPMAIL_BASE_URLnohttps://api.mepmail.devYour instance's API URL.
MEPMAIL_MAIL_TOKENfor mailbox tools—Correio agent key (mmb_... or mmt_...). Sent as Bearer to the dashboard origin only.
MEPMAIL_MAIL_ORIGINnohttps://mepmail.devWhere your dashboard answers.

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 (with erase=true for 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; pass mailbox with a team credential. Listing is one page at a time, newest first: pass the returned nextCursor as cursor until hasMore is 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; limit up 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's after/before use 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 (from mailbox_read_message): filename, bytes and sha256. With MEPMAIL_MAIL_DOWNLOAD_DIR set the file is saved there (never overwriting); otherwise it comes back as content_base64, up to 512 KiB.
  • mailbox_save_draft — new draft, edit, reply or forward, from that mailbox's address and signature. attachments adds files as { filename, content_base64 }, or { path } for a file inside MEPMAIL_MAIL_UPLOAD_DIR (no other local path is ever read); keep_attachments picks 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

License

MIT

来源:packages/mcp/README.md,提交 33c43a5

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

3
  1. v0.71.1最新Oct 16, 2026
  2. v0.71.0Oct 9, 2026
  3. v0.6.69Sep 28, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分