{"skill":{"slug":"email-mcp-helper","displayName":"Email MCP Helper","summary":"Access and manage multiple IMAP/SMTP email accounts with full lifecycle tools for reading, searching, sending, replying, forwarding, folder and label managem...","description":"# Skill: Email MCP (email-mcp-helper)\n\n## Overview\nThis skill provides access to a self-hosted email MCP server built on `@codefuturist/email-mcp`. It exposes 47 tools covering full email lifecycle management — reading, searching, sending, replying, forwarding, scheduling, folder management, labels, bulk operations, threading, attachments, analytics, and health checks — across multiple IMAP/SMTP accounts simultaneously.\n\nThis skill is a **tool reference only**. It does not define how the agent should handle, triage, or respond to emails — that is defined in a separate email management skill that depends on this one as a prerequisite.\n\nClawhub will mark this as a risk because its tools for email that doesnt tell the agent how to use them and because it provides a link to the actual email mcp server this skill was made to help your agent understand how to use.  It makes no sense to lock the actual email handling skill down to a single mcp email tool - the skills dont belong together so Clawhub wil always mark this package dangerous.  All Clawhub really does is get users used to acccepting security risks without looking because they label everything a security risk, many times without even citing why. Use at your own risk, or dont use it, I dont care, its for me and I share - and I am tired of fighting clawhub who clearly doesnt care about the actual security risk they create by desensitizing people to security ratings that make no sense, lack evidence, misfire fire over ridiculous things, say there isa virus finding while total virus says there is none, and in general overall, cause most users to ignore them.  You should be having your agent always check any skill before installing & using it to make sure it isnt siphoning data, running actual real commands that could compromise your system and or otherwise maintain skills aligned with the overarching skill set. Dont rely on Clawhub, DYOR always!\n---\n\n## Infrastructure Notes\n\nThis MCP server runs as a standalone docker or Kubernetes deployment **separate from the OpenClaw container**. It is NOT bundled with or managed by OpenClaw. You must setup this MCP server yourself, have your agent help you.\n\n**Source code:** https://github.com/codefuturist/email-mcp\n\n**Key infrastructure requirements (outside this skill's scope):**\n- The `email-mcp` image (`ghcr.io/codefuturist/email-mcp:latest`) is stdio-only — it has no built-in HTTP server\n- A **MCP proxy** (e.g. `sparfenyuk/mcp-proxy`) must be installed alongside it to expose the server over HTTP/SSE — without the proxy the server cannot be reached over a network\n- Accounts are configured via a `config.toml` file mounted into the container — credentials are managed outside this skill\n- The proxy and server are deployed together in a single custom Docker image\n\n**This skill assumes the server is already running and reachable. If the server is unreachable, this skill cannot function.**\n\n---\n\n## Connection\n\n| Property | Value |\n|----------|-------|\n| URL | `https://mcp-server-addres.com/mcp` |\n| Transport | SSE |\n| Auth | API key via `X-API-Key` header (managed by infrastructure) |\n\n---\n\n## Configured Accounts\n\nAccounts are configured server-side. Always call `list_accounts` to get the current account names — never hardcode them. The `account` parameter in every tool must match the exact name returned by `list_accounts`.\n\n---\n\n## Prerequisites Before Using Any Tool\n\n1. Call `list_accounts` to get valid account names\n2. Call `list_mailboxes(account)` before any operation involving folder paths — paths are provider-specific and must be exact\n\n---\n\n## Rules\n\n- The `account` parameter is always the account **name** (e.g. `shawnroy`), never the email address\n- `emailId` is the IMAP UID string — always obtained from `list_emails` or `search_emails`, never guessed\n- `mailbox` must be an exact path from `list_mailboxes` — never guess folder names\n- `get_email` and `get_emails` are **non-destructive by default** — they use IMAP PEEK and do NOT mark emails as read unless `markRead: true` is explicitly set\n- `delete_email` moves to Trash by default — only set `permanent: true` when explicitly instructed\n- `find_email_folder` must be used before `move_email` or `delete_email` when the email was discovered via a virtual folder (e.g. Gmail \"All Mail\")\n- Never call `delete_mailbox` without explicit user instruction — it is irreversible and destroys all contents\n\n---\n\n## Tools Reference\n\n### Account & Health\n\n#### `list_accounts`\nList all configured email accounts and their names.\n- No parameters required\n- Returns: account names, email addresses, provider info\n\n#### `list_mailboxes`\nList all folders for an account with unread counts and special-use flags.\n- `account` (string, required) — account name from `list_accounts`\n- Returns: folder paths, total messages, unread counts, special-use flags (Inbox, Sent, Trash, etc.)\n\n#### `check_health`\nCheck IMAP/SMTP connection health, latency, quota, and server capabilities.\n- `account` (string, required)\n\n---\n\n### Reading Email\n\n#### `list_emails`\nPaginated email list with metadata. Returns read/unread 🔵, flagged ⭐, replied ↩️, attachment 📎, and label 🏷️ indicators.\n- `account` (string, required)\n- `mailbox` (string, default: `INBOX`)\n- `page` (int, default: 1)\n- `pageSize` (int, default: 20, max: 100)\n- `since` (ISO 8601 string, optional) — emails after this date\n- `before` (ISO 8601 string, optional) — emails before this date\n- `from` (string, optional) — filter by sender\n- `subject` (string, optional) — filter by subject keyword\n- `seen` (boolean, optional) — `true` = read only, `false` = unread only\n- `flagged` (boolean, optional) — `true` = flagged only\n- `has_attachment` (boolean, optional)\n- `answered` (boolean, optional) — `true` = replied, `false` = not yet replied\n\n#### `get_email`\nFull content of a single email. Non-destructive by default (IMAP PEEK).\n- `account` (string, required)\n- `emailId` (string, required) — UID from `list_emails`\n- `mailbox` (string, default: `INBOX`)\n- `format` (enum, default: `full`) — `full` = raw, `text` = plain text (strips HTML), `stripped` = plain text without quoted replies or signatures\n- `maxLength` (int, optional) — truncate body at this many characters\n- `markRead` (boolean, default: `false`) — set `true` to explicitly mark as read\n\n#### `get_emails`\nFetch full content of up to 20 emails in a single call. More efficient than looping `get_email`. Non-destructive.\n- `account` (string, required)\n- `ids` (array of strings, required, max 20) — UIDs from `list_emails`\n- `mailbox` (string, default: `INBOX`)\n- `format` (enum, default: `text`) — same options as `get_email`\n- `maxLength` (int, optional)\n\n#### `get_email_status`\nRead/flag/label state only — no body fetched. Very cheap, use when you only need to check state.\n- `account` (string, required)\n- `emailId` (string, required)\n- `mailbox` (string, default: `INBOX`)\n\n#### `search_emails`\nSearch by keyword across subject, sender, and body with optional filters. Omit `query` to use as a pure filter.\n- `account` (string, required)\n- `query` (string, optional) — keyword search\n- `mailbox` (string, default: `INBOX`)\n- `page` (int, default: 1)\n- `pageSize` (int, default: 20, max: 100)\n- `to` (string, optional) — filter by recipient\n- `has_attachment` (boolean, optional)\n- `larger_than` (number, optional) — minimum size in KB\n- `smaller_than` (number, optional) — maximum size in KB\n- `answered` (boolean, optional)\n\n#### `get_thread`\nReconstruct a full conversation thread via References/In-Reply-To headers.\n- `account` (string, required)\n- `emailId` (string, required) — any email in the thread\n\n#### `find_email_folder`\nDiscover which real folder(s) an email actually lives in. Required before `move_email` or `delete_email` when email was found via a virtual folder.\n- `account` (string, required)\n- `emailId` (string, required)\n\n#### `extract_contacts`\nExtract unique contacts from recent email headers.\n- `account` (string, required)\n- `mailbox` (string, optional)\n- `limit` (int, optional)\n\n#### `get_email_stats`\nEmail analytics — volume, top senders, daily trends.\n- `account` (string, required)\n\n#### `download_attachment`\nDownload a specific email attachment.\n- `account` (string, required)\n- `emailId` (string, required)\n- `mailbox` (string, default: `INBOX`)\n- `filename` (string, required) — exact filename from `get_email` attachment metadata\n\n---\n\n### Sending Email\n\n#### `send_email`\nSend a new email. Plain text or HTML.\n- `account` (string, required)\n- `to` (array of email strings, required, min 1)\n- `subject` (string, required)\n- `body` (string, required)\n- `cc` (array of email strings, optional)\n- `bcc` (array of email strings, optional)\n- `html` (boolean, default: `false`) — set `true` to send as HTML\n\n#### `reply_email`\nReply with proper threading (In-Reply-To & References headers). Call `get_email` first to read the original.\n- `account` (string, required)\n- `emailId` (string, required) — email to reply to\n- `mailbox` (string, default: `INBOX`)\n- `body` (string, required)\n- `replyAll` (boolean, default: `false`)\n- `html` (boolean, default: `false`)\n\n#### `forward_email`\nForward with original content quoted below.\n- `account` (string, required)\n- `emailId` (string, required)\n- `mailbox` (string, default: `INBOX`)\n- `to` (array of email strings, required)\n- `body` (string, optional) — additional message above forwarded content\n- `cc` (array of email strings, optional)\n\n#### `save_draft`\nSave email to Drafts without sending.\n- `account` (string, required)\n- `to` (array of email strings, optional)\n- `subject` (string, optional)\n- `body` (string, optional)\n- `html` (boolean, default: `false`)\n\n#### `send_draft`\nSend an existing draft and remove it from Drafts.\n- `account` (string, required)\n- `emailId` (string, required) — draft email ID\n\n#### `schedule_email`\nSchedule an email for future delivery.\n- `account` (string, required)\n- `to` (array of email strings, required)\n- `subject` (string, required)\n- `body` (string, required)\n- `sendAt` (ISO 8601 string, required) — scheduled send time\n\n#### `list_scheduled`\nList scheduled emails by status.\n- `account` (string, required)\n- `status` (enum, optional) — `pending`, `sent`, `failed`\n\n#### `cancel_scheduled`\nCancel a pending scheduled email.\n- `account` (string, required)\n- `emailId` (string, required)\n\n---\n\n### Managing Email\n\n#### `move_email`\nMove email to a different folder. Source must be a real folder — use `find_email_folder` first if discovered via a virtual folder.\n- `account` (string, required)\n- `emailId` (string, required)\n- `sourceMailbox` (string, required) — current folder\n- `destinationMailbox` (string, required) — target folder (verify with `list_mailboxes`)\n\n#### `delete_email`\nDelete an email. Moves to Trash by default.\n- `account` (string, required)\n- `emailId` (string, required)\n- `mailbox` (string, default: `INBOX`)\n- `permanent` (boolean, default: `false`) — ⚠️ set `true` only when explicitly instructed — irreversible\n\n#### `mark_email`\nChange email flags.\n- `account` (string, required)\n- `id` (string, required) — email UID\n- `mailbox` (string, default: `INBOX`)\n- `action` (enum, required) — `read`, `unread`, `flag`, `unflag`\n\n#### `bulk_action`\nBatch operation on up to 100 emails.\n- `account` (string, required)\n- `ids` (array of strings, required, max 100)\n- `action` (enum, required) — `move`, `delete`, `read`, `unread`, `flag`, `unflag`\n- `destinationMailbox` (string) — required when action is `move`\n\n---\n\n### Folders\n\n#### `create_mailbox`\nCreate a new folder. Use `/` for nested folders.\n- `account` (string, required)\n- `path` (string, required) — e.g. `Archive/2026` or `Projects`\n\n#### `rename_mailbox`\nRename an existing folder.\n- `account` (string, required)\n- `path` (string, required) — current path\n- `new_path` (string, required) — new path\n\n#### `delete_mailbox`\n⚠️ Permanently delete a folder and ALL its contents. Irreversible.\n- `account` (string, required)\n- `path` (string, required)\n\n---\n\n### Labels\n\n#### `list_labels`\nDiscover available labels. Provider-aware — handles Gmail, ProtonMail, and standard IMAP keywords differently.\n- `account` (string, required)\n\n#### `add_label`\nAdd a label to an email.\n- `account` (string, required)\n- `emailId` (string, required)\n- `mailbox` (string, required)\n- `label` (string, required)\n\n#### `remove_label`\nRemove a label from an email.\n- `account` (string, required)\n- `emailId` (string, required)\n- `mailbox` (string, required)\n- `label` (string, required)\n\n#### `create_label`\nCreate a new label.\n- `account` (string, required)\n- `name` (string, required)\n\n#### `delete_label`\nDelete a label.\n- `account` (string, required)\n- `name` (string, required)\n\n---\n\n### Templates\n\n#### `list_templates`\nList available email templates.\n- `account` (string, required)\n\n#### `apply_template`\nApply a template with variable substitution and send or save as draft.\n- `account` (string, required)\n- `templateName` (string, required)\n- `variables` (object, optional) — key/value pairs for substitution\n- `to` (array of email strings, optional) — required to send, optional for draft\n- `action` (enum, default: `draft`) — `send` or `draft`\n\n---\n\n### Analytics & Contacts\n\n#### `get_email_stats`\nEmail analytics — volume, top senders, daily trends.\n- `account` (string, required)\n\n#### `extract_contacts`\nExtract unique contacts from recent email headers.\n- `account` (string, required)\n- `mailbox` (string, optional)\n- `limit` (int, optional)\n\n---\n\n## Common Call Sequences\n\n### List unread inbox emails\n```\nlist_accounts()\n→ list_emails(account, mailbox=\"INBOX\", seen=false, pageSize=20)\n```\n\n### Read a specific email\n```\nlist_emails(account, mailbox=\"INBOX\")\n→ get_email(account, emailId, format=\"stripped\")\n```\n\n### Reply to an email\n```\nlist_emails(account) → get emailId\n→ get_email(account, emailId) → read content\n→ reply_email(account, emailId, body=\"...\", replyAll=false)\n```\n\n### Send a new email\n```\nsend_email(account, to=[\"someone@example.com\"], subject=\"...\", body=\"...\")\n```\n\n### Move email to folder\n```\nlist_mailboxes(account) → verify destination path\n→ move_email(account, emailId, sourceMailbox=\"INBOX\", destinationMailbox=\"Archive\")\n```\n\n### Search with filters\n```\nsearch_emails(account, query=\"invoice\", has_attachment=true, mailbox=\"INBOX\")\n```\n\n### Batch read for triage\n```\nlist_emails(account, seen=false, pageSize=20) → collect ids\n→ get_emails(account, ids=[...], format=\"stripped\")\n```\n","tags":{"latest":"1.0.2"},"stats":{"comments":0,"downloads":562,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":3},"createdAt":1777933249131,"updatedAt":1778492846193},"latestVersion":{"version":"1.0.2","createdAt":1777933972616,"changelog":"- Updated the Overview section to clarify risk assessments by Clawhub, add more explicit advice on skill usage, and emphasize user responsibility for security checks.\n- Reworded and expanded warnings about Clawhub risk ratings; urges users to do their own research instead of relying solely on platform labels.\n- No changes to tooling, features, or infrastructure documentation.\n- No functional or interface changes in this release.","license":"MIT-0"},"metadata":null,"owner":{"handle":"encryptshawn","userId":"s17acjjwshpqj4xkbngejj57nx83zbcy","displayName":"EncryptShawn","image":"https://avatars.githubusercontent.com/u/56897824?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780090746009}}