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 分