# Lettio MCP [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/lettio-eu/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 2788  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/lettio-mcp

## Description
Private, EU-hosted email for AI agents over JMAP: read, search, reply, organize, send.

## Tools
Capabilities this server exposes over MCP:

- **whoami** — Show the connected mailbox and whether it may send.
- **list_accounts** — List configured mailboxes (local server).
- **list_mailboxes** — List folders with message and unread counts.
- **list_recent_emails** — Latest messages in a folder, with paging.
- **search_emails** — Free text plus filters: sender, recipient, subject, dates, attachments, unread, folder.
- **read_email** — One message as text, with its attachments listed. HTML mail is converted.
- **get_thread** — A whole conversation, oldest first.
- **get_attachment** — Open an attachment: text and PDF as text, images as images, others as binary. Locally it can also save to a file.
- **send_email** — Send formatted mail **as the signed-in mailbox**, with attachments.
- **reply_email** — Reply in-thread, optionally to everyone, with attachments.
- **create_draft** — Save a message to Drafts without sending.
- **create_reply_draft** — Save a threaded reply to Drafts without sending.
- **send_draft** — Send a draft that is already in Drafts.
- **set_read_status** — Mark messages read or unread.
- **flag_email** — Flag or unflag messages.
- **label_email** — Add or remove a label.
- **move_email** — Move to a folder, `archive`, or `trash` (reversible).
- **create_folder** — Create a mail folder.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "lettio-mcp": {
    "command": "npx",
    "args": ["-y","@lettio/mcp"],
    "env": {
      "LETTIO_USERNAME": "",
      "LETTIO_PASSWORD": "",
      "LETTIO_ACCOUNTS": "",
      "LETTIO_HOST": "",
      "LETTIO_ACCOUNT_NAME": "",
      "LETTIO_BRANDS": ""
    }
  }
}
```

**Requires environment variables:** `LETTIO_USERNAME`, `LETTIO_PASSWORD`, `LETTIO_ACCOUNTS`, `LETTIO_HOST`, `LETTIO_ACCOUNT_NAME`, `LETTIO_BRANDS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Lettio MCP does

Lettio MCP exposes Lettio email accounts to AI agents through the Model Context Protocol. It supports mailbox discovery, folder browsing, paginated recent-message retrieval, filtered search, message and thread reading, attachment access, and common organization actions.

Agents can create messages and threaded replies as drafts, send existing drafts, or send immediately. Mail can be marked read or unread, flagged, labeled, moved between folders, archived, or placed in the trash. Moving to archive or trash is reversible, and agents can create new folders.

Messages sent through the server use the signed-in mailbox as the sender. The server checks the identities authorized for that mailbox and pins both the visible sender and SMTP envelope to the login address, preventing an agent from selecting an unrelated sender.

## How it works

The local server communicates with Lettio over JMAP, an open email protocol. MCP clients invoke individual tools for mailbox queries and mutations. A single configuration can represent one mailbox or multiple named mailboxes; tools can select an account when several are configured.

Email bodies are accepted as Markdown and rendered to styled HTML with a plain-text alternative. Supported formatting includes headings, tables, quotes, callouts, code blocks, numbered steps, and button-style links. The mailbox signature is added automatically. Attachments can be supplied as base64 data, read from a local path, or reused from another message. Bulk operations accept up to 100 message IDs.

A hosted OAuth-secured endpoint is also available at `https://mcp.lettio.eu/mcp`. The hosted service adds interactive email cards for MCP Apps-compatible clients, including Claude, with user actions for viewing, replying, archiving, trashing, previewing, and sending. This package is the local or self-hosted option.

## Setup and configuration

Use Node.js 18 or newer, a Lettio mailbox, and a dedicated mailbox app password. For a single account, set `LETTIO_USERNAME` and `LETTIO_PASSWORD`. `LETTIO_HOST` can override the default mail host, and `LETTIO_ACCOUNT_NAME` assigns a friendly account name.

For multiple mailboxes, set `LETTIO_ACCOUNTS` to a JSON array containing each account's name, username, and app password, then select the desired account in tool calls. Do not combine this multi-account setting with the single-account variables.

The package can be launched through `npx -y @lettio/mcp` from an MCP client configuration, or built from source with `npm install`, `npm run build`, and `npm start`. Credentials are read from environment variables, retained in memory, and not logged.

## Tools and capabilities

- Identify the connected mailbox and whether sending is allowed.
- List configured accounts and mailbox folders with message and unread counts.
- Retrieve recent messages with pagination or search using text, sender, recipient, subject, date, attachment, unread, and folder filters.
- Read messages and conversations, including converted HTML content and listed attachments.
- Open text, PDF, image, and other attachment types; the local server can also save attachments to a file.
- Send new messages, reply in-thread, create drafts, create reply drafts, and send saved drafts.
- Mark messages read or unread, flag them, label them, move them, archive them, trash them, and create folders.

## Limitations and notes

Sending is limited to the mailbox identity authorized for the authenticated account. Use a dedicated app password rather than the primary mailbox password. The interactive card tools belong to the hosted endpoint; the local tool set provides the mailbox operations listed above. Brand styling can be configured with `LETTIO_BRANDS`, using JSON or a path to a JSON file keyed by domain.

_Full upstream README: https://allmcps.com/mcp/lettio-mcp/readme_

