About Herald Mail App
Herald Mail App is an MCP server published by herald-email in the Browser category: herald is a terminal email client and inbox cleanup tool with IMAP, AI-assisted triage, MCP tools, and SSH/browser-friendly app modes. Conduid read 64 tools from its source: add_rule, archive_email, archive_sender, archive_thread, bulk_delete, bulk_move and 58 more. No package is published for it, so it installs from a source checkout.
The repository has 150 stars and 5 forks, and its last commit was on 30 Nov 2026. The latest release is v0.9.0-beta.1. It follows v0.8.0-beta.1, and the 5 most recent releases go back to v0.7.3-beta.1. It passes all 4 static checks Conduid ran on the repository. Its topics include browser.
Install
git clone https://github.com/herald-email/herald-mail-appTools (64)
add_ruleCreate a new email automation rule| Parameter | Type | Description |
|---|---|---|
| actions * | string | JSON array of RuleAction objects |
| name | string | Rule name (optional, auto-generated if empty) |
| trigger_type * | string | sender | domain | category | subject |
| trigger_value * | string | The value to match (email address, domain, category name, or case-insensitive subject substring) |
archive_emailArchive an email (move to Archive folder). Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| folder | string | Source folder (default: INBOX) |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID |
| source_id | string | Mail source ID from scoped MCP listing output |
archive_senderArchive all emails from a sender. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID when multiple accounts are configured |
| folder | string | Source folder (default: INBOX) |
| sender * | string | Sender email address |
| source_id | string | Mail source ID when multiple accounts are configured |
archive_threadArchive all emails in a thread (grouped by subject). Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID when multiple accounts are configured |
| folder * | string | IMAP folder name |
| source_id | string | Mail source ID when multiple accounts are configured |
| subject * | string | Thread subject to match |
bulk_deleteDelete a list of emails by message ID. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID when all message_ids belong to one account |
| folder | string | Folder hint when all message_ids belong to one folder |
| local_ids | string | JSON array of scoped Herald local IDs matching message_ids |
| message_ids * | string | JSON array of message IDs, e.g. ["id1","id2"] |
| source_id | string | Mail source ID when all message_ids belong to one source |
bulk_moveMove a list of emails to a target folder. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID when all message_ids belong to one account |
| folder | string | Folder hint when all message_ids belong to one folder |
| local_ids | string | JSON array of scoped Herald local IDs matching message_ids |
| message_ids * | string | JSON array of message IDs |
| source_id | string | Mail source ID when all message_ids belong to one source |
| to_folder * | string | Destination folder name |
classify_emailRun AI classification on one email| Parameter | Type | Description |
|---|---|---|
| message_id * | string | The Message-ID of the email to classify |
classify_email_customRun a custom classification prompt against an email and persist the result| Parameter | Type | Description |
|---|---|---|
| message_id * | string | The Message-ID of the email to classify |
| prompt_id * | number | The ID of the custom prompt to use (from list_classification_prompts) |
classify_folderBatch classify all unclassified emails in a folder using AI. Requires Ollama and a running herald daemon.| Parameter | Type | Description |
|---|---|---|
| folder * | string | IMAP folder name (e.g. INBOX) |
create_calendar_eventCreate a calendar event through the running herald daemon| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID |
| all_day | boolean | Whether this is an all-day event |
| calendar_id * | string | Calendar collection ID |
| description | string | Event notes/description |
| end * | string | End time, RFC3339 or YYYY-MM-DD HH:MM |
| end_timezone | string | IANA timezone for the end wall time |
| event_id | string | Provider event ID to request |
| location | string | Event location |
| source_id | string | Calendar source ID |
| start * | string | Start time, RFC3339 or YYYY-MM-DD HH:MM |
| start_timezone | string | IANA timezone for the start wall time |
| timezone | string | IANA timezone, for non-RFC3339 start/end values |
| title * | string | Event title |
create_cleanup_ruleCreate a new auto-cleanup rule. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| action * | string | Action to perform: 'delete' or 'archive' |
| match_type * | string | Match type: 'sender' or 'domain' |
| match_value * | string | Value to match, e.g. newsletter@example.com or example.com |
| name * | string | Human-readable rule name |
| older_than_days | number | Only affect emails older than this many days (default 30) |
create_folderCreate a new IMAP mailbox folder| Parameter | Type | Description |
|---|---|---|
| name * | string | Name for the new folder, e.g. 'Work/Projects' |
delete_calendar_eventDelete a calendar event through the running herald daemon| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID |
| calendar_id | string | Calendar collection ID |
| event_id | string | Provider event ID |
| instance_id | string | Recurrence instance ID, when present |
| local_id | string | Scoped Herald event local ID from list/search results |
| source_id | string | Calendar source ID |
delete_emailDelete an email. Requires the herald daemon to be running.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| folder | string | Folder name (default: INBOX) |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID |
| source_id | string | Mail source ID from scoped MCP listing output |
delete_folderPermanently delete an IMAP mailbox folder| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the folder to delete |
delete_threadDelete all emails in a thread (grouped by subject). Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID when multiple accounts are configured |
| folder * | string | IMAP folder name |
| source_id | string | Mail source ID when multiple accounts are configured |
| subject * | string | Thread subject to match |
draft_replyDraft a reply to an email. Requires AI and cached body.| Parameter | Type | Description |
|---|---|---|
| message_id * | string | Message ID to reply to |
| tone | string | Tone of reply: professional or casual (default: professional) |
dry_run_cleanup_rulesPreview cleanup rule matches without mutating mail| Parameter | Type | Description |
|---|---|---|
| folder | string | Optional folder filter; omitted means all demo folders |
| rule_id | number | Optional cleanup rule ID to preview; omitted means all enabled demo cleanup rules |
extract_action_itemsExtract action items from an email as a JSON array. Requires AI and cached body.| Parameter | Type | Description |
|---|---|---|
| message_id * | string | Message ID |
forward_emailForward an email to a new recipient. Requires the herald daemon to be running.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| body | string | Optional covering note (Markdown supported) |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID of the email to forward |
| omit_original_attachments | string | Set to true to omit all original file attachments from the forward |
| omitted_original_attachment_names | string | Comma-separated original attachment filenames to omit |
| preservation_mode | string | HTML preservation mode: safe, fidelity, or privacy (default: safe) |
| source_id | string | Mail source ID from scoped MCP listing output |
| to * | string | Recipient email address |
get_attachmentRetrieve a specific attachment from an email. Optionally save to disk. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| dest_path | string | If provided, save attachment to this local file path and return the path |
| filename * | string | Attachment filename (from list_attachments) |
| message_id * | string | Message ID of the email |
get_calendar_eventRead one cached calendar event by scoped EventRef fields| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID |
| calendar_id | string | Calendar collection ID |
| event_id | string | Provider event ID |
| instance_id | string | Recurrence instance ID, when present |
| local_id | string | Scoped Herald event local ID from list/search results |
| source_id | string | Calendar source ID |
get_contactFull profile + recent emails| Parameter | Type | Description |
|---|---|---|
| email * | string | Contact's email address |
get_custom_categoryRetrieve a stored custom classification result for an email| Parameter | Type | Description |
|---|---|---|
| message_id * | string | The Message-ID of the email |
| prompt_id * | number | The ID of the custom prompt |
get_email_bodyCached plain-text body| Parameter | Type | Description |
|---|---|---|
| message_id * | string | The Message-ID of the email (from list_recent_emails or search_emails) |
get_email_classificationsAI category counts for a folder| Parameter | Type | Description |
|---|---|---|
| folder * | string | Demo folder name |
get_sender_statsSenders ranked by email volume| Parameter | Type | Description |
|---|---|---|
| folder * | string | Demo folder name |
| top_n | number | Return top N senders |
get_server_infoGet herald configuration and status informationget_sync_statusGet per-folder email counts from the IMAP serverget_threadGet all emails in the same thread (by subject) in a folder| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder to search (default: INBOX) |
| subject * | string | Email subject (Re:/Fwd: prefixes are stripped automatically) |
list_attachmentsList attachment metadata for an email (no binary data). Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| message_id * | string | Message ID of the email |
list_calendar_eventsList cached calendar events for a scoped calendar source| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID (default default) |
| end | string | Exclusive end time, RFC3339 or YYYY-MM-DD |
| limit | number | Maximum events to return (default 20, max 100) |
| source_id | string | Calendar source ID (default default-calendar) |
| start | string | Inclusive start time, RFC3339 or YYYY-MM-DD |
list_classification_promptsList all custom classification prompt templates stored in the databaselist_cleanup_rulesList all auto-cleanup rules stored in the local cachelist_contactsPaginated contact list| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum contacts to return |
list_draftsList all draft emails from the IMAP Drafts folder. Requires the herald daemon.list_foldersList all email folders available in the local cachelist_recent_emailsMost recent emails in a folder| Parameter | Type | Description |
|---|---|---|
| folder * | string | Demo folder name, e.g. INBOX |
| limit | number | Maximum emails to return |
list_rulesList all enabled email automation ruleslist_unread_emailsUnread emails only| Parameter | Type | Description |
|---|---|---|
| folder * | string | IMAP folder name |
| limit | number | Maximum emails to return (default 20, max 100) |
mark_readMark an email as read. Requires the herald daemon to be running.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| folder | string | Folder name (default: INBOX) |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID |
| source_id | string | Mail source ID from scoped MCP listing output |
mark_unreadMark an email as unread. Requires the herald daemon to be running.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| folder | string | Folder name (default: INBOX) |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID |
| source_id | string | Mail source ID from scoped MCP listing output |
move_emailMove an email to a different folder. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| from_folder * | string | Source folder |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID |
| source_id | string | Mail source ID from scoped MCP listing output |
| to_folder * | string | Destination folder |
rename_folderRename an existing IMAP mailbox folder| Parameter | Type | Description |
|---|---|---|
| name * | string | Current name of the folder to rename |
| new_name * | string | New name for the folder |
reply_to_emailSend a reply to an existing email. Requires the herald daemon to be running.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| body * | string | Reply body (Markdown supported) |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID of the email to reply to |
| preservation_mode | string | HTML preservation mode: safe, fidelity, or privacy (default: safe) |
| source_id | string | Mail source ID from scoped MCP listing output |
run_cleanup_rulesRun enabled cleanup rules through the daemonrun_rulesEvaluate all automation rules against cached emails in a folder (dry run — no IMAP actions)| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder to process (default: INBOX) |
save_draftSave an email draft to the IMAP Drafts folder. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| body * | string | Email body (Markdown supported) |
| subject * | string | Email subject |
| to * | string | Recipient email address |
search_by_dateFilter by date range| Parameter | Type | Description |
|---|---|---|
| after | string | Only include emails after this date, ISO 8601 (e.g. 2024-01-01) |
| before | string | Only include emails before this date, ISO 8601 (e.g. 2024-12-31) |
| folder * | string | IMAP folder name |
search_by_senderAll emails from a sender or domain| Parameter | Type | Description |
|---|---|---|
| folder | string | IMAP folder to scope the search (omit for all folders) |
| sender * | string | Sender address or domain substring to match |
search_calendar_eventsSearch cached calendar events by visible title, notes, location, attendees, organizer, or recurrence text| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID (default default) |
| end | string | Exclusive end time, RFC3339 or YYYY-MM-DD |
| limit | number | Maximum events to return (default 20, max 100) |
| query * | string | Search text |
| source_id | string | Calendar source ID (default default-calendar) |
| start | string | Inclusive start time, RFC3339 or YYYY-MM-DD |
search_contactsKeyword search on name/email/company/topics| Parameter | Type | Description |
|---|---|---|
| query * | string | Search terms |
search_emailsKeyword search on sender + subject| Parameter | Type | Description |
|---|---|---|
| folder * | string | Demo folder name |
| query * | string | Search term |
semantic_search_contactsNatural-language contact search| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (default 10) |
| query * | string | Natural language query |
semantic_search_emailsNatural-language search via chunked body embeddings| Parameter | Type | Description |
|---|---|---|
| folder * | string | IMAP folder to search |
| limit | number | Max results (default 10) |
| min_score | number | Minimum cosine similarity 0.0-1.0 (default 0.5) |
| query * | string | Natural language query, e.g. 'emails about my lease renewal' |
send_draftSend a saved draft and delete it from the Drafts folder. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID when multiple accounts are configured |
| source_id | string | Mail source ID when multiple accounts are configured |
| uid * | number | The UID of the draft to send (from list_drafts) |
send_emailSend an email via SMTP. Requires the herald daemon to be running.| Parameter | Type | Description |
|---|---|---|
| body * | string | Email body (plain text) |
| from | string | Sender address (optional, uses configured account) |
| subject * | string | Email subject |
| to * | string | Recipient email address |
soft_unsubscribe_senderCreate an auto-move rule that moves all future emails from a sender to a folder. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID when multiple accounts are configured |
| sender * | string | Sender email address to create rule for |
| source_id | string | Mail source ID when multiple accounts are configured |
| to_folder | string | Destination folder (default: Disabled Subscriptions) |
summarise_emailGenerate a summary via Ollama| Parameter | Type | Description |
|---|---|---|
| max_words | number | Maximum words in the summary (default 100) |
| message_id * | string | The Message-ID of the email to summarise |
summarise_threadGenerate a summary of an email thread. Requires AI configured.| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder (default: INBOX) |
| subject * | string | Thread subject |
sync_all_foldersTrigger background sync for all known IMAP folderssync_folderTrigger an IMAP sync for a folder. Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| folder | string | Folder to sync (default: INBOX) |
unsubscribe_senderExecute unsubscribe via the List-Unsubscribe header of an email (RFC 8058 POST or browser open). Requires the herald daemon.| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID from scoped MCP listing output |
| local_id | string | Scoped Herald message local ID from listing output |
| message_id * | string | Message ID of the email to unsubscribe from |
| source_id | string | Mail source ID from scoped MCP listing output |
update_calendar_eventUpdate a calendar event through the running herald daemon| Parameter | Type | Description |
|---|---|---|
| account_id | string | Account ID |
| all_day | boolean | Whether this is an all-day event |
| calendar_id | string | Calendar collection ID |
| description | string | Event notes/description |
| end | string | End time, RFC3339 or YYYY-MM-DD HH:MM |
| end_timezone | string | IANA timezone for the end wall time |
| event_id | string | Provider event ID |
| instance_id | string | Recurrence instance ID, when present |
| local_id | string | Scoped Herald event local ID from list/search results |
| location | string | Event location |
| source_id | string | Calendar source ID |
| start | string | Start time, RFC3339 or YYYY-MM-DD HH:MM |
| start_timezone | string | IANA timezone for the start wall time |
| timezone | string | IANA timezone, for non-RFC3339 start/end values |
| title | string | Event title |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.2K words.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 3.2K words, fetched a month ago. The original in the repository is authoritative.
Read full README