Fluxmail is self-hosted email infrastructure for AI agents and applications, offering three ways to connect: a CLI, a REST API, and an MCP server. Its core purpose is to let agents and applications operate real mailboxes through a unified interface while keeping data and credentials in the user's own environment.
-
Purpose Fluxmail is used to connect Gmail, Google Workspace, Microsoft 365, Outlook.com, and standard IMAP/SMTP mailboxes to the same self-hosted instance, for use by AI agents, applications, and backend workflows.
-
Main capabilities
-
Multi-mailbox access: Gmail, Google Workspace, Microsoft 365, Outlook.com, and IMAP/SMTP mailboxes can be connected to the same instance.
-
Agent email tools (MCP): provide agents with tools to list, search, read, draft, reply, forward, send, schedule sending, and organize email.
-
Unified operation interface: the same mailbox operations can be performed through a versioned REST API and CLI.
-
Email and thread handling: retrieve full emails and conversation threads, work across multiple mailboxes, and download attachments.
-
Email organization: mark emails as read, starred, or archived, move them between folders, move them to trash, and manage Gmail labels or Outlook categories.
-
Permission control: through permission profiles or custom policies, restrict each client to only selected mailboxes and selected operations.
-
Members and mailbox assignment: in the Business and Enterprise plans, members can be added and the mailboxes each can access can be selected.
-
Local or Docker deployment: can run locally or with Docker, with the database and encrypted provider credentials remaining on your own infrastructure.
-
How to use
-
Environment requirements: Node.js 20.20.x, or Node.js 22.22 and above.
-
Quick start process: follow the quickstart to connect a mailbox, then choose how to use it—MCP, REST API, or CLI.
-
Permission configuration recommendation: for regular MCP use, Full access is recommended, allowing reading, sending, scheduled sending, drafting, organizing, and moving emails into or out of trash, but not permanent deletion. For restricted access, read-write can be selected or read-only. Bare stdio and API keys created without permission options set remain read-only.
-
Local MCP connection: Configure the client to start fluxmail with the arguments ["stdio", "--profile", "full"]. The client must use the same operating system user and the same Fluxmail data directory as the initial setup. stdio uses a local member session and does not require an API key or a separate HTTP server. You can have the client call list_accounts to check the connection; a brand-new instance returns an empty account list. To deliver scheduled emails, fluxmail serve or fluxmail scheduled run must keep running with the same data directory.
-
Client configuration reference: The repository provides a Connect an MCP client document covering client configuration and HTTP connections, in which the Cline section introduces MCP settings and Cline CLI configuration, and is also provided in the form of llms-install.md.
-
REST API building: Applications and backend workflows use the same mailbox operations through the versioned REST API.
IV. Use cases
- Provide AI agents with readable, writable, and organizable mailbox capabilities.
- Applications or backend workflows process email programmatically (list, search, read, draft, send, schedule, organize, download attachments, etc.).
- Operations personnel connect to mailboxes, manage access permissions, and run services through the CLI.
- Teams that need to keep the database and encrypted provider credentials on their own infrastructure.
V. Limitations and licensing
- Running requires Node.js 20.20.x, or Node.js 22.22 and above.
- Full access does not include permanently deleting emails.
- Local MCP connections require the client and setup to use the same operating system user and the same data directory; scheduled email delivery requires keeping the corresponding command running.
- Plan limitations: The Personal plan supports three mailboxes and one member; paid plans raise these limits for teams on shared instances. See the Fluxmail pricing page for specific pricing information.
- License: Fluxmail is open-sourced under the Elastic License 2.0, and within the scope of that license you may use, modify, create derivative works, andredistribute. Running a fork itself does not require a paid subscription, and the built-in Personal plan supports three mailboxes and one member without a paid key. Official Pro, Business, and Enterprise benefits require a valid Fluxmail license key. ELv2 does not permit changing or bypassing license key functionality, removing protected features, or offering Fluxmail itself as a hosted or managed service and exposing a substantial portion of its functionality. Use of the Fluxmail name and logo is also subject to its terms of service.