Stalwart Mail
Facilitates secure email management for AI agents by connecting to self-hosted Stalwart mail servers via Cloudflare Workers.
This tool acts as a secure, stateless connector, bridging AI agents like claude.ai, Claude Code, and Codex CLI to your self-hosted Stalwart mail server. Running on Cloudflare Workers, it translates JMAP to the MCP specification and includes a built-in stateless OAuth implementation for out-of-the-box compatibility with hosted-agent connector UIs. Designed with security in mind, it enables functionalities such as searching, reading, drafting, and securely sending emails, all without requiring a gateway or database.
主な機能
01Secure two-step email drafting and sending process to mitigate prompt injection risks.
02Retrieves detailed mailbox trees with roles, totals, and unread counts, and lists sending identities.
030 GitHub stars
04Stateless OAuth and bearer token authentication for seamless integration with various AI clients.
05Comprehensive email search with full-text, sender, mailbox, date, and attachment filters.
06Converts HTML email bodies to plain text and truncates content for AI readability, marking untrusted content.
ユースケース
01Enable AI development environments (e.g., Claude Code, Codex CLI) to programmatically manage email.
02Integrate AI chatbots and assistants (e.g., claude.ai) with a self-hosted Stalwart email account.
03Create AI-powered tools for tasks like email summarization, filtering, and drafting on Stalwart mail servers.