Self-hosted MCP server giving AI agents full email capabilities — read, search, send, reply, and manage multi-account inboxes over any SMTP/IMAP provider. Powered by @mailts/core.
mail-mcp has well-structured tool definitions with consistent naming (verb_noun pattern) and comprehensive parameter schemas. All 8 tools have descriptions and typed input schemas. However, output schemas are not documented, error handling lacks recovery guidance, and several parameter descriptions are generic. Descriptions average ~120 chars (within baseline 194), but lack actionable context for LLM selection. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels. Missing pagination guidance for list_accounts and watch_inbox. Security-sensitive operations (add_account, remove_account) lack confirmation patterns.
Add a new email account. Saves host/user/port to the database. Passwords are never passed through the agent — the tool returns a curl command to set them directly.
List attachments on an email, optionally including base64-encoded content for download
List all configured email accounts. Shows which is default and capabilities. Use set_default_account to switch.
Reload accounts from env vars and database without restarting the server
Remove an account permanently from the database
Change which account is used when no account parameter is specified in tool calls
No output schemas documented. LLMs cannot plan downstream tool calls or extract required fields (e.g., account IDs for chaining). list_accounts, add_account, get_attachments lack return type definitions.
Destructive operations (remove_account) lack confirmation or dry-run pattern. Agents can permanently delete accounts without verification, risking data loss.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk levels. LLMs cannot distinguish safe reads from destructive writes without explicit hints.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Update an existing account's non-sensitive settings (host, port, user, label). To update passwords use POST /accounts/:name/password directly.
Watch for new emails using IMAP IDLE. Blocks for up to timeout_ms (default 30s), then returns any new messages that arrived.
reload_config has empty input schema and minimal description (50 chars). Purpose unclear, is it a discovery tool? Does it require parameters? Lacks context for LLM selection.
Error handling lacks recovery guidance. No indication of retryable vs. fatal errors, or what the LLM should do next (e.g., 'Account not found. Try list_accounts() first.').