MCP
Connect Agents To Mailboxes
LiteMX gives MCP-compatible agents scoped access to custom-domain mailboxes. Agents can search, read, draft, and send only when their token permits it.
Model
LiteMX is not an AI assistant. It does not choose how to answer email by itself. It provides infrastructure that external agents can use to search, read, draft, and, when explicitly allowed, send replies.
Transport
The remote MCP endpoint is available at:
https://litemx-api-worker.litemx.workers.dev/mcpIt uses stateless Streamable HTTP-style JSON-RPC over POST /mcp. Private founder mode uses LiteMX bearer-token auth. Before broad public launch, LiteMX should implement OAuth-based remote MCP authorization.
Tools
list_mailboxessearch_messageslist_threadsread_threadread_messagecreate_draftsend_draftreply_to_threadget_agent_instructions
reply_to_thread creates a reply draft. send_draft is the only MCP send tool and requires explicit send scope.
Scopes
MCP tools enforce LiteMX-owned scoped tokens. Scopes separate read, search, draft, and send operations.
litemx tokens create --name triage-bot \
--mailbox support@project.dev \
--scopes messages:read,messages:search,drafts:writeThat token can help an agent understand and draft a response, but it cannot send. Sending requires an explicit send scope.
| Use | Scopes |
|---|---|
| Read/search | mailboxes:read,messages:read,messages:search |
| Draft replies | Add drafts:write |
| Send drafts | Add email:send |
Send Preflight
Sending through MCP depends on the same outbound preflight as CLI/API sending: verified provider readiness, explicit send scope, per-message recipient cap, plan send limits, and provider approval.