EngageLab Agent Email MCP Server
OfficialSend, receive, and manage threaded email from AI agents through dedicated EngageLab mailboxes.
Discover available mailboxes and their IDs.
Send new emails with text/html bodies, cc/bcc, reply-to, preview text, and up to 10 attachments (10MB total).
Send in sandbox mode for testing without real delivery.
Reply to inbound messages with recipients and thread inferred from the original email.
List, search, filter, and paginate inbound messages by mailbox or keyword.
Get full message details, including body and attachments, by UID.
Poll one-shot for new mail received since the last check.
Browse conversation threads and list all messages within a thread oldest-first.
Use it locally via stdio MCP with Claude Desktop, Claude Code, Cursor, LangChain, Composio/Rube, and other MCP clients.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EngageLab Agent Email MCP Server List my mailboxes, then send an email to alice@example.com saying the invoice is approved."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
EngageLab Agent Email MCP Server
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.
{
"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
Related MCP server: InboxAPI CLI
Tools
Tool | What it does | |
Discover |
| List mailboxes; call this first to get IDs |
Send |
| New email (text/html, cc/bcc, attachments, sandbox) |
| Reply to a message — recipients & thread inferred | |
Receive |
| Inbound mail, filter by mailbox/keyword |
| Full message details by UID | |
| One-shot poll for new mail | |
Threads |
| Browse conversations |
Quickstart
MCPB bundle
For local stdio distribution, build an MCPB bundle (format: MCPB):
npm run build:mcpbThe bundle is generated at dist/engagelab-agent-email.mcpb for MCPB-compatible clients.
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:
claude mcp add engagelab-email \
-e ENGAGELAB_EMAIL_SECRET_KEY=sk_sg_your_key \
-- npx -y @engagelabemail/mcpThen ask your agent:
List my mailboxes, then send an email from the first one to bob@example.com saying the invoice is approved.
A typical agent loop for a support bot:
check_new_messages() → [messageUids]
get_message(uid) → body, attachments
list_thread_messages(threadId) → full conversation context
reply_email(uid, { text: ... }) → response lands in the same threadUse with Composio / Rube
Composio does not list third-party MCP servers as managed toolkits, but you can connect this server as a custom MCP server in the Composio dashboard or in Rube (Composio's universal MCP client): use npx -y @engagelabemail/mcp as the command and set ENGAGELAB_EMAIL_SECRET_KEY the same way as in the JSON block above.
Use with LangChain
LangChain works with any MCP server through the official langchain-mcp-adapters package:
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"engagelab-email": {
"command": "npx",
"args": ["-y", "@engagelabemail/mcp"],
"env": {"ENGAGELAB_EMAIL_SECRET_KEY": "sk_sg_your_key"},
"transport": "stdio",
}
})Agent Skill (Claude Code)
skills/engagelab-email/SKILL.md packages the common inbox workflow — read the thread, draft, get approval, send or reply with a persisted cursor — as an Agent Skill. Use it together with the MCP server above; it contains no credentials and only references ENGAGELAB_EMAIL_SECRET_KEY from the environment.
Configuration
Environment variable | Required | Description |
| Yes | Secret Key starting with |
| No | Override the API base URL. Inferred from the key region: |
Limits: up to 10 attachments / 10MB total per message (base64-encoded in the tool schema).
Troubleshooting
list_mailboxesreturns 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. CheckENGAGELAB_EMAIL_SECRET_KEYand 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_URLexplicitly.Reply shows up as a new conversation — use
reply_email(notsend_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_messagesURL-based attachment references (no base64 in context)
Run from source
git clone https://github.com/Metaverse-Cloud/engagelab-email-mcp
cd engagelab-email-mcp
npm install && npm run build
ENGAGELAB_EMAIL_SECRET_KEY=sk_sg_xxx node dist/index.cjsRelated
EngageLab Agent Email CLI — same mailboxes from the terminal,
--jsonoutput for agentsEngageLab Node SDK / Python SDK — send email from code
License
Available Tools
9 toolscheck_new_messagesA
Poll for new inbound messages received since the last check (one-shot; does not block). Use this to monitor an inbox for new email.
Inputs: limit, mailboxId.
get_messageA
Get full details of one inbound message by its UID, including body and attachments.
Inputs: messageUid (required).
get_threadB
Get details of one conversation thread.
Inputs: threadId (required).
list_inbound_messagesB
List inbound (received) email messages, newest first. Optionally filter by mailbox and keyword.
Inputs: pageNo, keyword, pageSize, mailboxId.
list_mailboxesA
List all mailboxes available to the authenticated account. Each mailbox has its own address for sending and receiving email. Call this first to discover mailbox IDs used by other tools.
Inputs: no named parameters.
list_thread_messagesA
List all messages inside a conversation thread, oldest first.
Inputs: threadId (required), pageNo, pageSize.
list_threadsC
List conversation threads. A thread groups messages exchanged with the same counterpart.
Inputs: pageNo, keyword, pageSize, mailboxId.
reply_emailA
Reply to an inbound message. Recipients are inferred from the original message; additional cc/bcc can be added. Provide either text or html body.
Inputs: messageUid (required), cc, bcc, html, +6 more.
send_emailA
Send a new email from one of your EngageLab mailboxes. Provide either text or html body. Recipients are arrays of email addresses. Use sandbox=true for testing without real delivery.
Inputs: to (required), mailboxId (required), cc, bcc, +8 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool maps to a distinct resource/action: mailbox discovery, message listing/retrieval, sending/reply, and thread navigation. The only mild overlap is between check_new_messages and list_inbound_messages, but their descriptions clearly separate the polling behavior from general listing.
All tool names consistently follow the snake_case verb_noun pattern (get_message, list_mailboxes, send_email, reply_email, etc.), with no mixed conventions or vague verbs.
Nine tools is well within the ideal range for an email-focused server, covering mailbox discovery, message operations, sending, replying, and threads without unnecessary bloat.
The core email lifecycle is covered: discover mailboxes, list/read inbound messages, send new emails, reply to existing ones, and inspect threads. Minor gaps include no way to list sent messages and no support for sending attachments, but these are not fatal for typical agent email workflows.
Related MCP Connectors
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Email and optional phone for AI agents: send, receive, search, draft and call over MCP.
Hosted email for AI agents: create inboxes, send, receive, and reply over MCP with scoped API keys
Related MCP Servers
- AlicenseAqualityDmaintenanceEmail infrastructure for AI agents — create inboxes, send/receive email, search messages, and manage threads via MCP tools.105 npm2MIT

InboxAPI CLIofficial
AlicenseNot gradedqualityBmaintenanceProvides an AI agent with its own email address to send, receive, and manage emails via MCP. No email server setup required.85 npm14MIT- FlicenseNot gradedqualityDmaintenanceGive AI agents their own email inboxes. Create, send, receive, and manage email entirely via MCP tools.-
- FlicenseBqualityDmaintenanceEnables external AI agents to read, send, and manage email over IMAP/SMTP via MCP, including inbox listing, search, drafts, scheduled/batch sending, and operations like reply, archive, and labels.303-