Engagelab Email

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

Send, receive, monitor and reply to email from AI agents with threaded inbox context.

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

本地 MCP 服务器,为 AI 智能体提供专属 EngageLab 邮箱,可收发、监控并回复邮件,并保留会话线程上下文。

可以做什么
列出邮箱并选定智能体要用的邮箱;邮箱 ID 需先获取,且邮箱要在 EngageLab 控制台创建,智能体无法自行开通。发送新邮件,支持纯文本或 HTML 正文、抄送/密送、附件和沙箱模式;也可直接回复某封邮件,收件人与线程关系自动推断。读取收件:按邮箱或关键词列出收到的邮件、按 UID 获取完整内容,或一次性轮询新邮件。浏览会话:列出线程、查看线程详情及线程内各封邮件,使回复与历史保持归组。
适用场景
适合需要真正双向邮箱而非只能发信的智能体场景,例如客服机器人、日程助理或审批流程,需要读取回复并在同一线程中作答。沙箱模式可在不打扰真实收件人的情况下测试这类流程。
运行要求
以 stdio 方式在本地运行,通常通过 npx 使用 npm 包。需要 EngageLab 账号,并在 ENGAGELAB_EMAIL_SECRET_KEY 中提供 Secret Key,密钥前缀决定区域。需先在 EngageLab 控制台创建至少一个邮箱。ENGAGELAB_EMAIL_BASE_URL 为可选项,用于覆盖推断出的 API 地址。
安装前请注意
Secret Key 是通过环境变量传入的凭据,可访问账号下的邮箱,请勿写入共享配置。该服务器会向真实收件人发送邮件并可读取收件,应明确智能体可发送的内容范围。附件在工具调用中以 base64 编码,单封邮件最多 10 个附件或 10MB。邮件内容与附件会发送至 EngageLab 的 API。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Engagelab Email,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

EngageLab Agent Email MCP Server

[npm] [License: MIT] [Node]

English | 简体中文

Official EngageLab Email project.

This repository distributes a local stdio MCP server. It does not provide a hosted OAuth or HTTP MCP endpoint; run it locally with the installation command below.

Send, receive, and reply to email from AI agents — through the Model Context Protocol.

Each agent gets its own mailbox: a real address that sends and receives, with conversations grouped into threads so your agent has context. Works with Claude Desktop, Claude Code, Cursor, Cowork, and any MCP-compatible client.

json
{  "mcpServers": {    "engagelab-email": {      "command": "npx",      "args": ["-y", "@engagelabemail/mcp"],      "env": { "ENGAGELAB_EMAIL_SECRET_KEY": "sk_sg_your_key" }    }  }}

Why

Most email APIs are send-only. Agents that need to have a conversation over email — support, scheduling, approvals — need an inbox.

  • Send & receive — the agent owns a dedicated mailbox, not a bolted-on parse webhook
  • Thread-aware — replies group into conversations, so the agent sees full history
  • Sandbox mode — test agent flows without emailing real humans
  • One env var — no OAuth dance for local use; region inferred from the key

Tools

ToolWhat it does
Discoverlist_mailboxesList mailboxes; call this first to get IDs
Sendsend_emailNew email (text/html, cc/bcc, attachments, sandbox)
reply_emailReply to a message — recipients & thread inferred
Receivelist_inbound_messagesInbound mail, filter by mailbox/keyword
get_messageFull message details by UID
check_new_messagesOne-shot poll for new mail
Threadslist_threads / get_thread / list_thread_messagesBrowse conversations

Quickstart

Smithery / MCPB

For local stdio distribution, build an MCPB bundle:

bash
npm run build:mcpb

The bundle is generated at dist/engagelab-agent-email.mcpb and can be uploaded through Smithery publishing.

Official MCP Registry

EngageLab Agent Email is also listed in the official MCP Registry. Clients that consume the Registry can find it by the server name io.github.Metaverse-Cloud/engagelab-email; the underlying npm package remains @engagelabemail/mcp.

1. Get a Secret Key. Create an EngageLab account and generate a key from the console (format sk_sg_xxx — the prefix selects the region). Or use the CLI: engagelab-email-cli login creates one via browser.

2. Create a mailbox. In the console, create a mailbox for your agent (shared subdomain is instant; custom domains need DNS verification). Programmatic mailbox creation is on the roadmap — see Troubleshooting if list_mailboxes returns empty.

3. Register the server.

Claude Desktop — add the JSON block above to claude_desktop_config.json.

Claude Code:

bash
claude mcp add engagelab-email \  -e ENGAGELAB_EMAIL_SECRET_KEY=sk_sg_your_key \  -- npx -y @engagelabemail/mcp

Then ask your agent:

List my mailboxes, then send an email from the first one to [email protected] saying the invoice is approved.

A typical agent loop for a support bot:

check_new_messages()            → [messageUids]get_message(uid)                → body, attachmentslist_thread_messages(threadId)  → full conversation contextreply_email(uid, { text: ... }) → response lands in the same thread

Configuration

Environment variableRequiredDescription
ENGAGELAB_EMAIL_SECRET_KEYYesSecret Key starting with sk_
ENGAGELAB_EMAIL_BASE_URLNoOverride the API base URL. Inferred from the key region: sg → Singapore, tr → Türkiye

Limits: up to 10 attachments / 10MB total per message (base64-encoded in the tool schema).

Troubleshooting

  • list_mailboxes returns an empty list — your account has no mailbox yet. Create one in the EngageLab console (see Quickstart step 2). Agents cannot self-provision mailboxes yet.
  • 401 / code 100101 — the Secret Key is wrong or revoked. Check ENGAGELAB_EMAIL_SECRET_KEY and that the key's region prefix (sk_sg_ / sk_tr_) matches the endpoint you use.
  • Could not determine API base URL — the key's region prefix isn't recognized. Set ENGAGELAB_EMAIL_BASE_URL explicitly.
  • Reply shows up as a new conversation — use reply_email (not send_email) so In-Reply-To headers and threading stay intact.

Roadmap

  • Hosted MCP (OAuth) for zero-config remote use
  • Programmatic mailbox creation via Secret Key
  • Webhook push (no polling) for check_new_messages
  • URL-based attachment references (no base64 in context)

Run from source

bash
git clone https://github.com/Metaverse-Cloud/engagelab-email-mcpcd engagelab-email-mcpnpm install && npm run buildENGAGELAB_EMAIL_SECRET_KEY=sk_sg_xxx node dist/index.cjs

Related

License

MIT

来源:README.md,提交 1a1b1c0

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

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

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