About Saasmail
Saasmail is an MCP server published by choyiny in the Cloud category: self-hosted email server for SaaS teams on Cloudflare Workers with WebMCP support. Conduid read 26 tools from its source: compose_email, compose_from_template, delete_email, enroll_in_sequence, enroll_sequence, get_contact and 20 more. No package is published for it, so it installs from a source checkout.
The repository has 283 stars and 55 forks, is licensed Apache-2.0, and its last commit was on 13 Nov 2026. The latest release is v2.0.0 (27 Oct 2026): saasmail 2.0 brings a new design, Gmail- and Outlook-style layouts, per-user Trash, Undo Send, and star, pin, archive and snooze. It follows v1.3.1 (21 Oct 2026), and the 5 most recent releases go back to v1.2.0 (19 Oct 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include cloudflare-workers, email and saas.
Install
git clone https://github.com/choyiny/saasmailTools (26)
compose_emailOpen the compose drawer pre-filled with a draft. The user reviews it and clicks Send — this does NOT send.| Parameter | Type | Description |
|---|---|---|
| bodyHtml | string | HTML body. |
| from | string | Sender inbox address. |
| subject | string | |
| to * | string | Recipient email. |
compose_from_templateRender a template with variables and open the compose drawer pre-filled with the result for the user to review and send.| Parameter | Type | Description |
|---|---|---|
| from | string | |
| slug * | string | Template slug. |
| to * | string | |
| variables | object | Values for the template's {{variables}}. |
delete_emailPermanently delete a message and its attachments. Works for received and sent messages. This cannot be undone — there is no trash — so confirm with the user before calling it.| Parameter | Type | Description |
|---|---|---|
| emailId * | string | Email id, from list_emails. |
enroll_in_sequenceEnroll a contact in a drip sequence immediately (no confirmation). Requires the sequenceId — call list_sequences first to find one. Sends from the contact's inbox unless `from` is given.| Parameter | Type | Description |
|---|---|---|
| from | string | Sender inbox address. Defaults to the contact's inbox. |
| personId * | string | |
| sequenceId * | string | Sequence id, from list_sequences. |
| variables | object | Values for the sequence templates' {{variables}}. |
enroll_sequenceEnrol a contact into a drip sequence. The first step sends immediately and later steps are scheduled from it. A contact can only be in one active sequence at a time, and sending them direct mail cancels it.| Parameter | Type | Description |
|---|---|---|
| delayOverrides | object | Map of step order (as a string) to hours, overriding that step's delay. The first step always sends immediately. |
| fromAddress * | string | Sender identity; must be one of your allowed inboxes. |
| personId | string | Existing contact id. Use instead of personEmail. |
| sequenceId * | string | Sequence id. |
| skipSteps | array | Step `order` numbers to skip entirely. |
get_contactGet one contact with unread/total counts.| Parameter | Type | Description |
|---|---|---|
| personId * | string |
get_personFetch a single contact by id, including unread and total message counts.| Parameter | Type | Description |
|---|---|---|
| personId * | string | Person id, from list_people. |
get_playbookREAD THIS FIRST, before any other tool. Returns how to operate saasmail plus step-by-step plans for common workflows (summarize unread, reply to unread, enroll contacts by criteria). Pass a `workflow` for its steps. It requires you to call visualize_plan with your intended steps BEFORE you read, reply, or enroll anything.| Parameter | Type | Description |
|---|---|---|
| workflow | string | Which workflow's step-by-step detail to return. |
get_templateGet one template by slug, including its body and variables.| Parameter | Type | Description |
|---|---|---|
| slug * | string |
list_contactsSearch contacts (people) by name or email.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (default 25). |
| q | string | Name or email to search for. |
list_conversationsList inbox rows (contacts and multi-party conversations), newest first. Optional text query and unread filter.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max rows (default 25). |
| q | string | Filter by contact name/email/subject. |
| unread | boolean | Only rows with unread mail. |
list_emailsList messages for one contact (personId) or one conversation (conversationId). Provide exactly one.| Parameter | Type | Description |
|---|---|---|
| conversationId | string | |
| limit | number | |
| personId | string | |
| q | string | Text filter (personId mode only). |
list_inboxesList inbox addresses and sender identities available to the user.list_peopleList contacts, most recently active first. Each row is a (person, inbox) pair — the same person appears once per inbox they have corresponded with. Use the returned person id with list_emails.| Parameter | Type | Description |
|---|---|---|
| q | string | Filter by email address or name substring. |
| recipient | string | Only people who corresponded with this inbox address. |
list_sequencesList drip sequences the user can enroll contacts into.list_templatesList email templates (slug, name, subject).mark_readMark a received message as read.| Parameter | Type | Description |
|---|---|---|
| emailId * | string |
mark_unreadMark a received message as unread.| Parameter | Type | Description |
|---|---|---|
| emailId * | string |
open_contactNavigate the app to a contact's inbox thread so the user can see it.| Parameter | Type | Description |
|---|---|---|
| personId * | string |
read_emailGet one email in full, including body and attachments.| Parameter | Type | Description |
|---|---|---|
| emailId * | string |
reply_emailDraft a reply to a received message. Saves the draft and shows it in the inbox's Drafts filter — the user opens it, reviews, and clicks Send. This does NOT send.| Parameter | Type | Description |
|---|---|---|
| bodyHtml * | string | HTML reply body. |
| emailId * | string | The email to reply to. |
search_emailsFull-text search across received and sent mail when you don't already know the contact. Returns message-level hits with a snippet; call read_email for the full message.| Parameter | Type | Description |
|---|---|---|
| inbox | string | |
| limit | number | |
| q * | string | Words to find in subject and body. |
send_emailCompose and send a new message. fromAddress must be an inbox you may send from — call whoami to see which. Sending to a contact cancels any drip sequence they are enrolled in, since a direct message supersedes the automation.| Parameter | Type | Description |
|---|---|---|
| bodyHtml * | string | HTML body. |
| bodyText | string | Plain-text alternative. Strongly recommended — messages without one are downranked by some providers. |
| subject * | string | Subject line. |
send_templateSend a saved template to one recipient, interpolating its {{variables}}. fromAddress must be an inbox you may send from — call whoami to see which. Attachments and cc are not supported here.| Parameter | Type | Description |
|---|---|---|
| fromAddress * | string | Sender identity; must be one of your allowed inboxes. |
| slug * | string | Template slug. |
visualize_planShow the user the plan you're about to run (and update it as you go) on the inbox's Agent Plan tab. Call this early with all steps as status 'pending', then call it again — with the same steps — flipping each to 'active' then 'done'/'error'. Purely visual; it schedules nothing.| Parameter | Type | Description |
|---|---|---|
| result | string | Final output to show at the end once the work is done — e.g. the finished summary. Fill this in on your last update. |
| steps * | array | The ordered steps, each with a status. |
| title | string | Plan title, e.g. “Summarize all unread email”. |
whoamiReturn the signed-in user (name, email) and the inbox addresses they can act on.Security checks
- ✓README presentThe repository's README runs to about 1.2K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 322 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 1.2K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README