Official EngageLab Agent Email MCP server for AI agents to send, receive, monitor, and reply to email
EngageLab Agent Email MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
**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.
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
| | Tool | What it does |
|---|---|---|
| **Discover** | list_mailboxes | List mailboxes; call this first to get IDs |
| **Send** | send_email | New email (text/html, cc/bcc, attachments, sandbox) |
| | reply_email | Reply to a message — recipients & thread inferred |
| **Receive** | list_inbound_messages | Inbound mail, filter by mailbox/keyword |
| | get_message | Full message details by UID |
| | check_new_messages | One-shot poll for new mail |
| **Threads** | list_threads / get_thread / list_thread_messages | Browse conversations |
Quickstart
Smithery / MCPB
For local stdio distribution, build an MCPB bundle:
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:
Then 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:
Configuration
| Environment variable | Required | Description |
|---|---|---|
| ENGAGELAB_EMAIL_SECRET_KEY | Yes | Secret Key starting with sk_ |